GNU as 2.5.2, GNU ld 2.5.2 (with BFD 2.5)

From: Christian Lynbech <lynbech_at_daimi.aau.dk>
Date: Thu, 18 May 1995 06:09:52 GMT

>>>>> "Jon" == Jon Berry <berryj_at_SANTA.CSC.DEPAUW.EDU> writes:

Jon> We had STk running on a sparc4, SunOs 4.1.3, gcc 2.6.0, then
Jon> we updated to gcc 2.6.3, GNU as 2.5.2, and GNU ld 2.5.2.

Jon> Now I can't compile STk anymore -

Jon> Make Extensions
Jon> gcc -fpic -O2 -DSTk_CODE -DSUNOS4 -I../Tk -I../Tcl -I../Src -I../Mp -target sun4 -c hash.c
Jon> /lunar/u1/gnu/sparc-sun-sunos4.1.3/bin/as: unrecognized option `-k'
Jon> *** Error code 1
Jon> make: Fatal error: Command failed for target `hash.o'
Jon> Current working directory /lunar/u4/stk/STk-2.1.6/Extensions


Jon> I started digging a little, and removing the -fpic flag gets me
Jon> past the as error and onto a ld error. Before I dig anymore, I
Jon> thought I would ask if this is familiar to anyone.

Seems like something I saw a little while back. The -fpic command
generates some options that GNU `as' and `ld' and digest. Only, as I
remember it was only `ld' that failed in my case. Anyway, in the
particular case, I solved the problem by linking with the Sun
linker. As it was under solaris, this was done with the option
"-B/usr/ccs/bin/" or the equivalent. I still haven't got round to
finding where the problem arises though (does GNU ld support pic at
all, is it a configuration problem or simply a bug in gcc?).

A good tip for debugging these things, is to use -v flag to get the
full story on the programs being run by gcc.


------------------------------------------------------------------------------
Christian Lynbech (R0.33) | Hit the philistines three times over the
phone: +45 8942 3217 | head with the Elisp reference manual.
email: lynbech_at_daimi.aau.dk | - petonic_at_hal.com (Michael A. Petonic)
------------------------------------------------------------------------------
Received on Thu May 18 1995 - 08:11:57 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST