Re: Has anyone tried a test in a LDOM on some modern SPARC server?
Palle Lyckegaard <[email protected]> Sun, 12 Oct 2025 18:55:57 +0000 (UTC)
| Newsgroups | gmane.os.netbsd.ports.sparc64 |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 12 Oct 2025, Sad Clouds wrote:
> I just use these hacks on Solaris when building NetBSD:
>
> mkdir /tmp/tools
> ln -sf /usr/bin/gawk /tmp/tools/awk
> ln -sf /usr/bin/gsed /tmp/tools/sed
>
> export HOST_SH=/bin/bash
> export HOST_CC=gcc
> export HOST_CXX=g++
> export PATH=/tmp/tools:/opt/gcc/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:/usr/sbin
>
>
> And xpg4 nm set in current path seems to work for me:
>
> $ which nm
> /usr/xpg4/bin/nm
>
I documented Solaris 11.4 build instructions in tools/compat/README a
couple of years ago and this has been working properly for me.
Here is a copy of my local ci script:
#!/bin/sh
set -e
SRC=/home/palle/netbsd/git/src
BUILD=/home/palle/netbsd/build
: "${ARCH:=sparc64}"
exec 2>&1 >$HOME/log/`date '+ci_netbsd_%Y%m%d%H%M%S'`_$ARCH
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
JOBS=`nproc`
#JOBS=1
cd $SRC
./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