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

See the CrossGCC FAQ 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]

crosstool-ng 1.7.0: Problem with custom kernel headers and building gcc


Dear all,

I am new to crosstool and I am having a problem that dear-old-Google is failing me on, so I turn to this mailing list in the hope of some pointers in the right direction.

Having "configure"d, "make"d, "ct-ng menuconfig"ed and then "ct-ng build"ed, everything works fine until it tries to "install static core C compiler" (please see the error log attached at the bottom).

I'm using the latest (1.7.0) version of crosstool-ng. I don't think there's anything very exciting in my configuration, but here are the salient points as far as I am able to determine them: targeting powerpc with specific tuning for 603e, I'm using custom kernel headers stored in a file linux-2.6.tar.bz2 (which is a tarred linux source-code tree), I'm building gcc 4.4.3 plus c++ with glibc 2.9 plus ports and nptl. Everything else is using the 'defaults'.

It appears to be trying to copy header files from ".../sys-root/usr/include" but this folder is empty and therefore it fails. I can certainly confirm that the folder is empty, but I don't know what to place in it!!! I note that my linux source tree is extracted into .../sys-root/usr/linux-2.6.

Now I am pretty sure that the problem lies in the fact that my "custom kernel headers" aren't in the right format, but I can't seem to get them right. If I do a configuration which downloads linux instead, then it automagically sorts the headers out, but I can't seem to do it with my own version.

Any pointers will be greatly received!

Also, while I'm here, the other problem I have is that every time I do a "ct-ng build" it rebuilds everything from scratch - i.e. GMP, MPFR, etc - even though these built completely the previous time. Is there any way of turning off this behaviour?

Thank you!!!

Andy

---
LOG SNIPPET:

[INFO ] =================================================================
[INFO ] Installing static core C compiler
[DEBUG] Copying headers to install area of bootstrap gcc, so it can build libgcc2
[DEBUG] ==> Executing: 'mkdir -p /home/user/test/targets/powerpc-unknown-linux-gnu/build/gcc-core-static/powerpc-unknown-linux-gnu/include'
[DEBUG] ==> Executing: 'cp -r /home/user/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu//sys-root/usr/include/* /home/user/test/targets/powerpc-unknown-linux-gnu/build/gcc-core-static/powerpc-unknown-linux-gnu/include'
[ALL ] cp: cannot stat `/home/user/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu//sys-root/usr/include/*': No such file or directory
[ERROR] Build failed in step 'Installing static core C compiler'
[ERROR] Error happened in '/home/user/ct-ng/lib/ct-ng-1.7.0/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR] called from '/home/user/ct-ng/lib/ct-ng-1.7.0/scripts/build/cc/gcc.sh' at line # 138 in function 'do_cc_core'
[ERROR] called from '/home/user/ct-ng/lib/ct-ng-1.7.0/scripts/build/cc/gcc.sh' at line # 52 in function 'do_cc_core_pass_1'
[ERROR] called from '/home/user/ct-ng/lib/ct-ng-1.7.0/scripts/crosstool-NG.sh' at line # 578 in function 'main'
[ERROR] Look at '/home/user/x-tools/powerpc-unknown-linux-gnu/build.log' for more info on this error.
[ERROR] (elapsed: 9:21.99)



-- 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]