From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23263 invoked by alias); 23 Sep 2013 21:09:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23195 invoked by uid 48); 23 Sep 2013 21:09:35 -0000 From: "pthaugen at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/58514] New: Undefined symbol in libstdc++.so starting with rev 202818 Date: Mon, 23 Sep 2013 21:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pthaugen at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg01672.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58514 Bug ID: 58514 Summary: Undefined symbol in libstdc++.so starting with rev 202818 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: pthaugen at gcc dot gnu.org CC: bergner at gcc dot gnu.org, dje at gcc dot gnu.org, ppluzhnikov at google dot com Host: powerpc64-linux Target: powerpc64-linux Build: powerpc64-linux First noticed when cpu2000 benchmark 252.eon failed to build. Can reproduce with simple Hello world. Only occurs for 32-bit compile. Bisected to r202818. [pthaugen@igoo ~/temp]$ cat Hello.C #include using namespace std; int main() { cout << "Hello World!" << endl; return 0; } [pthaugen@igoo ~/temp]$ ~/install/gcc/trunk_work/bin/g++ -m64 Hello.C [pthaugen@igoo ~/temp]$ a.out Hello World! [pthaugen@igoo ~/temp]$ ~/install/gcc/trunk_work/bin/g++ -m32 Hello.C /home/pthaugen/install/gcc/trunk_work/lib/gcc/powerpc64-linux/4.9.0/../../../../lib/libstdc++.so: undefined reference to `int std::__int_to_char(char*, unsigned int, char const*, std::_Ios_Fmtflags, bool)' collect2: error: ld returned 1 exit status The undefined symbol comes from the added file snprintf_lite.cc [pthaugen@igoo c++11]$ pwd /home/pthaugen/work/build/gcc/trunk_work/powerpc64-linux/32/libstdc++-v3/src/c++11 [pthaugen@igoo c++11]$ nm -u snprintf_lite.o | grep int_to_char U _ZSt13__int_to_charIcjEiPT_T0_PKS0_St13_Ios_Fmtflagsb Configure flags for build: Configured with: /home/pthaugen/src/gcc/trunk_work/gcc/configure --prefix=/home/pthaugen/install/gcc/trunk_work --target=powerpc64-linux --host=powerpc64-linux --build=powerpc64-linux --enable-secureplt --enable-threads=posix --enable-shared --enable-__cxa_atexit --with-long-double-128 --enable-decimal-float --disable-alsa --enable-checking --with-lto --with-as=/home/bergner/binutils/install/binutils-power8/bin/as --with-ld=/home/bergner/binutils/install/binutils-power8/bin/ld --with-gmp=/home/pthaugen/install/gcc-host-libs --with-mpfr=/home/pthaugen/install/gcc-host-libs --with-mpc=/home/pthaugen/install/gcc-host-libs --without-ppl --without-cloog --enable-languages=c,fortran,c++ --disable-bootstrap