Page MenuHomeFreeBSD

math/trlan: fix build for base system WITH_LLVM_BINUTILS
ClosedPublic

Authored by emaste on Apr 21 2023, 8:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 2:40 PM
Unknown Object (File)
Fri, Apr 26, 12:19 AM
Unknown Object (File)
Sat, Apr 20, 6:03 PM
Unknown Object (File)
Sat, Apr 20, 6:03 PM
Unknown Object (File)
Sat, Apr 20, 6:03 PM
Unknown Object (File)
Sat, Apr 20, 5:49 PM
Unknown Object (File)
Dec 28 2023, 12:34 PM
Unknown Object (File)
Dec 23 2023, 5:52 PM
Subscribers
None

Details

Summary
Use strip --strip-unneeded instead of strip -x.  strip -x strips all
non-global symbols, but there are some non-global symbols referenced by
relocations.  ELF Tool Chain strip and GNU strip silently retain those
symbols, but LLVM strip is more strict and reports an error.

PR:             270958
Sponsored by:   The FreeBSD Foundation

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.
math/trlan/Makefile
51

or we could just drop -x and not replace it with --strip-unneeded, just install the unstripped .a. It's not clear what's the "right" thing to do wrt stripping .a archives - for example, see this Red Hat bug report https://bugzilla.redhat.com/show_bug.cgi?id=1395280 or our tcl bug report https://core.tcl-lang.org/tcl/tktview/718de2132f487cf29dfdd0be2b90fcc0107c2aa7

the strip -x was here from inception, 9f04bb57b17ee

jrm accepted this revision.EditedApr 24 2023, 6:53 PM

As we discussed privately, we don't usually strip static libraries, so either not stripping or --strip-uneeeded would be fine.

Also worth noting that the tarball isn't fetchable except from our cache and the site from WWW, http://crd.lbl.gov/~kewu/trlan.html, gives an HTTP 404. It might be best to mark this port as deprecated.

This revision is now accepted and ready to land.Apr 24 2023, 6:53 PM