Closed Bug 1153109 Opened 9 years ago Closed 9 years ago

[gcc 5.0] error: no member function '_S_construct_aux_2' declared in 'std::__cxx11::basic_string<char>'

Categories

(Firefox Build System :: General, defect)

All
Linux
defect
Not set
normal

Tracking

(firefox40 fixed)

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

When building with gcc 5.0 and --enable-stdcxx-compat:

22:46:52     INFO -  /builds/slave/try-lx-00000000000000000000000/build/src/gcc/bin/g++ -m32 -march=pentiumpro -o host_stdc++compat.o -c -std=gnu++0x -MD -MP -MF .deps/host_stdc++compat.o.pp -DMOZ_LIBSTDCXX_VERSION=197653 -I/builds/slave/try-lx-00000000000000000000000/build/src/build/unix/stdc++compat -I.  -I../../../dist/include  -I/builds/slave/try-lx-00000000000000000000000/build/src/obj-firefox/dist/include/nspr /builds/slave/try-lx-00000000000000000000000/build/src/build/unix/stdc++compat/stdc++compat.cpp
22:46:52     INFO -  /builds/slave/try-lx-00000000000000000000000/build/src/build/unix/stdc++compat/stdc++compat.cpp:49:86: error: no member function '_S_construct_aux_2' declared in 'std::__cxx11::basic_string<char>'
22:46:52     INFO -       template char *string::_S_construct_aux_2(size_type, char, allocator<char> const&);
22:46:52     INFO -                                                                                        ^
22:46:52     INFO -  /builds/slave/try-lx-00000000000000000000000/build/src/build/unix/stdc++compat/stdc++compat.cpp:51:96: error: no member function '_S_construct_aux_2' declared in 'std::__cxx11::basic_string<wchar_t>'
22:46:52     INFO -       template wchar_t *wstring::_S_construct_aux_2(size_type, wchar_t, allocator<wchar_t> const&);
22:46:52     INFO -                                                                                                  ^
22:46:52     INFO -  gmake[5]: *** [host_stdc++compat.o] Error 1

We need to build with -D_GLIBCXX_USE_CXX11_ABI=0 in this case.
Comment on attachment 8590674 [details] [diff] [review]
Add -D_GLIBCXX_USE_CXX11_ABI=0 to CXXFLAGS when building with --enable-stdcxx-compat

Review of attachment 8590674 [details] [diff] [review]:
-----------------------------------------------------------------

GCC 5.0 lets you build for both compat with the old ABI and the new ABI?  Whee.
Attachment #8590674 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/070d6e282fe4
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: