[Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-12-01 Thread john.frankish at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 john.frankish at outlook dot com changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #10

[Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread john.frankish at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 --- Comment #8 from john.frankish at outlook dot com --- Ah... $strace nm test.o ... lstat("/usr/local/bin/nm", {st_mode=S_IFLNK|0777, st_size=37, ...}) = 0 readlink("/usr/local/bin/nm", "/tmp/tcloop/binutils/usr/local/b"..., 4095) = 37 lstat("/t

[Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 Andrew Pinski changed: What|Removed |Added Version|lto |4.9.1 --- Comment #7 from Andrew Pinski

[Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread john.frankish at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 --- Comment #6 from john.frankish at outlook dot com --- Hmm, but binutils was configured with: CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe" ../binutils-2.24.51/configure

[Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 --- Comment #5 from Andrew Pinski --- (In reply to john.frankish from comment #4) > $echo 'int f(void) { return 0; }' > test.c > $ cc test.c -c -flto -fuse-linker-plugin > $ nm test.o > 0001 C __gnu_lto_slim > 0001 C __gnu

[Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread john.frankish at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 --- Comment #4 from john.frankish at outlook dot com --- $echo 'int f(void) { return 0; }' > test.c $ cc test.c -c -flto -fuse-linker-plugin $ nm test.o 0001 C __gnu_lto_slim 0001 C __gnu_lto_v1

[Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 Andrew Pinski changed: What|Removed |Added Component|c |lto --- Comment #3 from Andrew Pinski -

[Bug c/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread john.frankish at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 --- Comment #2 from john.frankish at outlook dot com --- I believe /usr/local/lib/bfd-plugins/liblto_plugin.so (symlink to /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/liblto_plugin.so) is the correct location?

[Bug c/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 --- Comment #1 from Andrew Pinski --- > This can be fixed by using NM="gcc-nm", but as binutils was compiled with lto > enabled, it shouldn't be required? Do you have the linker plugin in the correct location for ld/nm to find it?

[Bug c/68626] New: Compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-30 Thread john.frankish at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626 Bug ID: 68626 Summary: Compiling with "-flto -fuse-linker-plugin" gives libtool error Product: gcc Version: lto Status: UNCONFIRMED Severi

compiling with "-flto -fuse-linker-plugin" gives libtool error

2015-11-29 Thread john . frankish
Compiling some packages with "-flto -fuse-linker-plugin" gives a libtool error during "make". Compiling the same package without "-flto -fuse-linker-plugin" allows "make" to complete without errors. Using gcc-4.9.1/binutils-2.24.51 or gcc-5.2.0/binutils-2.25.1 The problem seems to occur with a fe