Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608678 - dev-lisp/sbcl-1.3.14 on hardened system: x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-no-pie'
Summary: dev-lisp/sbcl-1.3.14 on hardened system: x86_64-pc-linux-gnu-gcc: error: unre...
Status: RESOLVED DUPLICATE of bug 607302
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-09 02:52 UTC by Arseny Solokha
Modified: 2017-02-09 14:54 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge-info,4.38 KB, text/plain)
2017-02-09 02:54 UTC, Arseny Solokha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arseny Solokha 2017-02-09 02:52:05 UTC
+++ This bug was initially created as a clone of Bug #607302 +++

dev-lisp/sbcl-1.3.14 suffers from the same issue already reported in #599902 and #607302. The following patch seems to fix it (even though it's not necessary the right thing to do).

--- sbcl-1.3.14/src/runtime/GNUmakefile.jj      2017-02-09 09:35:21.250150777 +0700
+++ sbcl-1.3.14/src/runtime/GNUmakefile 2017-02-09 09:37:10.776309180 +0700
@@ -39,18 +39,6 @@
 # OS_SRC, OS_LIBS, OS_CLEAN_FILES
 include Config
 
-# Disable PIE when possible
-ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e no-pie),)
-CFLAGS += -fno-pie
-LINKFLAGS += -no-pie
-LDFLAGS += -no-pie
-endif
-ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e -nopie),)
-CFLAGS += -fno-pie
-LINKFLAGS += -nopie
-LDFLAGS += -nopie
-endif
-
 COMMON_SRC = alloc.c backtrace.c breakpoint.c coreparse.c dynbind.c     \
        funcall.c gc-common.c globals.c interr.c interrupt.c            \
        largefile.c monitor.c os-common.c parse.c print.c purify.c      \
Comment 1 Arseny Solokha 2017-02-09 02:52:45 UTC
--- sbcl-1.3.14.ebuild.jj	2017-02-09 09:45:14.496203434 +0700
+++ sbcl-1.3.14.ebuild	2017-02-09 09:52:29.703433261 +0700
@@ -101,6 +101,8 @@
 	eapply "${FILESDIR}"/bsd-sockets-test-1.3.12.patch
 	# bugs #560276, #561018
 	eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
+	# bug #599902, #607302, #608678
+	eapply "${FILESDIR}"/${PN}-1.3.14-config.patch
 
 	eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
 	eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch
Comment 2 Arseny Solokha 2017-02-09 02:54:00 UTC
Created attachment 462912 [details]
emerge --info output
Comment 3 Chema Alonso Josa (RETIRED) gentoo-dev 2017-02-09 14:31:10 UTC
My bad here, I didn't check the -no-pie flag in the GNUMakefile. I will apply the patch asap

Thanks for the report
Comment 4 Chema Alonso Josa (RETIRED) gentoo-dev 2017-02-09 14:54:20 UTC

*** This bug has been marked as a duplicate of bug 607302 ***