On Tue, 8 Jul 2025 01:00:17 +0300 Nerijus Baliunas
<[email protected]> wrote:
> I am trying to compile gnustep-base 1.31.1 on Fedora 42 with clang-20.1.7,
> but it fails:
It worked after I updated gnustep-make to 2.9.3, but now it fails when linking:
clang -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now
--config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -Wl,--build-id=sha1
-pthread -fexceptions -rdynamic -fobjc-runtime=gnustep-2.2 -fblocks -o
obj/cvtenc \
./obj/cvtenc.obj/cvtenc.m.o \
-L../Source/./obj -L/home/nerijus/GNUstep/Library/Libraries
-L/usr/local/lib64 -L/usr/lib64 -Wl,-z,relro -Wl,--as-needed
-Wl,-z,pack-relative-relocs -Wl,-z,now
--config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin
-ffat-lto-objects -Wl,--build-id=sha1 -L/usr/local/lib64 -L/usr/lib64
-L/usr/lib64 -L/usr/lib64/ng-gnu-gnu -L/usr/lib64 -lgnustep-base -lpthread
-lobjc -lm
mold: error: undefined symbol: objc_alloc
>>> referenced by cvtenc.m
>>> obj/cvtenc.obj/cvtenc.m.o:(main)
>>> referenced by cvtenc.m
>>> obj/cvtenc.obj/cvtenc.m.o:(main)
>>> referenced by cvtenc.m
>>> obj/cvtenc.obj/cvtenc.m.o:(main)
>>> referenced 1 more times
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Regards,
Nerijus