Created attachment 207865 [details] build log The coreutils port fails in the package stage with the following error on 12-STABLE amd64: gmake[1]: Leaving directory '/wrkdirs/usr/ports/sysutils/coreutils/work/coreutils-8.31' strip: open /wrkdirs/usr/ports/sysutils/coreutils/work/stage/usr/local/libexec/coreutils/libstdbuf.so failed: 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 port Perhaps it just needs an updated plist file.
Sorry, I'm not setup to duplicate/test this. Please send a patch that a committer can check for correctness. Thanks.
Is this still happending?
(In reply to Li-Wen Hsu from comment #2) No idea - I'm not setup to test this...
(In reply to Li-Wen Hsu from comment #2) Yes. The package fails to build with -fPIE and -pie on "FreeBSD 12.1-STABLE #0 r362003M: Thu Jun 11"
(In reply to dewayne from comment #4) Just to clarify. I can successfully build coreutils packages on both i386 (march=prescott) and amd64 (march=haswell). Using CFLAGS+=-fPIE and LDFLAGS+=-fpie (per Miyashita's comment), I can build and install corefiles (on both i386 and amd64), but when a package is attempted these prevent the package: pkg-static: Unable to access file /usr/ports/sysutils/coreutils/work/stageusr/local/bin/gstdbuf:No such file or directory pkg-static: Unable to access file /usr/ports/sysutils/coreutils/work/stageusr/local/libexec/coreutils/libstdbuf.so:No such file or directory pkg-static: Unable to access file /usr/ports/sysutils/coreutils/work/stageusr/local/man/man1/gstdbuf.1.gz:No such file or directory *** Error code 1