This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/67069] ld: fatal: file .libs/lto-plugin.o: wrong ELF class: ELFCLASS32 during gcc compilation on Solaris 10 x86-64
- From: "zclai at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 31 Jul 2015 14:53:01 +0000
- Subject: [Bug lto/67069] ld: fatal: file .libs/lto-plugin.o: wrong ELF class: ELFCLASS32 during gcc compilation on Solaris 10 x86-64
- Auto-submitted: auto-generated
- References: <bug-67069-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67069
--- Comment #2 from Alex Lai <zclai at yahoo dot com> ---
(In reply to Andrew Pinski from comment #1)
> Don't use:
> "CFLAGS=-m64" "CXXFLAGS=-m64" "LDFLAGS=-m64"
>
> Instead set CC/CXX to include -m64 instead.
> Also you might need to default GCC to 64bit too.
Setting CC/CXX to include -m64 worked. Thanks a lot.