[Dune] [#806] checkrefnumbering from test suite fails to link with g++-4.5

Dune flyspray at dune-project.org
Thu Jul 1 15:48:44 CEST 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#806 - checkrefnumbering from test suite fails to link with g++-4.5
User who did this - Elias Pipping (pipping)

----------
pipping at bogus ~/Downloads/dune-grid-2.0 $ g++-4.5 -t linktest.o l-4.5.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/../../../../x86_64-pc-linux-gnu/bin/ld: mode elf_x86_64
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/../../../../lib64/crt1.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/../../../../lib64/crti.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/crtbegin.o
linktest.o
-lstdc++ (/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/../../../../lib64/libstdc++.so)
-lm (/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/../../../../lib64/libm.so)
-lgcc_s (/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/../../../../lib64/libgcc_s.so)
/lib64/libc.so.6
(/usr/lib64/libc_nonshared.a)elf-init.oS
/lib64/ld-linux-x86-64.so.2
-lgcc_s (/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/../../../../lib64/libgcc_s.so)
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/crtend.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/../../../../lib64/crtn.o
linktest.o: In function `T.319':
linktest.cc:(.text+0x66): undefined reference to `Dune::ReferenceElements<double, 1>::general'
linktest.cc:(.text+0x231): undefined reference to `Dune::ReferenceElements<double, 1>::general'
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.0/../../../../x86_64-pc-linux-gnu/bin/ld: link errors found, deleting executable `a.out'
collect2: ld returned 1 exit status
pipping at bogus ~/Downloads/dune-grid-2.0 $ 


> Regarding the weak symbols: As far as I can see the symbols are 'unique' with g++-4.5 and V-weak with g++4.4. Following 'man nm' the 'unique' flag is a GNU extension to elf. Could it be possible that your linker doesn't recognize this correctly?

Indeed they are. Since it doesn't work with ld(1) either, I doubt it's the linker's fault, though (I'm on binutils 2.20.1-r2)
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=806#comment2097

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list