Installed Alpha 04/20 - Can't link_(re)

Wed, 14 May 1997 12:47:09 +0100 (WET DST)


On Wed, 14 May 1997, Berend De Schouwer wrote:

> 
> 
> On Sun, 11 May 1997, Peter Gerwinski wrote:
> 
> > According to Jan-Jaap van der Heijden:
> > > To Peter: since this GPC is searching for this obsolete 'djgpp.lnk', I
> > > assume you are indeed using v2.0. In that case you'd better upgrade to 
> > > 2.01 to stop this confusion.
> > 
> > I was sure that I am using v2.01, but I re-installed my `djdev201.zip'
> > and `gcc2721b.zip', thus the new Alpha gpc-970510 should definitly (?)
> > be v2.01.
> 
> Well, gpc alpha 05/10 still says "ld: can't find djgpp.lnk"


I found the error: it's in LIB/SPECS.GPC
This file has somehow survived from djgpp-2.0 days and thus references
"djgpp.lnk" instead of "djgpp.djl", whether you use djgpp v2.01 or not.

The link_command should look like:

*link_command:
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
        %{r} %{s} %{t} %{u*} %{x} %{z}\
        %{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
        %{L*} %D %{T*} %o -Tdjgpp.djl\
        %{!nostdlib:-lgcc -lgpc -lm %L -lgcc %{!A:%E}}}}}}}
%{!c:%{!M:%{!MM:%{!E:%{!S:stubify %{v} %{o*:%*} %{!o*:a.out}}}}}}

You're in trouble if you see:

*link_command:
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
        %{r} %{s} %{t} %{u*} %{x} %{z}\
        %{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
        %{L*} %D %{T*} %o -Tdjgpp.lnk\
        %{!nostdlib:-lgcc -lgpc -lm %L -lgcc %{!A:%E}}}}}}}
%{!c:%{!M:%{!MM:%{!E:%{!S:stubify %{v} %{o*:%*} %{!o*:a.out}}}}}}

To solve this, you can either use the "specs.gpc" from gpc-2.0 (which
worked a.f.a.i.k.) or save and uudecode this:

begin 644 specs.gpc
M*F%S;3H-"@T*#0HJ87-M7V9I;F%L.@T*#0H-"BIC<'`Z#0HE>W!OR%-.B5[(4U-.B5[(44Z)7LA4SIL9"`E;"`E6"`E>V\J?2`E>T%]("5[
M9'T@)7ME*GT@)7MM?2`E>TY]("5[;GT@7`T*"25[W1]("5[
M=2I]("5[>'T@)7MZ?5P-"@DE>R%!.B5[(6YOR%N;W-T
M9&QI8CHE4WU]?2`E>W-T871I8SI]7`T*"25[3"I]("5$("5[5"I]("5O("U4
M9&IG<'`N9&IL7`T*"25[(6YOR%!.B5%?7U]?7U]?0T*)7LA8SHE>R%-.B5[(4U-.B5[(44Z)7LA
M4SIS='5B:69Y("5[=GT@)7MO*CHE*GT@)7LA;RHZ82YO=71]?7U]?7T@#0H-
M"BIL:6(Z#0HM;&,-"@T**G-T87)T9FEL93H-"B5[<&V9U;G-I9VYE
M9"UC:&%R.BU$7U]#2$%27U5.4TE'3D5$7U]]#0H-"BIP 
> On a side note:
> gpc.inf doesn't work (no top node)
> But gpc.inf and gpc.i1 both reference and contain a top node.  I
> can't see why "info --file gpc.inf" complains...
> 
> gcc.inf/gcc.i1 look the same (at least in structure) and work.
> 

I'm not an expert in info files, but isn't the top-node the entry for a
program in the "dir" file?

In that case, try adding GPC, locate the GCC entry:

* GCC: (gcc.inf).
        The GNU C, C++, and Objective-C Compiler

And add GPC somewhere, like this:

* GPC: (gpc.inf).
        The GNU Pascal Compiler

Hope this helps,

JanJaap

---
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead.  -- RFC1925.



Jan-Jaap van der Heijden (janjaap@Wit381304.student.utwente.nl)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es