Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Aug 2019 18:45:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 239743] Mk/bsd.port.mk: don't switch to ld.bfd on powerpc64 with clang
Message-ID:  <bug-239743-7788-w3Jjsbw93d@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239743-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239743-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239743

--- Comment #5 from Piotr Kubaj <pkubaj@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=3Dgnu99=20
-I/tmp/usr/ports/misc/e2fsprogs-libuuid/work/e2fsprogs-1.45.3/lib
-I/usr/local/include
  -fstack-protector-strong -fuse-ld=3Dbfd  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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239743-7788-w3Jjsbw93d>