Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635386 - dev-lisp/clisp-2.49-r9: configure: gcc: error: unrecognized command line option '-no-pie'
Summary: dev-lisp/clisp-2.49-r9: configure: gcc: error: unrecognized command line opti...
Status: RESOLVED FIXED
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-10-25 04:34 UTC by Lee Starnes
Modified: 2017-10-27 15:36 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,4.15 KB, text/x-log)
2017-10-25 04:36 UTC, Lee Starnes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lee Starnes 2017-10-25 04:34:53 UTC
While building dev-lisp/clisp-2.49-r9, configure fails with the above error. I suspect that it might be due to the fix for bug 618170 not working on systems with hardened profiles.

Reproducible: Always




Portage 2.3.8 (python 3.5.4-final-0, hardened/linux/amd64, gcc-5.4.0-vanilla, glibc-2.23-r4, 4.13.9-gentoo x86_64)
=================================================================
System uname: Linux-4.13.9-gentoo-x86_64-Intel-R-_Core-TM-_i5-6600K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    24711532 total,  15860552 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 25 Oct 2017 02:44:38 +0000
Head commit of repository gentoo: fcab78b3cc21150e80c5ae6304f6a8a43205750e

sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.4::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32.1::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000
    sync-git-clone-extra-opts: --branch master

local
    location: /usr/local/portage
    masters: gentoo

rust
    location: /var/lib/layman/rust
    sync-type: laymansync
    sync-uri: git://github.com/gentoo/gentoo-rust.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA -AGPL-3 -AGPL3+"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl alsa amd64 amr amrenc apng bash-completion berkdb bluetooth bzip2 cjk cli cracklib crypt cryptsetup curl cxx dbus dri dri3 dvd dvdr egl exif fbcon ffmpeg flac fontconfig gallium gdbm gif glamor gnome-keyring gpm gtk hardened http2 iconv icu idn ipv6 irc jpeg jpeg2k justify ladspa libass libkms lzma modules mp3 multilib ncurses nls nptl ogg opengl openmp openssl opus pam pcre pcre16 pie png policykit pulseaudio python qt3support qt5 readline schroedinger sdl seccomp session speex sqlite ssh ssl ssp systemd tcpd theoa threads tiff truetype unicode urandom vdpau vorbis vpx wayland webp wifi x264 xa xattr xcb xkb xml xmpp xnest xorg xtpax zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc multiboot qemu xen" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965 amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lee Starnes 2017-10-25 04:36:22 UTC
Created attachment 500008 [details]
build.log
Comment 2 jannis 2017-10-25 06:28:57 UTC
I see the same behaviour in my (non-hardened) Gentoo running as a VirtualBox guest
Comment 3 Pär Karlsson 2017-10-25 06:32:10 UTC
From the config.log:

 configure:3901: $? = 1
 configure:3921: checking whether the C compiler works
 configure:3943: gcc -O3 -march=native -pipe -no-pie -Wa,--noexecstack  -
 I/usr/include/postgresql-9.6 -I/usr/include/db4.8 -Wl,-O1 -Wl,--as-needed 
 conftest.c  >&5
 gcc: error: unrecognized command line option '-no-pie'
 configure:3947: $? = 1
 configure:3985: result: no

