This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


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

Problem compiling final gcc for MIPS


Hi Everyone,

During the compiling of the final gcc 4.9.2, i'm encountering this problem:

[ALL  ]    checking for LFS support... libtool: link:
/media/SSD/Reinoud/latest_crosstools/.build/mipsel-coconut-linux-uclibc/build/build-cc-final/./gcc/xgcc
-B/media/SSD/Reinoud/latest_crosstools/.build/mipsel-coconut-linux-uclibc/build/build-cc-final/./gcc/
-B/media/SSD/Reinoud/latest_crosstools/linux-mips/mipsel-coconut-linux-uclibc/bin/
-B/media/SSD/Reinoud/latest_crosstools/linux-mips/mipsel-coconut-linux-uclibc/lib/
-isystem /media/SSD/Reinoud/latest_crosstools/linux-mips/mipsel-coconut-linux-uclibc/include
-isystem /media/SSD/Reinoud/latest_crosstools/linux-mips/mipsel-coconut-linux-uclibc/sys-include
   -shared  .libs/ssp.o .libs/gets-chk.o .libs/memcpy-chk.o
.libs/memmove-chk.o .libs/mempcpy-chk.o .libs/memset-chk.o
.libs/snprintf-chk.o .libs/sprintf-chk.o .libs/stpcpy-chk.o
.libs/strcat-chk.o .libs/strcpy-chk.o .libs/strncat-chk.o
.libs/strncpy-chk.o .libs/vsnprintf-chk.o .libs/vsprintf-chk.o
-Wl,--version-script=/media/SSD/Reinoud/latest_crosstools/.build/src/gcc-4.9.2/libssp/ssp.map
-Wl,-EL   -Wl,-soname -Wl,libssp.so.0 -o .libs/libssp.so.0.0.0
[ALL  ]    /media/SSD/Reinoud/latest_crosstools/linux-mips/mipsel-coconut-linux-uclibc/bin/ld:
.libs/ssp.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not
be used when making a shared object; recompile with -fPIC
[ALL  ]    .libs/ssp.o: error adding symbols: Bad value
[ERROR]    collect2: error: ld returned 1 exit status
[ERROR]    make[4]: *** [libssp.la] Error 1

Ii'm not sure where to try to add the -fPIC flag and if that even
helps in the first place.
Any suggestions?
Thanks,

Reinoud.

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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