NetBSD-Users archive

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

Re: NetBSD tools/gmp build.sh issues on Solaris-11.4



On Tue, 25 Mar 2025, Sad Clouds wrote:

Date: Tue, 25 Mar 2025 21:32:48 +0000
From: Sad Clouds <cryintothebluesky%gmail.com@localhost>
To: palle%lyckegaard.dk@localhost
Cc: netbsd-users%netbsd.org@localhost
Subject: Re: NetBSD tools/gmp build.sh issues on Solaris-11.4

Hi Palle, I noticed your reply to my original email on the archive
page, but I haven't yet received your email. Maybe gmail is blocking
your mail server?

ok will check...


Anyway, I wonder if your /usr/gcc/12/bin/gcc was built to generate
32-bit binaries by default, which would normally mask this particular
issue.

I'm just using the GCCs provided by Solaris 11.4:

palle@s11-sparc:~$ uname -a
SunOS s11-sparc.cfarm 5.11 11.4.79.189.2 sun4v sparc sun4v logical-domain
palle@s11-sparc:~$ /usr/gcc/12/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/gcc/12/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/12/lib/gcc/sparcv9-sun-solaris2.11/12.4.0/lto-wrapper
Target: sparcv9-sun-solaris2.11
Configured with: /builds/11.4-SRU/11.4.78.0.1.189.0/components/gcc12/gcc-12.4.0/configure --prefix=/usr/gcc/12 --mandir=/usr/gcc/12/share/man --bindir=/usr/gcc/12/bin --sbindir=/usr/gcc/12/sbin --libdir=/usr/gcc/12/lib --infodir=/usr/gcc/12/share/info --libexecdir=/usr/gcc/12/lib --enable-languages=ada,c,c++,fortran,go,objc --enable-shared --enable-initfini-array --disable-rpath --with-system-zlib --with-build-config=no --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/gnu/bin/as --disable-bootstrap 'BOOT_CFLAGS=-g -O2' sparcv9-sun-solaris2.11
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.4.0 (GCC)
palle@s11-sparc:~$


palle@s11-i386:~$ uname -a
SunOS s11-i386.cfarm 5.11 11.4.79.189.2 i86pc i386 i86pc kernel-zone
palle@s11-i386:~$ /usr/gcc/12/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/gcc/12/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/12/lib/gcc/x86_64-pc-solaris2.11/12.4.0/lto-wrapper
Target: x86_64-pc-solaris2.11
Configured with: /builds/11.4-SRU/11.4.78.0.1.189.0/components/gcc12/gcc-12.4.0/configure --prefix=/usr/gcc/12 --mandir=/usr/gcc/12/share/man --bindir=/usr/gcc/12/bin --sbindir=/usr/gcc/12/sbin --libdir=/usr/gcc/12/lib --infodir=/usr/gcc/12/share/info --libexecdir=/usr/gcc/12/lib --enable-languages=ada,c,c++,fortran,go,objc --enable-shared --enable-initfini-array --disable-rpath --with-system-zlib --with-build-config=no --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/gnu/bin/as --disable-bootstrap 'BOOT_CFLAGS=-g -O2' x86_64-pc-solaris2.11
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.4.0 (GCC)
palle@s11-i386:~$


I'm pretty sure the problem is gmp configure script. Once I figure out
a fix, I will submit a bug report upstream. If the compiler generates
64-bit binaries, gmp should always switch to 64-bit ABI.



I had some issues building tools/mpfr caused by incorrect buld time configuration of tools/gmp (PR 58409) (https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=58409) but fixed that issue.

Regards
Palle



Home | Main Index | Thread Index | Old Index