gm2
[Top][All Lists]
Advanced

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

Re: Trying to build gcc-4.1.2+gm2-20200507 on MacOS 10.5.8 (G5)


From: Gaius Mulley
Subject: Re: Trying to build gcc-4.1.2+gm2-20200507 on MacOS 10.5.8 (G5)
Date: Wed, 10 Jun 2020 08:46:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

john o goyo <jog37@riddermarkfarm.ca> writes:

> As others on this list, I try building gcc-4.1.2+gm2-20200507 on my G5
> running MacOS 10.5.8 (Darwin 9.8.0).
>
> The build succeeds, "make check-gm2" only half works (below), and
> trying a simple test fails with a strange error (below).  I searched
> but found nothing useful.
>
>
> Check-gm2 gave me the following:
>
>                 === gm2 Summary ===
>
> # of expected passes            6611
> # of unexpected failures        1394
> # of unresolved testcases       1381
>
> This is not as bad as sbb
> (https://lists.nongnu.org/archive/html/gm2/2020-04/msg00001.html) but
> not good, either.
>
>
> Trying to compile a simple test program produced the following.
>
> [~/prj/tst]=> cat what.mod
> MODULE what;
>
> FROM STextIO IMPORT WriteString, WriteLn;
>
> BEGIN
>   WriteString("Now what?"); WriteLn
> END what.
> [~/prj/tst]=> gm2 --version
> GNU Modula-2  1.0.5  (20200529)
>   grafted onto GCC 4.1.2
> Copyright (C) 2020 Free Software Foundation, Inc.
> License GPLv2: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> [~/prj/tst]=> gm2 -c -fiso what.mod
> [~/prj/tst]=> gm2 -fiso what.mod
> ld: in
> /Users/build/gm2/4.1.2/20200507/lib/gcc/powerpc-apple-darwin9.8.0/4.1.2/gm2/iso/libgm2iso.a(RTgenif.o),
> object file contains old DWARF debug info - rebuild with newer
> compiler
> collect2: ld returned 1 exit status

Hi John,

would it be possible to build a later version of gcc and use this to
bootstrap a later gm2 release?  There was a huge amount of internal
changes between 4.1.2 and 4.7.4 (in gm2 and also gcc) - which would make
back porting a significant undertaking :-)

Another thought - might it be possible to cross compile gcc for darwin
on a GNU/Linux box maybe?

Using something like
https://devs.openttd.org/~truebrain/compile-farm/apple-darwin9.txt

regards,
Gaius



reply via email to

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