....
....
checking for psp-ar... (cached) psp-ar
checking for psp-ranlib... (cached) psp-ranlib
checking for psp-readelf... (cached) psp-readelf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
checking for build system executable suffix... no
updating cache .././config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
make[1]: Leaving directory `/home/patrick91/psptoolchain/build/newlib-1.15.0/build-psp'
make: *** [all] Error 2
../scripts/004-newlib-1.15.0.sh: Failed.
ERROR: Could not run the toolchain script.
the file scripts/004-newlib-1.15.0.sh is present, now I don't know how to resolve this problem :(
I'm a bit unexpert, so, I've some problem to understand this solution:
seventh wrote:Hi,
I got the same issue. What you have to do is go into the newlib mafefile and check for the MAKEINFO variable definition.
For a reason I didn't try to investigate, it was set to something like this :
MAKEINFO = /usr/blablabla/missing makeinfo
Just remove the path that is obviously incorrect
MAKEINFO = makeinfo
Launch "make", "make install" again and it should run perfectly.
N.B. : After that, you'll have to patch the toolchain.sh script to continue installation and not to restart from the beginning, and fail on the same issue.
First problem
seventh wrote:Hi,
I got the same issue. What you have to do is go into the newlib mafefile and check for the MAKEINFO variable definition.
For a reason I didn't try to investigate, it was set to something like this :
MAKEINFO = /usr/blablabla/missing makeinfo
Just remove the path that is obviously incorrect
MAKEINFO = makeinfo
Launch "make", "make install" again and it should run perfectly.
Where is the makefile?
N.B. : After that, you'll have to patch the toolchain.sh script to continue installation and not to restart from the beginning, and fail on the same issue.
How to patch and restart the compiling?
Can you post the toolchain modified?
I don't know the details.. all I did was search the forum and post the result.
It seems he's saying you need to find the extracted and configured Makefile that newlib creates while it's building, modify it, run make && make install, then go back and finish the remaining steps of the toolchain.
Or, you could help track down the real cause of the bug so it can be fixed properly... I don't know any more details, I've never seen this problem myself.
So, "MAKEINFO = /home/myname/Public/psptoolchain/build/newlib-1.15.0/missing makeinfo --split-size=5000000" become "MAKEINFO = makeinfo", once it's done, save the file and exit the text editor.
Back to your terminal go into the newlib folder :
cd psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/
And type :
make
And (as root) :
make install
Now you have to delete the newlib script, then go into psptoolchain/scripts/ and remove 004-newlib-1.15.0.sh.
All done ;) now, restart toolchain.sh and it will be OK ;)
....
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... no
checking for strings.h... (cached) no
checking for inttypes.h... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for int... yes
checking size of int... 4
checking for uintptr_t... yes
checking for a 64-bit type... uint64_t
checking for pid_t... yes
checking for working strncmp... no
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
Adding multilib support to Makefile in ../../../libiberty
multidirs=
with_multisubdir=
make[1]: Leaving directory `/home/patrick91/psptoolchain/build/gcc-4.1.0/build-psp'
make: *** [all] Error 2
../scripts/005-gcc-4.1.0-stage2.sh: Failed.
The directory where you have to go is psptoolchain/build/newlib-1.15.0/build-psp/ and not psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ , then I've rewrotten the steps to follow :
So, "MAKEINFO = /home/myname/Public/psptoolchain/build/newlib-1.15.0/missing makeinfo" become "MAKEINFO = makeinfo", once it's done, save the file and exit the text editor.
Back to your terminal go into the folder :
cd psptoolchain/build/newlib-1.15.0/build-psp/
And type :
make
And (as root) :
make install
And remove 004-newlib-1.15.0.sh located in psptoolchain/scripts/ folder.
Hope it will help you.
About your problem with gcc, I really don't know how to solve it, maybe you should install build-essential (if you're on Ubuntu, try : sudo apt-get install buld-essential with Ubuntu cd-rom in the device ;))