This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linker Error When Building gnat 4.6.0


Hi all,

When trying to build GCC 4.6.0 with Ada support, I get the following error:

ld: ../libiberty/pic/libiberty.a(simple-object-coff.o): relocation
R_X86_64_PC32 against undefined symbol `simple_object_set_big_16' can not
be used when making a shared object; recompile with -fPIC
ld: final link failed: Bad value
make[4]: *** [liblto_plugin.la] Error 1

It was my understanding that the pic/ subdirectory of libiberty/ was for a
PIC version of libiberty. This error occurs whether I explicitly export
-fPIC in CFLAGS or not. I have been able to build GCC 4.6.0 successfully
without Ada.

Cheers,
Shea Levy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]