Last Comment Bug 747348 - Build fails in TestMailCookie.cpp
: Build fails in TestMailCookie.cpp
Status: RESOLVED FIXED
:
Product: MailNews Core
Classification: Components
Component: Build Config (show other bugs)
: Trunk
: x86_64 Linux
: -- blocker (vote)
: Thunderbird 14.0
Assigned To: Ian Neal
:
Mentors:
Depends on: 743988
Blocks: 754065
  Show dependency treegraph
 
Reported: 2012-04-20 05:15 PDT by Ian Neal
Modified: 2012-05-10 14:54 PDT (History)
5 users (show)
bugzillamozillaorg_serge_20140323: in‑testsuite-
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
fixed


Attachments
Port bug 743988 [Checked in: Comment 7] (1.92 KB, patch)
2012-04-20 14:08 PDT, Ian Neal
iann_bugzilla: review+
Details | Diff | Splinter Review

Description Ian Neal 2012-04-20 05:15:06 PDT
Pulled a few times in the last couple of days from trunk and done clobber builds but it keeps failing in TestMailCookie.cpp with the following error:
/usr/bin/ld: ../../../mozilla/dist/lib/libmozglue.a(double-conversion.o): undefined reference to symbol '__cxa_guard_acquire@@CXXABI_1.3'
/usr/bin/ld: note: '__cxa_guard_acquire@@CXXABI_1.3' is defined in DSO /usr/lib64/libstdc++.so.6 so try adding it to the linker command line
/usr/lib64/libstdc++.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[6]: *** [TestMailCookie] Error 1
make[6]: Leaving directory `/home/gizmo/central/sm-opt/mailnews/base/test'
make[5]: *** [tools] Error 2

After issuing the following command:
/usr/bin/python2.7 /home/gizmo/central/comm-central/mozilla/config/pythonpath.py -I../../../mozilla/config /home/gizmo/central/comm-central/mozilla/config/expandlibs_exec.py --uselist --  /usr/bin/ccache gcc  -pedantic -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -Wno-long-long -fno-strict-aliasing -pthread -pipe  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -finline-limit=50 -fomit-frame-pointer -o TestMailCookie TestMailCookie.o  -lpthread    -Wl,-rpath-link,/home/gizmo/central/sm-opt/mozilla/dist/bin:/usr/lib:/usr/local/lib:/lib -Wl,-rpath-link,/usr/local/lib  -Wl,--whole-archive /home/gizmo/central/sm-opt/mozilla/dist/lib/libmozglue.a -Wl,--no-whole-archive -rdynamic  -L../../../mozilla/dist/bin -L../../../mozilla/dist/lib /home/gizmo/central/sm-opt/mozilla/dist/lib/libxpcomglue_s.a -L/home/gizmo/central/sm-opt/mozilla/dist/bin -lxpcom -lmozalloc -L/home/gizmo/central/sm-opt/mozilla/dist/bin -lxpcom -lmozalloc -lxul  -L/home/gizmo/central/sm-opt/mozilla/dist/bin -lxpcom -lmozalloc -lxul  `/home/gizmo/central/sm-opt/mozilla/dist/sdk/bin/nspr-config --prefix=/home/gizmo/central/sm-opt/mozilla/dist --libdir=/home/gizmo/central/sm-opt/mozilla/dist/lib --libs`  -ldl -lm 

This happens on both Fedora 16 64-bit and Fedora 14 64-bit
Comment 1 Ian Neal 2012-04-20 06:20:20 PDT
I've tried building both SM and TB with the same failure.
My .mozconfig for each application has the following common lines in:
ac_add_options --enable-debugger-info-modules="yes"
ac_add_options --enable-optimizer="-O2 -gstabs+"
mk_add_options MOZ_MAKE_FLAGS="-j4"
ac_add_options --with-ccache=/usr/bin/ccache
Comment 2 Misak Khachatryan 2012-04-20 06:40:44 PDT
Mine too, Fedora 16 64-bit and Fedora 17 Beta 64-bit
Comment 3 Philip Chee 2012-04-20 09:05:14 PDT
<https://dev.openwrt.org/ticket/9235>
"the problem is caused by newer versions of gcc/binutils, which are trying to fix a potential pitfall by disallow implicit -l. (more detail here:  http://fedoraproject.org/wiki/UnderstandingDSOLinkChange ) Specifically, 'cc1-dummy' requires libstdc++, but doesn't reference it. Older versions of ld would "steal" libstdc++ via libgmpxx; newer versions, however, are disallowing that."

<http://lists.debian.org/debian-devel-announce/2011/02/msg00011.html>
Comment 4 Ian Neal 2012-04-20 13:45:54 PDT
cc'ing some m-c people that might know if a similar issue has been fixed there (or needs to be)
Comment 5 Mike Hommey [:glandium] 2012-04-20 13:52:30 PDT
See bug 743988 and bug 744444
Comment 6 Ian Neal 2012-04-20 14:08:03 PDT
Created attachment 617091 [details] [diff] [review]
Port bug 743988 [Checked in: Comment 7]

rs=Callek via IRC

Just building to make sure it definitely fixes though before checkin

Note You need to log in before you can comment on or make changes to this bug.