-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
G'day, ksh93 maintaining team. Long time no see.
Summarizing my problem, I was trying to build ksh93 using LLVM 17.0.5, with llvm-ar and llvm-ranlib, and linking to the musl C library version 1.2.5, and then got this error:
conf: probe for SOFTPOWER <limits.h> value
conf: probe for UCHAR_MAX <limits.h> value
conf: probe for UCHAR_MIN <limits.h> value
conf: probe for UID_MAX <limits.h> value
conf: probe for UINT_MAX <limits.h> value
conf: probe for ULLONG_MAX <limits.h> value
conf: probe for ULONG_MAX <limits.h> value
conf: probe for USHRT_MAX <limits.h> value
conf: probe for VERSION_88 <limits.h> value
conf: probe for VERSION_88 <limits.h> value
conf: probe for VERSION_90 <limits.h> value
conf: probe for VERSION_90 <limits.h> value
conf: probe for VERSION_93 <limits.h> value
conf: probe for VERSION_93 <limits.h> value
conf: probe for WCHAR_MAX <limits.h> value
conf: probe for WCHAR_MIN <limits.h> value
conf: probe for WINT_MAX <limits.h> value
conf: probe for WINT_MIN <limits.h> value
conf: probe for WORD_BIT <limits.h> value
conf: generate conftab.h string table header
mamake [lib/libast]: *** exit code 139 making conflim.h
mamake: *** exit code 1 making lib/libast
mamake: *** exit code 1 making all
package: make failed at Sun Oct 26 19:48:10 -03 2025 in /dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64For a little bit more context, musl, the LLVM and other tools were built for a cross-compiling toolchain, more specifically a LFS-esque one.
I tried to emulate Copacabana's build system without re-running it and that's what mamake prints before compiling it and failing:
% env CC=clang CXX=clang++ AR=llvm-ar RANLIB=llvm-ranlib PATH=/llvmtools/bin:$PATH ./bin/package make
package: initialize the /dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64 view
package: update /dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64/bin/mamprobe
package: update /dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64/lib/probe/C/make/probe
package: update /dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64/bin/mamake
package: make output captured in /dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64/lib/package/gen/make.out
package: make start at Mon Oct 27 01:13:25 -03 2025 in /dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64
CC=cc
SHELL=/bin/ksh
HOSTTYPE=linux.i386-64
PACKAGEROOT=/dsk/0v/usr/tmp/obj/ksh-1.0.10
INSTALLROOT=/dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64
PATH=/dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64/bin/ok:/dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64/dyn/bin:/dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64/bin:/dsk/0v/usr/tmp/obj/ksh-1.0.10/bin:/opt/ast/bin:/usr/bin:/dsk/0v/llvmtools/bin:/usr/5bin:/usr/ucb:/usr/home/luiz/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/games:/usr/local/games:/usr/home/luiz/.local/share/korny/bin
DEFPATH=/bin:/usr/bin
mmake: executing: mamake install
# src/Mamfile: 9-11: make all
+ mamake -r */* install
# ... making src/cmd/INIT ...
+ mamake -C cmd/INIT install
probing C language processor /dsk/0v/usr/tmp/obj/ksh-1.0.10/arch/linux.i386-64/bin/cc for mam informationMetadata
Metadata
Assignees
Labels
No labels