This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building for PowerPC 405


Hello,

I am pretty new to cross compiling and am trying to continue the work
of someone that left the company.  He suggested using ct-ng in order
to get a newer c compiler since a package I want to use will not
compile.  I downloaded crosstool-ng-1.9.3 to a virtual machine running
CentOS5.  The build I want is in the list of samples:
PowerPC-405-linux-gnu.  I had to run "ct-ng menuconfig" to turn off
Java and bump the version of mpfr to 3.0.0 to get past a few errors.
After doing that the build ran for a while and then failed here:

...
[INFO ]  =================================================================
[INFO ]  Installing shared core C compiler
[EXTRA]    Configuring shared core C compiler
[EXTRA]    Building shared core C compiler
[EXTRA]    Installing shared core C compiler
[INFO ]  Installing shared core C compiler: done in 177.54s (at 08:27)
[INFO ]  =================================================================
[INFO ]  Installing C library
[EXTRA]    Configuring C library
[WARN ]    Removing "-pipe" for use with glibc>=2.6
[EXTRA]    Building C library
[ERROR]    make[3]: ***
[/home/jtws/crosstool-ng-stuff/targets/powerpc-405-linux-gnu/build/build-libc/elf/librtld.map]
Error 1
[ERROR]    make[2]: *** [elf/subdir_lib] Error 2
[ERROR]    make[1]: *** [all] Error 2
[ERROR]    Build failed in step 'Installing C library'
[ERROR]    Error happened in
'/usr/local/lib/ct-ng-1.9.3/scripts/functions' in function
'CT_DoExecLog' (line unknown, sorry)

I checked the log file and the last few lines are:

[ALL  ]    a - elf/framestate.os
[ALL  ]    a - elf/unwind-pe.os
[ALL  ]    powerpc-405-linux-gnu-ranlib
/home/jtws/crosstool-ng-stuff/targets/powerpc-405-linux-gnu/build/build-libc/libc_pic.a
[ALL  ]    powerpc-405-linux-gnu-gcc       -nostdlib -nostartfiles -r
-o /home/jtws/crosstool-ng-stuff/targets/powerpc-405-linux-gnu/build/build-libc/elf/librtld.map.o
'-Wl,-(' /home/jtws/crosstool-ng-stuff/targets/powerpc-405-linux-gnu/build/build-libc/elf/dl-allobjs.os
/home/jtws/crosstool-ng-stuff/targets/powerpc-405-linux-gnu/build/build-libc/libc_pic.a
-lgcc '-Wl,-)' -Wl,-Map,/home/jtws/crosstool-ng-stuff/targets/powerpc-405-linux-gnu/build/build-libc/elf/librtld.mapT
[ALL  ]    /home/jtws/crosstool-ng-stuff/targets/powerpc-405-linux-gnu/build/gcc-core-shared/lib/gcc/powerpc-405-linux-gnu/4.3.2/../../../../powerpc-405-linux-gnu/bin/ld:
cannot find -lgcc
[ALL  ]    collect2: ld returned 1 exit status
[ERROR]    make[3]: ***
[/home/jtws/crosstool-ng-stuff/targets/powerpc-405-linux-gnu/build/build-libc/elf/librtld.map]
Error 1
[ALL  ]    make[3]: Leaving directory
`/home/jtws/crosstool-ng-stuff/targets/src/glibc-2.9/elf'
[ERROR]    make[2]: *** [elf/subdir_lib] Error 2
[ALL  ]    make[2]: Leaving directory
`/home/jtws/crosstool-ng-stuff/targets/src/glibc-2.9'
[ERROR]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory
`/home/jtws/crosstool-ng-stuff/targets/powerpc-405-linux-gnu/build/build-libc'
[ERROR]    Build failed in step 'Installing C library'
[ERROR]    Error happened in
'/usr/local/lib/ct-ng-1.9.3/scripts/functions' in function
'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from
'/usr/local/lib/ct-ng-1.9.3/scripts/build/libc/glibc.sh' at line # 496
in function 'do_libc'
[ERROR]          called from
'/usr/local/lib/ct-ng-1.9.3/scripts/crosstool-NG.sh' at line # 597 in
function 'main'
[ERROR]    Look at
'/home/jtws/x-tools/powerpc-405-linux-gnu/build.log' for more info on
this error.
[ERROR]  (elapsed: 14:27.31)

It appears that it cannot find libgcc. Earlier in the log file it
shows that libgcc.a was removed, built, and then installed so it seems
like it should be there.  Does anyone know how to get around this?

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]