Port-sparc64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Has anyone tried a test in a LDOM on some modern SPARC server?
On Sun, 12 Oct 2025 11:53:53 +0000 (UTC)
Palle Lyckegaard <palle%freeshell.org@localhost> wrote:
> 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
>
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
Home |
Main Index |
Thread Index |
Old Index