Crosstool Build Still Fails under Cygwin

Jeremy Cole-Baker jeremy@rhtech.co.nz
Mon Jul 1 07:26:00 GMT 2013


As mentioned in a previous message, I am trying (for complicated 
reasons) to build a PowerPC compiler to run under Cygwin.

Previously, recent versions of Crosstool-NG wouldn't build at all on my 
system. Thanks to Albert Dorrington for linking this patch which allowed 
crosstools to build:

http://sourceware.org/ml/crossgcc/2012-05/msg00012.html

I ran 'ct-ng menuconfig' and set my target to be PowerPC, turned off 
debug facilities, and basically used defaults for everything else. I 
also used eglibc (I think it was already selected by default).

However, running 'ct-ng build' still failed with an error. Here's the 
output:


$ ct-ng build
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20130701.085943
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in 
1190.11s (at 20:24)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[32:18] / Useless use of /d modifier in transliteration operator at 
/usr/share/automake-1.9/Automake/Wrap.pm line 60.
[INFO ]  Extracting and patching toolchain components: done in 2356.36s 
(at 59:41)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[INFO ]  Installing kernel headers: done in 359.98s (at 65:42)
[INFO ]  =================================================================
[INFO ]  Installing GMP
[INFO ]  Installing GMP: done in 11400.93s (at 255:45)
[INFO ]  =================================================================
[INFO ]  Installing MPFR
[INFO ]  Installing MPFR: done in 1567.16s (at 281:54)
[INFO ]  =================================================================
[INFO ]  Installing PPL
[INFO ]  Installing PPL: done in 4307.71s (at 353:43)
[INFO ]  =================================================================
[INFO ]  Installing CLooG/ppl
[INFO ]  Installing CLooG/ppl: done in 624.52s (at 364:10)
[INFO ]  =================================================================
[INFO ]  Installing binutils
[INFO ]  Installing binutils: done in 6761.47s (at 476:53)
[INFO ]  =================================================================
[INFO ]  Installing static core C compiler
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0x28e1): 
undefined reference to 
`std::length_error::length_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0x3472): 
undefined reference to 
`std::length_error::length_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0x3fa7): 
undefined reference to 
`std::length_error::length_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0x4a2a): 
undefined reference to 
`std::length_error::length_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0x4a93): 
undefined reference to 
`std::length_error::length_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0x5cc4): 
undefined reference to 
`std::length_error::length_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0x9164): 
undefined reference to 
`std::length_error::length_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0xc340): 
undefined reference to 
`std::length_error::length_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0xf271): 
undefined reference to 
`std::runtime_error::runtime_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0xf28a): 
undefined reference to `std::runtime_error::~runtime_error()'
[ERROR] 
/opt/powerpc-unknown-linux-gnu/.build/powerpc-unknown-linux-gnu/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):ppl_c_implementation_common.cc:(.text+0xf640): 
undefined reference to 
`std::length_error::length_error(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
[ERROR]    make[2]: *** [cc1-dummy.exe] Error 1
[ERROR]    make[1]: *** [all-gcc] Error 2
[ERROR]    Build failed in step 'Installing static core C compiler'
[ERROR]    Error happened in 
'/usr/crosstool-ng/lib/ct-ng-1.9.3/scripts/functions' in function 
'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from 
'/usr/crosstool-ng/lib/ct-ng-1.9.3/scripts/build/cc/gcc.sh' at line # 
289 in function 'do_cc_core'
[ERROR]          called from 
'/usr/crosstool-ng/lib/ct-ng-1.9.3/scripts/build/cc/gcc.sh' at line # 52 
in function 'do_cc_core_pass_1'
[ERROR]          called from 
'/usr/crosstool-ng/lib/ct-ng-1.9.3/scripts/crosstool-NG.sh' at line # 
597 in function 'main'
[ERROR]    Look at '/opt/x-tools/powerpc-unknown-linux-gnu/build.log' 
for more info on this error.
[ERROR]  (elapsed: 605:57.99)
[606:03] / /usr/crosstool-ng/bin/ct-ng:143: recipe for target `build' failed
make: *** [build] Error 2


Has anyone made this work under cygwin?

Also, if it is possible to get it working, is there a way to resume from 
the point where the build failed? Since it took 10 hours to get there...

Thanks!
-Jeremy

	
	
		
-- 
Riverhead Technology
Jeremy Cole-Baker
Ph. (+64) 27 673 0129
www.rhtech.co.nz

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



More information about the crossgcc mailing list