[Bug 240851] lang/python fails to build with PIE
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Sep 27 01:50:14 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240851
Bug ID: 240851
Summary: lang/python fails to build with PIE
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: python at FreeBSD.org
Reporter: imagin8r at protonmail.com
Flags: maintainer-feedback?(python at FreeBSD.org)
CC:
Assignee: python at FreeBSD.org
Created attachment 207866
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=207866&action=edit
27 build log
The python 2/3 ports fail in the package/stage make targets with the following
errors on 12-STABLE amd64:
(for 27)
Compiling
/wrkdirs/usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/zipfile.py
...
*** Error code 1
(for 36)
pkg-static: Unable to access file
/wrkdirs/usr/ports/lang/python36/work/stage/usr/local/lib/python3.6/test/test_json/__pycache__/test_unicode.cpython-36.pyc:No
such file or directory
*** Error code 1
To reproduce:
1) enable WITH_PIE=yes in src.conf and rebuild (if it's not default)
2) set kern.elf64.aslr.enable and kern.elf64.aslr.pie_enable sysctls to 1
3) add the following to make.conf:
CFLAGS+= -fPIE
CXXFLAGS+= -fPIE
LDFLAGS+= -pie
4) build the ports
They may just need a simple tweak.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
More information about the freebsd-python
mailing list