https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71517
--- Comment #1 from Albert Astals Cid ---
The used compiler is
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pk
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: albert.astals at canonical dot com
Target Milestone: ---
Compiling the file at http://paste.ubuntu.com/17091697/
I get no warnings if just using -c
$ g++ -c -fPIC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71517
--- Comment #3 from Albert Astals Cid ---
Ok, i see, this is regarding ccache bug
https://github.com/ccache/ccache/issues/93
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: albert.astals at canonical dot com
Created attachment 34947
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34947&action=edit
tar.gz containing files to reproduce
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65309
--- Comment #1 from Albert Astals Cid ---
Works fine with
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.8/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversio
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65309
--- Comment #3 from Albert Astals Cid ---
I guess i'm using the system default one, that would be
$ `which ld` -V
GNU ld (GNU Binutils for Ubuntu) 2.25
Supported emulations:
elf_x86_64
elf32_x86_64
elf_i386
i386linux
elf_l1om
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65309
--- Comment #6 from Albert Astals Cid ---
Same as ecloud, also fails if using gold.