Closed Bug 1030812 Opened 6 years ago Closed 6 years ago

Build error: undefined reference to `std::__throw_out_of_range_fmt

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bjackson0971, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release)
Build ID: 20140626055801

Steps to reproduce:

Building Firefox from trunk with GCC 4.9 after around 10AM CDT today gives a linker error for libxul.so.


Actual results:

../../../ipc/chromium/string16.o: In function `std::basic_string<unsigned short, base::string16_char_traits, std::allocator<unsigned short> >::_M_check(unsigned long, char const*) const':
/usr/gcc49/include/c++/4.9.0/bits/basic_string.h:324: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
../../../ipc/chromium/string16.o: In function `std::basic_string<unsigned short, base::string16_char_traits, std::allocator<unsigned short> >::at(unsigned long) const':
/usr/gcc49/include/c++/4.9.0/bits/basic_string.h:878: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
../../../ipc/chromium/string16.o: In function `std::basic_string<unsigned short, base::string16_char_traits, std::allocator<unsigned short> >::_M_check(unsigned long, char const*) const':
/usr/gcc49/include/c++/4.9.0/bits/basic_string.h:324: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
/usr/gcc49/include/c++/4.9.0/bits/basic_string.h:324: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
/usr/gcc49/include/c++/4.9.0/bits/basic_string.h:324: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
../../../ipc/chromium/string16.o:/usr/gcc49/include/c++/4.9.0/bits/basic_string.h:324: more undefined references to `std::__throw_out_of_range_fmt(char const*, ...)' follow
collect2: error: ld returned 1 exit status


Expected results:

Link should complete. This may be a GCC 4.9 bug.
After removing the -s flag from --enable-optimize in .mozconfig and from LDFLAGS, the build now completes.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Component: Untriaged → Build Config
Resolution: --- → INVALID
Version: 30 Branch → Trunk
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.