Date: Sat, 09 Sep 2017 17:57:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 222172] lang/fpc: invokes linker directly and does not honour LD env variable override Message-ID: <bug-222172-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222172 Bug ID: 222172 Summary: lang/fpc: invokes linker directly and does not honour LD env variable override Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: acm@FreeBSD.org Reporter: emaste@freebsd.org CC: krion@FreeBSD.org Blocks: 214864 Assignee: acm@FreeBSD.org Flags: maintainer-feedback?(acm@FreeBSD.org) I've been investigating building the ports tree with LLVM's lld installed as /usr/bin/ld (via the exp-run in PR 214864). As of today lang/fpc fails when linked with lld, and of those failing it is responsible for the largest num= ber of skipped ports (110). When linking with lld (with LD=3Dld.bfd in the environment) the build failed with: /usr/bin/ld: error: x86_64/units/x86_64-freebsd/i_linux.o: invalid alignmen= t of section headers pp.pas(247,1) Error: Error while linking pp.pas(247,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted I think this may be coming from fpc-3.0.2/compiler/systems/t_bsd.pas from ExeCmd and DllCmd like so: 149 ExeCmd[1]:=3D'ld $TARGET $EMUL $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP -L. -o $EXE $CATRES'; 150 DllCmd[1]:=3D'ld $TARGET $EMUL $OPT -shared -L. -o $EXE $CATRES' I'll try to have an attempt at a patch. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214864 [Bug 214864] [exp-run] test build with lld as /usr/bin/ld --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222172-13>