[Bug 278136] math/minisat: fails to build WITH_PIE=yes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Apr 2024 20:16:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278136 Bug ID: 278136 Summary: math/minisat: fails to build WITH_PIE=yes Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: vsevolod@FreeBSD.org Reporter: nimaje+fbz@bureaucracy.de Flags: maintainer-feedback?(vsevolod@FreeBSD.org) Assignee: vsevolod@FreeBSD.org When setting WITH_PIE=yes math/minisat fails to link build/release/bin/minisat: Linking Binary: build/release/bin/minisat ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/lib/crtbeginT.o >>> referenced by crtbegin.c:72 (/usr/src/lib/csu/common/crtbegin.c:72) >>> /usr/lib/crtbeginT.o:(__do_global_dtors_aux) and multiple variations of that error --MAKE_ENV-- prefix=/usr/local CFLAGS="-std=gnu++98" XDG_DATA_HOME=/wrkdirs/usr/ports/math/minisat/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/math/minisat/work XDG_CACHE_HOME=/wrkdirs/usr/ports/math/minisat/work/.cache HOME=/wrkdirs/usr/ports/math/minisat/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/math/minisat/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/math/minisat/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fPIE -fPIC -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -pie -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fPIE -fPIC -fstack-protector-strong -fno-strict-aliasing -fPIE -fPIC " BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- seems suspicious, as it contains CFLAGS twice, once as CFLAGS="-std=gnu++98" and once as CFLAGS="-O2 -pipe -fPIE -fPIC -fstack-protector-strong -fno-strict-aliasing " Building on 14.0-p10, I can share the full log if needed -- You are receiving this mail because: You are the assignee for the bug.