| Summary: | lang/fpc build error on 12-CURRENT | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Alastair Hogge <agh> | ||||
| Component: | Individual Port(s) | Assignee: | Jose Alonso Cardenas Marquez <acm> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | dan.mcgregor, emaste, w.schwarzenfeld | ||||
| Priority: | --- | ||||||
| Version: | Latest | ||||||
| Hardware: | amd64 | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Alastair Hogge
2017-03-06 11:26:29 UTC
Maintainer informed via mail In the host's log: pid 18686 (ppcx64-3.0.2-freebs), uid 65534: exited on signal 12 (core dumped) pid 18690 (ppcx64-3.0.2-freebs), uid 65534: exited on signal 12 (core dumped) pid 18695 (ppcx64-3.0.2-freebs), uid 65534: exited on signal 12 (core dumped) pid 18699 (ppcx64-3.0.2-freebs), uid 65534: exited on signal 12 (core dumped) Created attachment 190268 [details]
Fix FPC build when LLD is the system linker.
This also affects 11-STABLE when using lld as the system linker, and FPC 3.0.4 that was just committed. I fixed the build issue, but it still looks for "ld" rather than "ld.bfd" or the result of getenv("LD").
The bug that prevented fpc from building with lld as the linker should now be fixed upstream, https://bugs.freepascal.org/view.php?id=32900 I tried to test by building upstream src but also encountered a segfault: gmake[3]: Leaving directory '/usr/home/emaste/src/freepascal/packages/fpmkunit' ./fpmake clean --localunitdir=.. --os=freebsd --cpu=x86_64 -o -Ur -o -Xs -o -O2 -o -n -o -Cg -o -dx86_64 -o -dRELEASE --compiler=/usr/home/emaste/src/freepascal/compiler/ppcx64 -bu gmake[2]: *** [Makefile:1723: clean] Segmentation fault (core dumped) gmake[2]: Leaving directory '/usr/home/emaste/src/freepascal/packages' We have version 3.0.4. Most of the patch changes are in the Makefile. Is there still any problem or could we close here? Hi, I have only recently started using FreeBSD again, unfortunately Ed's patch did not work as of earlier this month on -CURRENT. I did come across a solution to the problem in: https://wiki.freepascal.org/FreeBSD. The solution is add options COMPAT[4-10] in the kernel config. If I can find some time, I will make the changes to my kernel and attempt the build again, however, I am no longer interested in lang/fpc or editors/lazarus-qt5, sorry. I do appreciate the time and effort people have made in investigating this bug, thanks. I have committed new changes to lang/fpc and editors/lazarus. Please, see it at https://svnweb.freebsd.org/ports?view=revision&revision=509004 https://svnweb.freebsd.org/ports?view=revision&revision=509005 https://svnweb.freebsd.org/ports?view=revision&revision=509007 It doesn't work with lld and maybe will not work on short time. We must be use binutils from base or from ports and change LDPATH into fpc/Makefile to ld.bfd path. Also I regenerate fpc bootstrap. It should be work only with COMPAT_FREEBSD11 added to kernel config on 12.X (COMPAT from 4 to 10 should not be necessary) |