Re: Has anyone tried a test in a LDOM on some modern SPARC server?
Palle Lyckegaard <[email protected]> Sun, 12 Oct 2025 11:53:53 +0000 (UTC)
| Newsgroups | gmane.os.netbsd.ports.sparc64 |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 12 Oct 2025, Sad Clouds wrote:
> It was possible to cross-build NetBSD on SPARC Solaris years ago, but
> last time I looked it had several issues resulting in build failures
> (both in src and xsrc trees). I did submit bug reports, but not sure
> there was much interest in fixing those, so they may still persist to
> this day. Once those issues are resolved, then you could use SPARC
> Solaris for all cross-building (various SPARC T2 to M8 CPUs are quite
> suitable for this job, provided you feed them with enough concurrent
> tasks to keep all CPU strands busy):
>
Cross-building NetBSD on Solaris 11.4 has been working perfectly
for quite some time.
I have daily CI builds running on the gcc buildfarm Solaris systems
cfarm215 and cfarm216 (https://portal.cfarm.net/machines/list/)
Recently switching to gcc14 broke the build, but a simple hack solves the
issue until I have time to come up with a proper solution.
The issue is that Solaris nm is not the same as gnu nm.
palle@s11-sparc:~/netbsd/git/src$ uname -a
SunOS s11-sparc.cfarm 5.11 11.4.85.201.2 sun4v sparc sun4v logical-domain
palle@s11-sparc:~/netbsd/git/src$ git diff
diff --git a/tools/gcc/Makefile b/tools/gcc/Makefile
index a03869ed4da2..415bc912a128 100644
--- a/tools/gcc/Makefile
+++ b/tools/gcc/Makefile
@@ -93,7 +93,7 @@ GCC_CPPFLAGS+= -DNB_FIX_VAX_BACKEND
MAKE_ARGS= MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q} \
LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= \
EXTRA_PARTS= CPPFLAGS=${GCC_CPPFLAGS:Q} \
- AR=${HOST_AR:Q} RANLIB=${HOST_RANLIB:Q} NM=${HOST_NM:Q}
+ AR=${HOST_AR:Q} RANLIB=${HOST_RANLIB:Q} NM=/usr/gnu/bin/nm
CONFIGURE_ENV+= gcc_cv_libc_provides_ssp=yes \
gcc_cv_as_sparc_gotdata_op=no