Closed yllLiBe closed 13 years ago
I've got exactly the same. exit() should be present in newlib not sure why it can't find it. I'll do some research.
It looks like even though the library dirs are reported correctly by GCC, it is not actually picking up libc.a. I tried passing libc.a directly on the command line and this works. So somehow on cygwin something has gone wrong with the paths. Strace output shows: 861 244766 [main] ld 3328 open: open (/lib/libc.a, 0x10000) 44 244810 [main] ld 3328 normalize_posix_path: src /lib/libc.a 43 244853 [main] ld 3328 normalize_posix_path: /lib/libc.a = normalize_posix_path (/lib/libc.a)
So it's opening libc.a from /lib instead of the install path
This may have something to do with it: "If you are not building a C library in the same source tree as GCC, you should also provide the target libraries and headers before configuring GCC, specifying the directories with --with-sysroot or --with-headers and --with-libs." Will give it a try
--with-sysroot is not the issue. The SPU-gcc works fine. It's just the PPU-gcc that doesn't look in the correct dir for its libs. It must be somewhere in the GCC or newlib config for PPU..
big ol guess on my part ...
export LD_LIBRARY_PATH=$PS3DEV/host/ppu/ppu/lib ./toolchain.sh
That should not be needed. toolchain.sh follows the normal recommended steps for building a cross gcc with newlib: http://www.ifp.illinois.edu/~nakazato/tips/xgcc.html#newlib
There must be something in the GCC config for PPU that's not compatible cygwin. After all the SPU toolchain works fine with the same steps. It's just that its a pain to fix inside GCC unless you know where to look
There is solution: comment out line 'SEARCH_DIR("=/lib")' in the file host/ppu/ppu/lib/lv2.ld
Does this fix the problem?
Yes. I have compiled all ps3libraries...
Did you have to comment out that line?
I have the same problem with toolchain compilation, but under linux (ubuntu 11.04, 64-bit). Message log: configure: error: in `/home/g/temp/ps3/ps3toolchain/build/ps3libraries/build/libpng-1.4.4/build-ppu': configure: error: C compiler cannot create executables
Real problem is: /home/g/dev/ps3dev/ppu/lib/gcc/ppu/4.5.2/../../../../ppu/bin/ld: a.out: section `.tbss' can't be allocated in segment 1 LOAD: .ctors .dtors .jcr .data.sceFStub .opd .branch_lt .got .tdata .tbss /home/g/dev/ps3dev/ppu/lib/gcc/ppu/4.5.2/../../../../ppu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status
@superg: That's actually a different problem, and one which has been fixed now (pull ps3toolchain and rebuild). :-)
Hi.
I tried to build ps3toolchain on Cygwin twice, but following error occured. At the second time, I had removed all files created in the first time (even archive files) and re-extracted `ooPo-ps3toolchain-e24950a.tar.gz', but same error occured. I think I have to try in more clean environment, but do you have any ideas at this moment?
Regards