Mail Archives: djgpp/2021/11/03/10:43:38
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 -