Hi,

I try to build GCC-4.8.1 on pre 5.4 without ports and faced with the
following error when libgomp is configured:
configure:3664: checking for C compiler default output file name
configure:3686: /home/nixman/build/./gcc/xgcc
-B/home/nixman/build/./gcc/
-B/home/nixman/prefix/x86_64-unknown-openbsd5.4/bin/
-B/home/nixman/prefix/x86_64-unknown-openbsd5.4/lib/ -isystem
/home/nixman/prefix/x86_64-unknown-openbsd5.4/include -isystem
/home/nixman/prefix/x86_64-unknown-openbsd5.4/sys-include    -g -O2
conftest.c  >&5
/usr/bin/ld: /tmp//ccgLXgHL.o: relocation R_X86_64_32 can not be used
when making a shared object; recompile with -fPIC
/tmp//ccgLXgHL.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
configure:3690: $? = 1
configure:3727: result:
configure: failed program was:
...
...
configure:3733: error: in
`/home/nixman/build/x86_64-unknown-openbsd5.4/libgomp':
configure:3736: error: C compiler cannot create executables


GCC configured with:
--prefix=/home/nixman/prefix \
--disable-shared \
--with-{gmp,mpfr,mpc}=/home/nixman/prefix \
--disable-nls \
--disable-miltilib \
--with-gnu-as \
--with-gnu-ld \
--enable-languages=c,c++,fortran,go \
--host=x86_64-unknown-openbsd5.4 \
--build=x86_64-unknown-openbsd5.4 \
--target=x86_64-unknown-openbsd5.4

gmp,mpfr,mpc configured witg --disable-shared

Ideas?

Thanks!

-- 
Regards,
niXman

Reply via email to