This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/22185] New: final link failed: Nonrepresentable section on output
- From: "pedro dot lamarao at mndfck dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2005 16:08:14 -0000
- Subject: [Bug libstdc++/22185] New: final link failed: Nonrepresentable section on output
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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<char, std::char_traits<char>, std::allocator<char>
>::_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