Hello All,

I just noticed (on Debian/Testing/AMD64) that with both polyml-5.4 &
latest SVN trunk (i.e. rev 1215) it is not possible to use binutils
gold linker.

I configured with  ./configure CC='gcc-4.5' CXX='g++-4.5'

Where gcc-4.5 is an GCC 4.5.1 from FSF tree:
 % gcc-4.5 -v
Using built-in specs.
COLLECT_GCC=/usr/local/bin/gcc-4.5
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /usr/src/Lang/gcc-4.5.1/configure --enable-plugins
--program-suffix=-4.5 --enable-languages=c,c++,objc,lto
--enable-checking=release

Build fails with
/bin/bash ./libtool --tag=CC   --mode=link gcc-4.5   -Wall
-fno-strict-aliasing -O3    -o poly  polyexport.o
libpolymain/libpolymain.la libpolyml/libpolyml.la  -lpthread -lgmp -lm
-ldl -lstdc++ -lgcc_s -lgcc libtool: link: gcc-4.5 -Wall
-fno-strict-aliasing -O3 -o .libs/poly polyexport.o
libpolymain/.libs/libpolymain.a libpolyml/.libs/libpolyml.so
-lpthread /usr/lib/libgmp.so -lm -ldl /usr/local/lib/../lib64/libstdc+
+.so -lgcc_s -lgcc -Wl,-rpath -Wl,/usr/local/lib/../lib64 /usr/bin/ld:
error: polyexport.o: unsupported REL reloc section /usr/bin/ld:
internal error in relocate_section, at ../../gold/x86_64.cc:2444
collect2: ld returned 1 exit status

By the way, polyml cannot be build with CC='gcc-4.5 -flto' CXX='g++-4.5
-flto' that is using the new link time optimization feature of GCC
(which requires binutils GOLD).

Regards.
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***
_______________________________________________
polyml mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to