[schilytools] no big surprise .. fails to compile on Solaris 11.4 on new SPARC S7-2
Dennis Clarke
dclarke at blastwave.org
Sun Sep 21 19:11:42 CEST 2025
A lot of little things are weird in this Solaris incantation.
It really feels like a witchs brew of GNU stuff thrown on top
of old Solaris stuff where nothing works the way it should.
neptune# cat /etc/release
Oracle Solaris 11.4 SPARC
Copyright (c) 1983, 2025, Oracle and/or its affiliates.
Assembled 02 April 2025
neptune#
neptune#
neptune# uname -a
SunOS neptune 5.11 11.4.81.193.1 sun4v sparc sun4v non-virtualized
neptune#
neptune# psrinfo -pv
The physical processor has 8 cores and 64 virtual processors (0-63)
The core has 8 virtual processors (0-7)
The core has 8 virtual processors (8-15)
The core has 8 virtual processors (16-23)
The core has 8 virtual processors (24-31)
The core has 8 virtual processors (32-39)
The core has 8 virtual processors (40-47)
The core has 8 virtual processors (48-55)
The core has 8 virtual processors (56-63)
SPARC-S7 (chipid 0, clock 4267 MHz)
The physical processor has 8 cores and 64 virtual processors (64-127)
The core has 8 virtual processors (64-71)
The core has 8 virtual processors (72-79)
The core has 8 virtual processors (80-87)
The core has 8 virtual processors (88-95)
The core has 8 virtual processors (96-103)
The core has 8 virtual processors (104-111)
The core has 8 virtual processors (112-119)
The core has 8 virtual processors (120-127)
SPARC-S7 (chipid 1, clock 4267 MHz)
neptune#
Out of the box we can bootstrap smake fine and then whammo to the face :
==> MAKING "man" ON SUBCOMPONENT "SRCROOT/sdd/Makefile.man"
==> MAKING "man" ON SUBCOMPONENT "SRCROOT/sdd/Makefile_de.man"
==> MAKING "all" ON SUBDIRECTORY "SRCROOT/sfind"
==> MAKING "man" ON SUBCOMPONENT "SRCROOT/sfind/Makefile.man"
==> MAKING "all" ON SUBDIRECTORY "SRCROOT/sformat"
==> COMPILING "OBJ/sparc-sunos5-gcc/diskfmt.o"
diskfmt.c: In function 'prconfig':
diskfmt.c:1058:9: error: implicit declaration of function
'getdomainname' [-Wimplicit-function-declaration]
1058 | getdomainname(dname, sizeof (dname)-1);
| ^~~~~~~~~~~~~
smake: *** Code 1 (Insufficient privileges) from command line for target
'OBJ/sparc-sunos5-gcc/diskfmt.o'.
smake: The following command caused the error:
echo " ==> COMPILING \"OBJ/sparc-sunos5-gcc/diskfmt.o\""; gcc -O
-DSCHILY_BUILD -IOBJ/sparc-sunos5-gcc -I../incs/sparc-sunos5-gcc
-I../include -I../libscg -I. -DFMT -DSCHILY_PRINT -DUSE_NLS
-DINS_BASE=\"/opt/schily\" -DINS_RBASE=\"/\"
-DTEXT_DOMAIN=\"SCHILY_utils\" -D__SVR4 -D__SVR4 -DSVR4 -c -o
OBJ/sparc-sunos5-gcc/diskfmt.o diskfmt.c
smake: Couldn't make 'all'.
smake: Leaving '/root/schily-2024-03-21/./psmake/smake'[1] from
directory '/root/schily-2024-03-21/sformat'
smake: Default commandline target: 'all'
smake: Doing exit(1)
smake: *** Code 1 (Insufficient privileges) from command line for target
'all'.
smake: The following command caused the error:
list=""; \
if [ -d TARGETS -a -f TARGETS/__slot ]; then
\
list=`echo TARGETS/[0123456789][0123456789]* |
\
sed -e 's;TARGETS/[0123456789][0123456789];;g'
| sed -e 's;!@!;/;g'`;\
fi;
\
for DIR in ${list} ;
\
do
\
(
\
echo " ==> MAKING \"all\" ON SUBDIRECTORY
\"SRCROOT/$DIR\"";\
if [ -d ./$DIR -a -r ./$DIR/Makefile ] ; then
\
cd ./$DIR &&
"/root/schily-2024-03-21/./psmake/smake" XARCH=sun4v-sunos5-gcc
DIRNAME=SRCROOT/$DIR all; \
else
\
echo "NOTICE: Partial source (SRCROOT/$DIR)
missing";\
fi
\
);
\
done
smake: Couldn't make 'all'.
neptune#
So that is just plain weird. Insufficient privileges? As root ?
--
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
More information about the schilytools
mailing list