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: john o goyo
Subject: Re: Trying to build gcc-4.1.2+gm2-20200507 on MacOS 10.5.8 (G5)
Date: Wed, 10 Jun 2020 16:44:56 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-GB; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15

Greetings, Gaius.

On 10/06/2020 03:46, Gaius Mulley wrote:
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 :-)

Well, I can build gcc-4.7.4 on the G5 without problems but trying to build gm2 yields something reminiscent of the problem on Sparc:

bash ../../../src/gcc-4.7.4+gm2-20200604/gm2/gcc-versionno/gcc/gm2/tools-src/makeSystem -fpim \ ../../../src/gcc-4.7.4+gm2-20200604/gm2/gcc-versionno/gcc/gm2/gm2-libs/SYSTEM.def \ ../../../src/gcc-4.7.4+gm2-20200604/gm2/gcc-versionno/gcc/gm2/gm2-libs/SYSTEM.mod \ -I../../../src/gcc-4.7.4+gm2-20200604/gm2/gcc-versionno/gcc/gm2/gm2-libs \ "/Users/build/bld/gm2-4.7.4-20200604/./gcc/xgm2 -B/Users/build/bld/gm2-4.7.4-20200604/./gc " /Users/build/bld/gm2-4.7.4-20200604/gcc/gm2/gm2-libs/SYSTEM.def
In function '_M2_SYSTEM_init':
cc1gm2: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
SYSTEM module creates type: LOC
SYSTEM module creates type: WORD
[...]
SYSTEM module creates type: COMPLEX96
SYSTEM module creates type: COMPLEX128
In function '_M2_SYSTEM_init':
cc1gm2: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [/Users/build/bld/gm2-4.7.4-20200604/gcc/gm2/gm2-libs/SYSTEM.def] Error 1
make[1]: *** [all-gcc] Error 2


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
I have no Linux boxes at the moment. (However, I do have an SB2000 not in use on which I will try to install Debian -- TBD.)

Two closing remarks:

1. Have you, or anyone on this list, built a recent gm2 on a big-endian machine?

2. The gcc+gm2 build failed early due to a missing function lang_register_spec_functions() in gcc.c. Not finding it elsewhere, I added it with a void body to gcc.c.

Sincerely,
john



reply via email to

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