Date: Fri, 27 Sep 2019 01:50:12 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 240851] lang/python fails to build with PIE Message-ID: <bug-240851-21822-7NPrPLYQVm@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-240851-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-240851-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-python mailing list <python@FreeBSD.org> for maintainer-feedback: Bug 240851: lang/python fails to build with PIE https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240851 --- Description --- The python 2/3 ports fail in the package/stage make targets with the follow= ing 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/te= st_j son/__pycache__/test_unicode.cpython-36.pyc:No such file or directory *** Error code 1 To reproduce: 1) enable WITH_PIE=3Dyes 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+=3D -fPIE CXXFLAGS+=3D -fPIE LDFLAGS+=3D -pie 4) build the ports They may just need a simple tweak.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240851-21822-7NPrPLYQVm>