[Bug 239743] Mk/bsd.port.mk: don't switch to ld.bfd on powerpc64 with clang

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 9 18:45:29 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239743

--- Comment #5 from Piotr Kubaj <pkubaj at FreeBSD.org> ---
(In reply to Piotr Kubaj from comment #4)
This is still not enough (my patch works). misc/e2fsprogs-libuuid fails to
configure:
   1187 configure:3325: cc -O2 -pipe  -fstack-protector-strong
-fno-strict-aliasing -std=gnu99 
-I/tmp/usr/ports/misc/e2fsprogs-libuuid/work/e2fsprogs-1.45.3/lib
-I/usr/local/include
  -fstack-protector-strong -fuse-ld=bfd  conftest.c  >&5
   1188 /usr/bin/ld.bfd: Dwarf Error: found dwarf version '4', this reader only
handles version 2 information.
   1189 /usr/lib/crt1.o: In function `_start':
   1190 crt1.c:(.text+0x2): undefined reference to `.TOC.'

The reason is that ld.bfd is used, which doesn't even know about elfv2. We need
to either use lld (which works for this port on CURRENT but not on
12.0-RELEASE/amd64) or ld.bfd from ports. Since -fuse-ld allows for passing the
whole patch to the linker, this is what we must do.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list