[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12248] BFD linker plugin failed to resolve reference to archive
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/12248] BFD linker plugin failed to resolve reference to archive |
Date: |
Sat, 20 Nov 2010 20:37:39 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12248
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-20 20:37:29
UTC ---
(In reply to comment #2)
> This is GCC PR42690, for which I have a patch that's just completed testing.
Why does GOLD work fine?
address@hidden pr12245]$ make
/export/gnu/import/svn/gcc-test-spec/usr.bfd/bin/gcc -m32 -O3 -fwhole-program
-flto=jobserver -fuse-linker-plugin -c -o x.o x.c
/export/gnu/import/svn/gcc-test-spec/usr.bfd/bin/gcc -m32 -O3 -fwhole-program
-flto=jobserver -fuse-linker-plugin -c -o y.o y.c
/export/gnu/import/svn/gcc-test-spec/usr.bfd/bin/gcc -m32 -o foo -O3
-fwhole-program -flto=jobserver -fuse-linker-plugin x.o y.o
/tmp/ccEqvHaO.ltrans0.ltrans.o: In function `main':
ccEqvHaO.ltrans0.o:(.text+0x2b): undefined reference to `__udivdi3'
collect2: ld returned 1 exit status
make: *** [foo] Error 1
address@hidden pr12245]$ /export/gnu/import/svn/gcc-test-spec/usr.bfd/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/export/gnu/import/svn/gcc-test-spec/usr.bfd/bin/gcc
COLLECT_LTO_WRAPPER=/export/gnu/import/svn/gcc-test-spec/usr.bfd/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /export/gnu/import/git/gcc/configure --enable-clocale=gnu
--with-system-zlib --with-demangler-in-ld --enable-languages=c,c++,fortran
--enable-shared --enable-threads=posix --enable-haifa --prefix=/usr/gcc-4.6.0
--with-local-prefix=/usr/local --with-fpmath=sse --with-plugin-ld=ld
Thread model: posix
gcc version 4.6.0 20101119 (experimental) (GCC)
address@hidden pr12245]$ make clean
rm -f *.o foo a.out
address@hidden pr12245]$ make
/export/gnu/import/svn/gcc-test-spec/usr/bin/gcc -m32 -O3 -fwhole-program
-flto=jobserver -fuse-linker-plugin -c -o x.o x.c
/export/gnu/import/svn/gcc-test-spec/usr/bin/gcc -m32 -O3 -fwhole-program
-flto=jobserver -fuse-linker-plugin -c -o y.o y.c
/export/gnu/import/svn/gcc-test-spec/usr/bin/gcc -m32 -o foo -O3
-fwhole-program -flto=jobserver -fuse-linker-plugin x.o y.o
./foo
2147478250
address@hidden pr12245]$ /export/gnu/import/svn/gcc-test-spec/usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/export/gnu/import/svn/gcc-test-spec/usr/bin/gcc
COLLECT_LTO_WRAPPER=/export/gnu/import/svn/gcc-test-spec/usr/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /export/gnu/import/git/gcc/configure --enable-clocale=gnu
--with-system-zlib --with-demangler-in-ld --enable-languages=c,c++,fortran
--enable-shared --enable-threads=posix --enable-haifa --prefix=/usr/gcc-4.6.0
--with-local-prefix=/usr/local --with-fpmath=sse --with-plugin-ld=ld.gold
--enable-gold
Thread model: posix
gcc version 4.6.0 20101119 (experimental) (GCC)
address@hidden pr12245]$
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/12248] New: BFD linker plugin failed to resolve reference to archive, hjl.tools at gmail dot com, 2010/11/20
- [Bug ld/12248] BFD linker plugin failed to resolve reference to archive, hjl.tools at gmail dot com, 2010/11/20
- [Bug ld/12248] BFD linker plugin failed to resolve reference to archive, hjl.tools at gmail dot com, 2010/11/20
- [Bug ld/12248] BFD linker plugin failed to resolve reference to archive, davek at gcc dot gnu.org, 2010/11/20
- [Bug ld/12248] BFD linker plugin failed to resolve reference to archive,
hjl.tools at gmail dot com <=
- [Bug ld/12248] BFD linker plugin failed to resolve reference to archive, davek at gcc dot gnu.org, 2010/11/20
- [Bug ld/12248] BFD linker plugin failed to resolve reference to archive, ccoutant at google dot com, 2010/11/23
- [Bug ld/12248] BFD linker plugin failed to resolve reference to archive, hjl.tools at gmail dot com, 2010/11/23
- [Bug ld/12248] BFD linker plugin failed to resolve reference to archive, hjl.tools at gmail dot com, 2010/11/23
- [Bug ld/12248] Linker plugin failed to resolve reference to archive, hjl.tools at gmail dot com, 2010/11/29
- [Bug ld/12248] Linker plugin failed to resolve reference to archive, hjl.tools at gmail dot com, 2010/11/29