[Top] [All Lists]

More gcc errors...

To:, Systemkennung Linux <>
Subject: More gcc errors...
From: "Michael Laird" <>
Date: Fri, 8 Dec 1995 10:09:49 -0500
In-reply-to: Systemkennung Linux <> "Re: gcc error" (Dec 8, 9:03am)
References: <>
Thank you Ralf for the explanations about my previous problem with gcc.
 Unfortunately, I now have a new one ... :-(.  Can any of you help me get past
this problem?

I have gcc-2.7.0 source and am trying to compile it with the following tools on
my Pentium system:
        cc:  gcc version 2.7.0
        as:  GNU assembler version cygnus/linux-2.5.2l.15 (i486-linux), using
                BFD version cygnus/linux-2.5.2l.11
        ld:  GNU fileutils 3.12 with color-ls patch

I got into /usr/local/src/gcc-2.7.0 and did the following:

./configure --host=i486-linux --target=mips-linuxelf
make CC="gcc -m486" CLFAGS="-O2 -fomit-frame-pointer" LDFLAGS=-s LANGUAGES=c

It compiles for a while, but then dies while trying to create tmplibgcc2.a with
an error from 'as':  as: unrecognized option `-PIC'.

Here is the end of the output from make:

: make[2]: Entering directory `/usr/local/src/gcc-2.7.0'
: rm -f tmplibgcc2.a
: for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
: _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
: _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi
: _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf
: __gcc_bcmp _varargs _eprintf _op_new _op_vnew _new_handler _op_delete
: _bb _shtab _clear_cache _trampoline __main _exit _ctors _eh _pure; \
: do \
:   echo ${name}; \
:   ./xgcc -B./ -DCROSS_COMPILE -DIN_GCC    -I./include   -I. -I. -I./config -c
: -DL${name} \
:       ./libgcc2.c -o ${name}.o; \
:   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
:   /usr/mips-linuxelf/bin/ar rc tmplibgcc2.a ${name}.o; \
:   rm -f ${name}.o; \
: done
: _muldi3
: as: unrecognized option `-PIC'
: make[2]: *** [libgcc2.a] Error 1
: make[2]: Leaving directory `/usr/local/src/gcc-2.7.0'
: make[1]: *** [stmp-multilib-sub] Error 2
: make[1]: Leaving directory `/usr/local/src/gcc-2.7.0'
: make: *** [stmp-multilib] Error 1

as does not list -PIC as an option, so why is gcc calling it with that as a
command-line switch?  I'd appreciate any help!

Thank you,

Michael Laird

Michael Laird, Nashua, NH               "Glory to God in the highest, and on
Sanders, A Lockheed Martin Company      earth peace, good will toward men."              -- Luke 2:14
[All opinions expressed are personal and do not represent Sanders in any way.]

<Prev in Thread] Current Thread [Next in Thread>