gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Initial Setup & Installation


From: Gaius Mulley
Subject: [Gm2] Initial Setup & Installation
Date: Fri, 27 Sep 2002 18:14:10 +0100

Hi,

thanks for reporting the problem, it appears that there was a bug in
the Strings module, which caused the compiler not to see a file in a
path.

Here is a patch for gcc/gm2/gm2-libs/Strings.mod


diff -r1.4 Strings.mod
268,269c268,269
<    p: POINTER TO CHAR ;
<    i: CARDINAL ;
---
>    p   : POINTER TO CHAR ;
>    i, j: CARDINAL ;
270a271
>    j := 0 ;
273c274
<    WHILE (i<h) AND (i<MaxBuf) DO
---
>    WHILE (j<h) AND (i<MaxBuf) DO
275a277
>       INC(j) ;
278c280
<    IF i<h
---
>    IF j<h
285c287
<          ConcatContentsAddress(contents, p, h-MaxBuf)
---
>          ConcatContentsAddress(contents, p, h-j)


however the make then fails when trying to build the C files during
stage2. All very strange as it passed on another machine..  one simple
way (read hack) to solve this is to replace all $(GCC_FOR_TARGET) in
gcc/gm2/Make-lang.in with $(CC).

But of course this will break the cross development build of gm2
(which maybe unimportant for you?).

I'll find a better solution a little later on..

Thanks Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]