Summary: | lang/fpc: invokes linker directly and does not honour LD env variable override | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Ed Maste <emaste> |
Component: | Individual Port(s) | Assignee: | Ed Maste <emaste> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | krion |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(acm) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
Bug Depends on: | |||
Bug Blocks: | 214864 |
Description
Ed Maste
2017-09-09 17:57:07 UTC
% readelf -h compiler/x86_64/units/x86_64-freebsd/i_linux.o | grep 'section headers' Start of section headers: 5997 (bytes into file) Size of section headers: 64 (bytes) Number of section headers: 18 Bug report submitted to fpc for the misaligned section header issue: https://bugs.freepascal.org/view.php?id=32900 Misaligned section header issue is now resolved upstream. Failure log from most recent exp-run: http://package18.nyi.freebsd.org/data/headamd64PR214864-default/2018-03-21_17h43m11s/logs/errors/fpc-3.0.4.log Via tobik@ in ports r465725, BINARY_ALIAS=ld=ld.bfd may be an effective workaround if LLD_UNSAFE does not work. BINARY_ALIAS=ld=ld.bfd seems to work. A commit references this bug: Author: emaste Date: Thu Mar 29 15:40:06 UTC 2018 New revision: 465903 URL: https://svnweb.freebsd.org/changeset/ports/465903 Log: lang/fpc: Set LLD_UNSAFE fpc produces and needs to link an object file with invalid section header alignment, which lld refuses to do. The build fails with: /usr/bin/ld: error: x86_64/units/x86_64-freebsd/i_linux.o: \ invalid alignment of section headers Setting LLD_UNSAFE makes the port link with ld.bfd instead. PR: 222172 Approved by: portmgr (LLD_UNSAFE blanket) Sponsored by: The FreeBSD Foundation Changes: head/lang/fpc/Makefile Workaround committed. |