| View previous topic :: View next topic |
| Author |
Message |
patrick91
Joined: 02 Apr 2008 Posts: 4
|
Posted: Wed Apr 02, 2008 1:43 am Post subject: Toolchain compiling problem |
|
|
Hi i'm trying to compile pspsdk with the toolchain, but I get this error
| Code: |
....
....
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 :(
Can you help me?
Thanks :) |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
|
| Back to top |
|
 |
patrick91
Joined: 02 Apr 2008 Posts: 4
|
Posted: Wed Apr 02, 2008 2:50 am Post subject: |
|
|
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?
| Quote: |
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? |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Apr 02, 2008 10:04 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Poison_xtreamlua
Joined: 10 Aug 2007 Posts: 12
|
Posted: Wed May 07, 2008 3:21 am Post subject: |
|
|
Hi,
I had the same, issue on Kubuntu, to resolve this probleme do this following steps :
Open a terminal and type (as root) :
(if you're on ubuntu) :
gedit psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/Makefile
(if you're on Kubuntu) :
kwrite psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/Makefile
There, a text editor start, in the file search MAKEINFO, and you'll find something like that :
MAKEINFO = /home/myname/Public/psptoolchain/build/newlib-1.15.0/missing makeinfo --split-size=5000000
You have to replace all the sentence by :
MAKEINFO = makeinfo
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 ;) |
|
| Back to top |
|
 |
patrick91
Joined: 02 Apr 2008 Posts: 4
|
Posted: Wed May 07, 2008 7:08 am Post subject: |
|
|
Hi Poison_xtreamlua
thank you very much that worked :D |
|
| Back to top |
|
 |
patrick91
Joined: 02 Apr 2008 Posts: 4
|
Posted: Wed May 07, 2008 8:09 am Post subject: |
|
|
it seemed working :(
another error:
| Code: |
....
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.
|
|
|
| Back to top |
|
 |
Poison_xtreamlua
Joined: 10 Aug 2007 Posts: 12
|
Posted: Wed May 07, 2008 11:00 pm Post subject: |
|
|
Hi there, in fact I've made an error,
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 :
(if you're on ubuntu) :
gedit psptoolchain/build/newlib-1.15.0/build-psp/Makefile
(if you're on Kubuntu) :
kwrite psptoolchain/build/newlib-1.15.0/build-psp/Makefile
There, a text editor start, in the file search MAKEINFO until you find a line similar to this one :
MAKEINFO = /home/myname/Public/psptoolchain/build/newlib-1.15.0/missing makeinfo
You have to replace all the sentence by :
MAKEINFO = makeinfo
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 ;)) |
|
| Back to top |
|
 |
ericKartman
Joined: 24 Jan 2009 Posts: 2 Location: India
|
Posted: Sat Jan 24, 2009 5:34 am Post subject: Error persists |
|
|
| Code: |
root@ubuntu-vm:/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib# make install
Making install in libc
make[1]: Entering directory `/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib/libc'
Making install in argz
make[2]: Entering directory `/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib/libc/argz'
rm -f lib.a
psp-ar cru lib.a lib_a-dummy.o lib_a-argz_add.o lib_a-argz_add_sep.o lib_a-argz_append.o lib_a-argz_count.o lib_a-argz_create.o lib_a-argz_create_sep.o lib_a-argz_delete.o lib_a-argz_extract.o lib_a-argz_insert.o lib_a-argz_next.o lib_a-argz_replace.o lib_a-argz_stringify.o lib_a-buf_findstr.o lib_a-envz_entry.o lib_a-envz_get.o lib_a-envz_add.o lib_a-envz_remove.o lib_a-envz_merge.o lib_a-envz_strip.o
*** buffer overflow detected ***: psp-ar terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x40128558]
/lib/tls/i686/cmov/libc.so.6[0x40126680]
/lib/tls/i686/cmov/libc.so.6[0x40125d68]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0xc8)[0x4009ba18]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xed)[0x4008ee0d]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x27cf)[0x4007015f]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xa7)[0x40125e17]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x40125d5d]
psp-ar[0x8051192]
psp-ar[0x804f18b]
psp-ar[0x8052000]
psp-ar[0x8059d08]
psp-ar[0x804bab5]
psp-ar[0x804c7f0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0x40044685]
psp-ar[0x8049aa1]
======= Memory map: ========
08048000-080c7000 r-xp 00000000 08:01 307092 /bin/psp-ar
080c7000-080c8000 r--p 0007e000 08:01 307092 /bin/psp-ar
080c8000-080c9000 rw-p 0007f000 08:01 307092 /bin/psp-ar
080c9000-080cd000 rw-p 080c9000 00:00 0
08897000-08940000 rw-p 08897000 00:00 0 [heap]
40000000-4001a000 r-xp 00000000 08:01 106307 /lib/ld-2.8.90.so
4001a000-4001b000 r-xp 4001a000 00:00 0 [vdso]
4001b000-4001c000 r--p 0001a000 08:01 106307 /lib/ld-2.8.90.so
4001c000-4001d000 rw-p 0001b000 08:01 106307 /lib/ld-2.8.90.so
4001d000-4001f000 rw-p 4001d000 00:00 0
4001f000-40020000 r--p 00000000 08:01 468111 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
40020000-40027000 r--s 00000000 08:01 24772 /usr/lib/gconv/gconv-modules.cache
40027000-4002e000 rw-p 40027000 00:00 0
4002e000-40186000 r-xp 00000000 08:01 123813 /lib/tls/i686/cmov/libc-2.8.90.so
40186000-40188000 r--p 00158000 08:01 123813 /lib/tls/i686/cmov/libc-2.8.90.so
40188000-40189000 rw-p 0015a000 08:01 123813 /lib/tls/i686/cmov/libc-2.8.90.so
40189000-4018d000 rw-p 40189000 00:00 0
4018d000-401cc000 r--p 00000000 08:01 468102 /usr/lib/locale/en_US.utf8/LC_CTYPE
401cc000-401cf000 rw-p 401cc000 00:00 0
401de000-401eb000 r-xp 00000000 08:01 106350 /lib/libgcc_s.so.1
401eb000-401ec000 r--p 0000c000 08:01 106350 /lib/libgcc_s.so.1
401ec000-401ed000 rw-p 0000d000 08:01 106350 /lib/libgcc_s.so.1
bf8f4000-bf909000 rw-p bffeb000 00:00 0 [stack]
make[2]: *** [lib.a] Aborted
make[2]: *** Deleting file `lib.a'
make[2]: Leaving directory `/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib/libc/argz'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib/libc'
make: *** [install-recursive] Error 1
|
The problem is still there even with the modification of the MAKEINFO as indicated above .
Please Help.
Thank you. _________________ Accepting Life......
---->Karthik<----- |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
|
| Back to top |
|
 |
|