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
F84796245: D39754.diff
Tue, May 28, 6:20 PM
Unknown Object (File)
Wed, May 8, 2:40 PM
Unknown Object (File)
Apr 26 2024, 12:19 AM
Unknown Object (File)
Apr 20 2024, 6:03 PM
Unknown Object (File)
Apr 20 2024, 6:03 PM
Unknown Object (File)
Apr 20 2024, 6:03 PM
Unknown Object (File)
Apr 20 2024, 5:49 PM
Unknown Object (File)
Dec 28 2023, 12:34 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

Lint
Lint Skipped
Unit
Tests Skipped

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