From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5224 invoked by alias); 25 Jun 2005 16:08:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5212 invoked by uid 48); 25 Jun 2005 16:08:14 -0000 Date: Sat, 25 Jun 2005 16:08:00 -0000 From: "pedro dot lamarao at mndfck dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050625160810.22185.pedro.lamarao@mndfck.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/22185] New: final link failed: Nonrepresentable section on output X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg03095.txt.bz2 List-Id: I get the following with the net_error.ii file attached to this bug: [pedro@localhost Projetos]$ g++ -O3 -fPIC -c -o net_error.o net_error.ii [pedro@localhost Projetos]$ g++ -fPIC -shared -o net_error.so net_error.o /usr/bin/ld: net_error.o(.text+0x8e): unresolvable relocation against symbol `std::basic_string, std::allocator >::_Rep::_S_empty_rep_storage@@GLIBCXX_3.4' /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status [pedro@localhost Projetos]$ g++ -O3 -c -o net_error.o net_error.ii [pedro@localhost Projetos]$ g++ -shared -o net_error.so net_error.o [pedro@localhost Projetos]$ Works fine. [pedro@localhost Projetos]$ g++ -fPIC -c -o net_error.o net_error.ii [pedro@localhost Projetos]$ g++ -fPIC -shared -o net_error.so net_error.o [pedro@localhost Projetos]$ Works fine. [pedro@localhost Projetos]$ g++ -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux Thread model: posix gcc version 4.0.0 20050519 (Red Hat 4.0.0-8) The machine runs a Fedora Core 4 system. -- Summary: final link failed: Nonrepresentable section on output Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: critical Priority: P2 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pedro dot lamarao at mndfck dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i386-redhat-linux GCC host triplet: i386-redhat-linux GCC target triplet: i386-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22185