Build Failure for PowerPC using crosstool-ng 1.9.3

Van Rafelghem Dominique dvanrafelghem@dtisoft.com
Fri Mar 9 00:40:00 GMT 2012


Hi everyone,

I just started using crosstool-ng to try and build a newer toolchain for a PowerPC platform.   

The first question I have is if what I'm trying to do is at all possible.  I have a PowerPC platform that is running an older Linux kernel 2.4.18 for which I downloaded the tar.gz file.

I executed "ct-ng menubuild" and left all setting at default except for the target being changed to ppc and I pointed to the tarball for the kernel on my development machine.

Next, I executed "ct-ng build".  The build started but then it error'd out with the following messages on the console:

[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20120308.152529
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in 152.51s (at 02:33)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[INFO ]  Extracting and patching toolchain components: done in 90.92s (at 04:04)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[ERROR]    Build failed in step 'Installing kernel headers'
[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/kernel/linux.sh' at line # 98 in function 'do_kernel_install'
[ERROR]          called from '/usr/local/lib/ct-ng-1.9.3/scripts/build/kernel/linux.sh' at line # 75 in function 'do_kernel_headers'
[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/dtitest/x-tools/powerpc-unknown-linux-gnu/build.log' for more info on this error.
[ERROR]  (elapsed: 4:05.22)
[04:05] / make: *** [build] Error 2


The end of the build.log file has the following information:

[INFO ]  Extracting and patching toolchain components: done in 90.92s (at 04:04)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[DEBUG]    Using kernel's headers_install
[EXTRA]    Installing kernel headers
[DEBUG]    ==> Executing: 'make -C /home/dtitest/powerpc/.build/src/linux-custom O=/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-kernel-headers ARCH=powerpc INSTALL_HDR_PATH=/home/dtitest/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu//sys-root/usr V=0 headers_install'
[ALL  ]    make[1]: Entering directory `/home/dtitest/powerpc/.build/src/linux-custom'
[ALL  ]    Makefile:244: arch/powerpc/Makefile: No such file or directory
[ALL  ]    make[1]: *** No rule to make target `arch/powerpc/Makefile'.  Stop.
[ALL  ]    make[1]: Leaving directory `/home/dtitest/powerpc/.build/src/linux-custom'
[ERROR]    Build failed in step 'Installing kernel headers'
[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/kernel/linux.sh' at line # 98 in function 'do_kernel_install'
[ERROR]          called from '/usr/local/lib/ct-ng-1.9.3/scripts/build/kernel/linux.sh' at line # 75 in function 'do_kernel_headers'
[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/dtitest/x-tools/powerpc-unknown-linux-gnu/build.log' for more info on this error.
[ERROR]  (elapsed: 4:05.22)

I'm using Ubuntu 10.10 as my build machine.  I saw another post on the mailing list which was similar to this but that person had a different problem which was that the version of make needed to be 3.81 instead of 3.82 as there is a bug in make 3.82.  This is not the case for me as my Ubuntu workstation has make 3.81.  Here is a link to that thread http://sourceware.org/ml/crossgcc/2011-01/msg00041.html.

Any help would be greatly appreciated.

Dominique



Dominique Van Rafelghem
DTI Software Inc.
Lake Forest, CA


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



More information about the crossgcc mailing list