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)
Oct 4 2024, 10:44 AM
Unknown Object (File)
Oct 2 2024, 1:01 AM
Unknown Object (File)
Sep 30 2024, 5:41 AM
Unknown Object (File)
Sep 27 2024, 5:42 AM
Unknown Object (File)
Sep 23 2024, 11:15 AM
Unknown Object (File)
Sep 21 2024, 8:30 AM
Unknown Object (File)
Sep 2 2024, 4:54 AM
Unknown Object (File)
Aug 23 2024, 10:55 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