delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2021/11/03/10:43:38

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi>
Date: Wed, 3 Nov 2021 16:43:23 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.1.1
Subject: Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
To: djgpp AT delorie DOT com
References: <e69c2d84-e2cf-445c-b666-803170f473den AT googlegroups DOT com>
<4016e9cd-0be1-4758-8f29-db7770508ed6n AT googlegroups DOT com>
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
In-Reply-To: <4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 11/1/21 11:48, Stefan Ring (stefanrin AT gmail DOT com) [via djgpp AT delorie DOT com] wrote:
> On Monday, November 1, 2021 at 10:21:03 AM UTC+1, Stefan Ring wrote:
>> While trying to recreate the DJGPP gcc binaries, by following the excellent instructions in readme.DJGPP, I stumbled across this problem that caused me a lot of grief. I used Windows XP for building and even installed Vista as a possible remedy, but to no avail. The same thing happened there.
>>
>> The last line in libgcc/Makefile.in does an include of *.dep, but somehow in make 4.3 the expansion of this wildcard expression gets truncated somewhere in the middle, and then it complains about not being able to find the file whose name got truncated. I patched around this by splitting it up into multiple chunks of wildcard matches on multiple lines, but this got me further only by a tiny amount. The next problem was that during an "exit 0" in the configuration stage, make would say "memory fouled" and abort.
>>
>> After switching to make 4.1r2, the build worked beautifully.
> I forgot to mention: I used Andris Pavenis' builds from the directory "rpms/djcross-gcc-10.3.0" to create gcc1030s.zip and this in turn for building on Windows. And I consider it very likely that at least 10.2.0 will be affected in the same way, but I have not tested this.
>
Actually gcc-10.3.0 was built for DJGPP, just not uploaded (both RPMs and DJGPP packages). 
Uploading could be easy.

gcc-11 is a different story:

- Ada library does not compile - alignment issues which are likely to cause problems also for other 
languages like (c or C++) when SSE or AVX is being used (and maybe even with earlier GCC versions)

- I have build gcc-11 cross-compiler under ArchLinux (leaving Ada out). There was some problems 
building RPM but I have not studied them in more details

- Also building native compiler failed (also without Ada)


Problem with cross-compiler:

- libstdc++v3 configure does not check correctly available C library functions and as result they 
may not be put into std namespace. I would like to do cross-native build (building DJGPP native 
compiler using cross-compiler from Linux but it would have the same problem with libstdc++

Also:

Actually myƶs SRPM package is generated. Generating script is not in SRPM or gccXXXs.zip but can be 
found in my GCC repo fork in GitHub.

For djgpp/native/gcc-10 branch it is:

https://github.com/apavenis/djgpp-gcc/blob/djgpp/native/gcc-10/djgpp/mk-djcross-gcc.sh

Script generates

- SRPM package

- patch to be applied for ArchLinux build


Andris


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019