This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

linker script parse error



I'm attempting to build a cross compiler hosted on a Solaris 2.6 box for
a i386-linux target. I'm using gcc-2.8.1 (with crossgcc patch installed),
binutils-2.9.1 and newlib-1.8.1. I've run one-tree-1.5.sh to setup the
one pass install, and run configure and make like so:

./configure --target="i386-*-linux-gnu" --prefix=/sw2/gccx386 -v
make all install

I'm getting this linker script error:

Testing libgcc1.  Ignore linker warning messages.
/sw2/gccx386/build/gcc/xgcc -B/sw2/gccx386/build/gcc/ -DCROSS_COMPILE -DIN_GCC 
-DSVR4  -g -O2 -I./include  libgcc1-test.o -o libgcc1-test \
  -nostartfiles -nostdlib `/sw2/gccx386/build/gcc/xgcc -B/sw2/gccx386/build/gcc/
--print-libgcc-file-name`
/sw2/gccx386/build/gcc/ld:built in linker script:5: parse error


I've found a similar problem and subsequent solution in the archives for a 
compiler for a DOS target, but that solution doesn't work for me. I've looked 
through the files in binutils-2.9.1/ld/scripttempl, since that appears to
be where the problem for the DOS target was, but I don't know which template
my build is using in there (if any) plus I really don't know what I'm looking
for. 

Anyone run into this already?  I'd appreciate any ideas or a kick in the right 
direction. Thanks in advance, I will summarize ...

-- 

_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/

 Kurt Werth                                 Lockheed Martin Control Systems
 E-mail:   Kurt.D.Werth@lmco.com            600 Main Street 
 Phone:    607-770-3501 / 8*255-3501        Johnson City, NY  13790

_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.