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 15:12:45 +0000
From: Sad Clouds <cryintothebluesky%gmail.com@localhost>
To: netbsd-users%netbsd.org@localhost
Subject: NetBSD tools/gmp build.sh issues on Solaris-11.4

Hello, I'm trying to see if I can build NetBSD on Solaris-11.4 and I'm
having issues with tools/gmp.

I have GCC installed under /opt/gcc/ and by default it generates 64-bit
binaries. However, for some reason, NetBSD tools/gmp defaults to 32-bit
configuration. Unsurprisingly this causes failures later on during the
build.

checking build system type... sparc-sun-solaris2.11
checking host system type... sparc-sun-solaris2.11
...

I've seen this before and seem to rember that using a specific version of GCC solved my issue. Please check the documentation in src/tools/compat/README with notes for Solaris 11.4.

I do a daily CI build on two Solaris 11.4 systems from the cfarm project (https://portal.cfarm.net/) - cfarm215 which is Solaris 11.4/i383 and cfarm216 which is Solaris 11.4/SPARC(sun4v). They build without issues (only a minor fix is outstanding - see PR58437 https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=58437).
Otherwise I have no local modifications.

The following is a copy of my CI script on the two cfarm servers:

#!/bin/sh


set -e

exec 2>&1 >$HOME/log/`date '+ci_netbsd_%Y%m%d%H%M%S'`

export PATH=/usr/xpg7/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin HOST_CC=/usr/gcc/12/bin/gcc HOST_SH=/usr/bin/bash

SRC=/home/palle/netbsd/git/src
BUILD=/home/palle/netbsd/build
ARCH=sparc64

JOBS=`nproc`
#JOBS=1

cd $SRC

git pull

./build.sh -m $ARCH -u -U -O $BUILD/$ARCH/objdir -T $BUILD/$ARCH/tooldir -R $BUILD/$ARCH/reldir -D $\
BUILD/$ARCH/destdir -j $JOBS release









Home | Main Index | Thread Index | Old Index