Bug 249046 - lang/libobjc2: Fails to link on 11.3 amd64: libobjc.so.4.6: undefined reference to `ceilf'
Summary: lang/libobjc2: Fails to link on 11.3 amd64: libobjc.so.4.6: undefined referen...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-01 03:32 UTC by Brad Ackerman
Modified: 2020-09-01 16:52 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback? (zeising)
koobs: maintainer-feedback? (fernape)
fernape: merge-quarterly+


Attachments
libobjc2 build log from beefy9 (161.92 KB, text/plain)
2020-09-01 03:32 UTC, Brad Ackerman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Ackerman 2020-09-01 03:32:39 UTC
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.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-09-01 04:47:02 UTC
@Reporter Is this a regression on previous versions after recent commits/updates?

Recent committers may be able to assist (cc'd)
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2020-09-01 16:03:36 UTC
Build testing in a fresh 11.3 amd64 jail. I'll try to reproduce this.
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2020-09-01 16:38:59 UTC
For some reason we need -lm in 11.3...
Comment 4 commit-hook freebsd_committer freebsd_triage 2020-09-01 16:42:15 UTC
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
Comment 5 commit-hook freebsd_committer freebsd_triage 2020-09-01 16:52:19 UTC
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
Comment 6 Fernando Apesteguía freebsd_committer freebsd_triage 2020-09-01 16:52:49 UTC
Fixed and MFH'ed.

Thanks for reporting this!