Created attachment 217684 [details] libobjc2 build log from beefy9 lang/libobjc2 attempts to link without -lm and fails. : && /usr/bin/cc -O2 -pipe -fno-strict-aliasing -Xclang -fexceptions -Xclang -fobjc-exceptions -O3 -O2 -pipe -fno-strict-aliasing Test/CMakeFiles/test_runtime_legacy.dir/Test.m.o Test/CMakeFiles/ObjCXXEHInterop_arc_legacy_optimised.dir/ObjCXXEHInterop_arc.mm.o Test/CMakeFiles/ObjCXXEHInterop_arc_legacy_optimised.dir/ObjCXXEHInterop_arc.m.o -o Test/ObjCXXEHInterop_arc_legacy_optimised -Wl,-rpath,/wrkdirs/usr/ports/lang/libobjc2/work/.build libobjc.so.4.6 -lcxxrt && : libobjc.so.4.6: undefined reference to `ceilf' cc: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. *** Error code 1 Full log at http://beefy9.nyi.freebsd.org/data/113amd64-default/546860/logs/errors/libobjc2-2.1_2.log and also attached.
@Reporter Is this a regression on previous versions after recent commits/updates? Recent committers may be able to assist (cc'd)
Build testing in a fresh 11.3 amd64 jail. I'll try to reproduce this.
For some reason we need -lm in 11.3...
A commit references this bug: Author: fernape Date: Tue Sep 1 16:41:37 UTC 2020 New revision: 547282 URL: https://svnweb.freebsd.org/changeset/ports/547282 Log: lang/libobjc2: Fix build in 11.3 We need -lm in order to use the ceilf function. PR: 249046 Reported by: brad@facefault.org MFH: 2020Q3 (blanket, build fix) Changes: head/lang/libobjc2/Makefile
A commit references this bug: Author: fernape Date: Tue Sep 1 16:51:58 UTC 2020 New revision: 547283 URL: https://svnweb.freebsd.org/changeset/ports/547283 Log: MFH: r547282 lang/libobjc2: Fix build in 11.3 We need -lm in order to use the ceilf function. PR: 249046 Reported by: brad@facefault.org Approved by: ports-secteam (blanket, runtime fix) Changes: _U branches/2020Q3/ branches/2020Q3/lang/libobjc2/Makefile
Fixed and MFH'ed. Thanks for reporting this!