Build error on Ubuntu 12.04.1, not Arch

Shawn J. Goff shawn7400@gmail.com
Mon Jan 21 15:40:00 GMT 2013


On 01/16/2013 07:45 AM, Shawn J. Goff wrote:
> On 01/13/2013 10:21 PM, Shawn J. Goff wrote:
>> I'm using CT-NG as a backend for Buildroot. It has been and still is 
>> working fine on Arch, and it had been working in Ubuntu, but it 
>> recently started giving errors. I've attached two different configs 
>> that both cause similar but slightly different errors (lots of 
>> undefined methods), both in the same stage. There are two sets 
>> because I updated the config to use newer GCC and libraries to see if 
>> the problem went away (it didn't).
>>
>> The logs are too long to post, even if I remove everything except 
>> this stage, so here is a sample of the output. There are about 50000 
>> lines with "undefined reference" and about 1000 of "[ERROR]".
>>
>> [ALL  ] 
>> /home/shawn/projects/fx/buildroot/output/build/build-toolchain/.build/arm-buildroot-linux-gnueabi/buildtools/lib/libpwl.a(Watchdog.o): 
>> In function 
>> `Parma_Watchdog_Library::Watchdog::set_timer(Parma_Watchdog_Library::Time 
>> const&)':
>> [ALL  ]    Watchdog.cc:(.text+0x198): undefined reference to 
>> `__cxa_allocate_exception'
>> [ALL  ]    Watchdog.cc:(.text+0x1b2): undefined reference to 
>> `std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>> >::basic_string(char const*, std::allocator<char> const&)'
>> [ERROR]    Watchdog.cc:(.text+0x1be): undefined reference to 
>> `std::runtime_error::runtime_error(std::basic_string<char, 
>> std::char_traits<char>, std::allocator<char> > const&)'
>> [ALL  ]    Watchdog.cc:(.text+0x1c6): undefined reference to 
>> `std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>> >::~basic_string()'
>> [ERROR]    Watchdog.cc:(.text+0x1ce): undefined reference to 
>> `std::runtime_error::~runtime_error()'
>> [ALL  ]    Watchdog.cc:(.text+0x1d6): undefined reference to 
>> `typeinfo for std::runtime_error'
>> [ALL  ]    Watchdog.cc:(.text+0x1de): undefined reference to 
>> `__cxa_throw'
>> [ALL  ]    Watchdog.cc:(.text+0x245): undefined reference to 
>> `__cxa_free_exception'
>> [ALL  ]    Watchdog.cc:(.text+0x259): undefined reference to 
>> `std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>> >::~basic_string()'
>>
>
> We've found that setting CT_CC_STATIC_LIBSTDCXX=y makes the build work 
> on Ubuntu 12.04. The same setting makes it not build on Centos 6.3, 
> with the error "Static linking impossible on the host system".
> //

We have also found that using gcc-4.4 to build crosstool-NG succeeds.

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



More information about the crossgcc mailing list