Re: Emulated in qemu SS-20 can't compile gcc10/14?

Andrew Randrianasulu <[email protected]> Wed, 7 Jan 2026 19:24:52 +0300
Newsgroups gmane.os.netbsd.ports.sparc
Message-ID <CA+rFky5ay70g7N+bZhsOka2TPk5f0ko=VoZ-B8uGsTNvFCi3Sg@mail.gmail.com>
On Wed, Jan 7, 2026 at 3:26 PM Valery Ushakov <[email protected]> wrote:
>
> On Wed, Jan 07, 2026 at 10:36:05 +0300, Andrew Randrianasulu wrote:
>
> > https://mastodon.online/@Andrew_R/115852644410054411
> [...]
> > I added 1Gb swap ..was it not enough for gcc14? gcc 10 from pkgsrc
> > failed in similar but not exact same way.
> [...]
> > Compilation time to failure: six days.
>
> 1GB sounds too little.
>
> Welcome to modern compilers :)
>
> I went through this when I wanted to build Self on sparc and it
> required cmake, so I had to build cmake.  I naively tried to build it
> on my (diskless) javastation...  Fast forward one month...  Well, long
> story short, I loaned an U1 from a friend.

It seems adding another 1Gb of swap did not helped, at least without
full rebuild

https://github.com/gcc-mirror/gcc/blob/master/libgcc/libgcc2.c

seems that _divdc3 function is for complex number divide, in case soft
float is used.

Because Linux  dropped sparc32 support it might be possible that
native compilation on sparc32 somewhat bitroted in at least gcc10 + ?


>
> -uwe