Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 664492

Summary: dev-haskell/base-compat-0.9.1 linking broken
Product: Gentoo Linux Reporter: aleck <rickrick>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /var/tmp/portage/dev-haskell/base-compat-0.9.1/temp/environment
/var/tmp/portage/dev-haskell/base-compat-0.9.1/temp/build.log

Description aleck 2018-08-24 16:57:20 UTC
Created attachment 544760 [details]
/var/tmp/portage/dev-haskell/base-compat-0.9.1/temp/environment

Hello,

the creation of dev-haskell/base-compat results in an error on my machine.

Thank you for your support

cheers

Aleck


# emerge -av --oneshot dev-haskell/base-compat

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-haskell/base-compat-0.9.1:0/0.9.1::gentoo  USE="-doc -hscolour (-profile) {-test}" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-haskell/base-compat-0.9.1::gentoo
 * base-compat-0.9.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking base-compat-0.9.1.tar.gz to /var/tmp/portage/dev-haskell/base-compat-0.9.1/work
>>> Source unpacked in /var/tmp/portage/dev-haskell/base-compat-0.9.1/work
>>> Preparing source in /var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1 ...
 * Using cabal-1.24.2.0.
 * Prepending /usr/lib64/ghc-8.0.2 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-1.24.2.0 --make /var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1/Setup.lhs -j5 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1/Setup.lhs, /var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1/Setup.o )
Linking setup ...
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option ‘-nopie’; did you mean ‘-no-pie’?
`x86_64-pc-linux-gnu-gcc' failed in phase `C Compiler'. (Exit code: 1)
/usr/bin/ghc -package Cabal-1.24.2.0 --make /var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1/Setup.lhs -j5 +RTS -A256M -qb0 -RTS -threaded -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1/Setup.lhs, /var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1/Setup.o )
Linking setup ...
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option ‘-nopie’; did you mean ‘-no-pie’?
`x86_64-pc-linux-gnu-gcc' failed in phase `C Compiler'. (Exit code: 1)
 * ERROR: dev-haskell/base-compat-0.9.1::gentoo failed (configure phase):
 *   compiling /var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1/Setup.lhs failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 2708:  Called haskell-cabal_src_configure
 *   environment, line 1922:  Called cabal-bootstrap
 *   environment, line  398:  Called die
 * The specific snippet of code:
 *           } || make_setup "$@" || die "compiling ${setupmodule} failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-haskell/base-compat-0.9.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/base-compat-0.9.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/base-compat-0.9.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/base-compat-0.9.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1'
 * S: '/var/tmp/portage/dev-haskell/base-compat-0.9.1/work/base-compat-0.9.1'


# emerge -pqv '=dev-haskell/base-compat-0.9.1::gentoo'
[ebuild  N    ] dev-haskell/base-compat-0.9.1  USE="-doc -hscolour (-profile) {-test}"

# emerge --info '=dev-haskell/base-compat-0.9.1::gentoo'
Portage 2.3.40 (python 3.6.5-final-0, hardened/linux/amd64, gcc-7.3.0, glibc-2.26-r7, 4.18.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.18.1-gentoo-x86_64-Intel-R-_Core-TM-_i5-6200U_CPU_@_2.30GHz-with-gentoo-2.4.1
KiB Mem:    16192204 total,    688596 free
KiB Swap:   41943036 total,  41942512 free
Timestamp of repository gentoo: Fri, 24 Aug 2018 07:30:01 +0000
Head commit of repository gentoo: 3bc4d7cfdc115034a0b75a7591545c7722ce8ea5
sh dash 0.5.9.1-r3
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            5.4.0-r4::gentoo, 7.3.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-r3::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

crossdev
    location: /usr/crossdev-overlay
    masters: gentoo

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -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/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /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="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
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="rsync://mirror.eu.oneandone.net/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="acl acpi alsa amd64 berkdb bluetooth bzip2 cli consolekit crypt cups cxx dbus dri fontconfig gdbm glamor hardened iconv ipv6 java jce libtirpc modules multilib ncurses nls nptl openmp pam pcre pcsc-lite pie policykit readline seccomp ssl ssp tcpd truetype udev unicode urandom vaapi xattr xtpax zlib" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul 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" INPUT_DEVICES="libinput keyboard mouse synaptics" KERNEL="linux" 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 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 aleck 2018-08-24 16:59:34 UTC
Created attachment 544762 [details]
/var/tmp/portage/dev-haskell/base-compat-0.9.1/temp/build.log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2018-08-27 13:32:35 UTC
> x86_64-pc-linux-gnu-gcc: error: unrecognized command line option ‘-nopie’; did you mean ‘-no-pie’?

You need to rebuild dev-lang/ghc to detect gcc-7 and -no-pie support. That should unblock haskell packages linking.
Comment 3 aleck 2018-08-27 20:31:43 UTC
Thanks a lot, a 

emerge -av --oneshot dev-lang/ghc

that fixed the bug.

Interesting was, that a 

emerge @preserved-rebuild

had not triggered the rebuild of ghc.


cheers

Aleck
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2018-08-27 20:40:52 UTC
Unfortunately there is no easy way to trigger a rebuild after gcc upgrade.

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