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)
Tue, Oct 14, 10:03 PM
Unknown Object (File)
Wed, Oct 8, 5:45 PM
Unknown Object (File)
Wed, Oct 8, 8:49 AM
Unknown Object (File)
Fri, Oct 3, 5:22 AM
Unknown Object (File)
Thu, Oct 2, 6:05 AM
Unknown Object (File)
Fri, Sep 26, 6:09 PM
Unknown Object (File)
Sep 22 2025, 1:55 PM
Unknown Object (File)
Sep 20 2025, 12:21 AM
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