From: Van Rafelghem Dominique <dvanrafelghem@dtisoft.com>
To: "crossgcc@sourceware.org" <crossgcc@sourceware.org>
Subject: RE: Build Failure for PowerPC using crosstool-ng 1.9.3
Date: Fri, 09 Mar 2012 00:40:00 -0000 [thread overview]
Message-ID: <AE3765B296124249A8C7DFB21DC0F2680805B315EB@luxor> (raw)
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
next reply other threads:[~2012-03-09 0:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 0:40 Van Rafelghem Dominique [this message]
2012-03-09 8:45 ` Yann E. MORIN
2012-03-09 18:31 ` Build Failure for PowerPC using crosstool-ng 1.14.1 Van Rafelghem Dominique
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AE3765B296124249A8C7DFB21DC0F2680805B315EB@luxor \
--to=dvanrafelghem@dtisoft.com \
--cc=crossgcc@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).