Bug 232085 - riscv64sf fails to link static binaries due to multiply defined symbols
Summary: riscv64sf fails to link static binaries due to multiply defined symbols
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: riscv Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2018-10-08 19:54 UTC by Brooks Davis
Modified: 2020-01-08 17:35 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Brooks Davis freebsd_committer 2018-10-08 19:54:19 UTC
Linking usb.sbin/nologin fails with __gedf2, __eqdf2, __ltdf2, __nedf2, and __gtdf2 defined in libgcc.a and libc.a.
Comment 1 Brooks Davis freebsd_committer 2018-10-08 20:12:50 UTC
I've opened https://reviews.freebsd.org/D17476 to remove riscv64sf from universe until this is resolved.
Comment 2 commit-hook freebsd_committer 2018-10-09 22:22:41 UTC
A commit references this bug:

Author: brooks
Date: Tue Oct  9 22:22:15 UTC 2018
New revision: 339272
URL: https://svnweb.freebsd.org/changeset/base/339272

  Don't include the broken riscv64sf TARGET_ARCH in universe.

  riscv64sf has been broken due to duplicate symbols for months and
  degrades the quality of universe builds.  Remove it until this is
  resolved leaving a comment to it is not re-added.

  PR:		232085
  Reviewed by:	emaste
  Approved by:	re (gjb, kib)
  Sponsored by:	DARPA, AFRL

Comment 3 John Baldwin freebsd_committer freebsd_triage 2020-01-08 17:35:17 UTC
While this has still not been fixed, this is not likely to be fixed since clang + lld link a riscv64sf world ok.