The "-no-pie" option should probably be "-fno-pie"?
Comment 4 Pär Karlsson 2017-10-25 06:34:13 UTC
(In reply to Pär Karlsson from comment #3)
> From the config.log:
> 
>  configure:3901: $? = 1
>  configure:3921: checking whether the C compiler works
>  configure:3943: gcc -O3 -march=native -pipe -no-pie -Wa,--noexecstack  -
>  I/usr/include/postgresql-9.6 -I/usr/include/db4.8 -Wl,-O1 -Wl,--as-needed 
>  conftest.c  >&5
>  gcc: error: unrecognized command line option '-no-pie'
>  configure:3947: $? = 1
>  configure:3985: result: no
> 
> The "-no-pie" option should probably be "-fno-pie"?

Which in turns comes from:

 src_configure() {
     # Bug 618170. If anyone has a better idea...
     append-flags -no-pie

In the clisp-2.49-r9.ebuild
Comment 5 urcindalo 2017-10-25 10:46:13 UTC
Same here on a stable, non-hardened amd64:

===
>>> Emerging (1 of 1) dev-lisp/clisp-2.49-r9::gentoo
 * clisp-2.49.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking clisp-2.49.tar.bz2 to /var/tmp/portage/dev-lisp/clisp-2.49-r9/work
>>> Source unpacked in /var/tmp/portage/dev-lisp/clisp-2.49-r9/work
>>> Preparing source in /var/tmp/portage/dev-lisp/clisp-2.49-r9/work/clisp-2.49 ...
 * Applying clisp-2.49-bits_ipctypes_to_sys_ipc.patch ...                                                                                          [ ok ]
 * Applying clisp-2.49-get_hostname.patch ...                                                                                                      [ ok ]
 * Applying clisp-2.49-tinfo.patch ...                                                                                                             [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lisp/clisp-2.49-r9/work/clisp-2.49 ...
 * enabling module wildcard
 * enabling module rawsock
 * enabling module bindings/glibc
 * enabling module clx/new-clx
 * enabling module berkeley-db
 * enabling module dbus
 * enabling module fastcgi
 * enabling module gdbm
 * enabling module gtk2
 * enabling module pcre
 * enabling module zlib
 * ./configure --prefix=/usr --libdir=/usr/lib64                --with-readline --with-unicode          --with-ffcall --without-dynamic-modules --with-threads=POSIX_THREADS --with-module=wildcard --with-module=rawsock --with-module=bindings/glibc --with-module=clx/new-clx --with-module=berkeley-db --with-module=dbus --with-module=fastcgi --with-module=gdbm --with-module=gtk2 --with-module=pcre --with-module=zlib --hyperspec=http://www.lispworks.com/reference/HyperSpec/ builddir
executing /var/tmp/portage/dev-lisp/clisp-2.49-r9/work/clisp-2.49/builddir/configure --prefix=/usr --libdir=/usr/lib64 --with-readline --with-unicode --with-ffcall --without-dynamic-modules --with-threads=POSIX_THREADS --with-module=wildcard --with-module=rawsock --with-module=bindings/glibc --with-module=clx/new-clx --with-module=berkeley-db --with-module=dbus --with-module=fastcgi --with-module=gdbm --with-module=gtk2 --with-module=pcre --with-module=zlib --hyperspec=http://www.lispworks.com/reference/HyperSpec/ builddir
configure: creating cache config.cache
checking for a BSD-compatible install... /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: ** check for host type
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/dev-lisp/clisp-2.49-r9/work/clisp-2.49/builddir':
configure: error: C compiler cannot create executables
Comment 6 Larry the Git Cow gentoo-dev 2017-10-25 13:53:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3372a5ecbeaa719f733cccf67caf8f96b61f3d2c

commit 3372a5ecbeaa719f733cccf67caf8f96b61f3d2c
Author:     Andreas K. Huettel <dilfridge@gentoo.org>
AuthorDate: 2017-10-25 13:53:06 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: 2017-10-25 13:53:06 +0000

    dev-lisp/clisp: Use correct gcc option, bug 635386
    
    Shame on me for only testing with gcc-6. Let's see
    what explodes next.
    
    Closes: https://bugs.gentoo.org/635386
    Package-Manager: Portage-2.3.12, Repoman-2.3.3

 dev-lisp/clisp/clisp-2.49-r101.ebuild | 2 +-
 dev-lisp/clisp/clisp-2.49-r9.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 7 Martin Väth 2017-10-27 15:36:26 UTC
gcc-7 requires -no-pie; -fno-pie does not work