Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740236 - dev-haskell/hashable-1.2.7.0 : Data/.../Class.hs: error:
Summary: dev-haskell/hashable-1.2.7.0 : Data/.../Class.hs: error:
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-03 16:36 UTC by Toralf Förster
Modified: 2020-09-05 08:11 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,14.79 KB, text/plain)
2020-09-03 16:36 UTC, Toralf Förster
Details
dev-haskell:hashable-1.2.7.0:20200903-053900.log (dev-haskell:hashable-1.2.7.0:20200903-053900.log,32.62 KB, text/plain)
2020-09-03 16:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,25.82 KB, text/plain)
2020-09-03 16:36 UTC, Toralf Förster
Details
environment (environment,101.48 KB, text/plain)
2020-09-03 16:36 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,21.77 KB, application/x-bzip)
2020-09-03 16:36 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.06 KB, application/x-bzip)
2020-09-03 16:36 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-09-03 16:36:38 UTC
[1 of 4] Compiling Data.Hashable.Class ( Data/Hashable/Class.hs, dist/build/Data/Hashable/Class.p_o )

Data/Hashable/Class.hs:33:8: error:
    Could not find module ‘Prelude’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.13.0.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-abi32+64-20200902-130116

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.8 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Sep  3 05:05:36 AM UTC 2020

emerge -qpvO dev-haskell/hashable
[ebuild  N    ] dev-haskell/hashable-1.2.7.0  USE="gmp profile -doc -examples -hscolour" CPU_FLAGS_X86="sse2 sse4_1"
Comment 1 Toralf Förster gentoo-dev 2020-09-03 16:36:39 UTC
Created attachment 658186 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-09-03 16:36:40 UTC
Created attachment 658188 [details]
dev-haskell:hashable-1.2.7.0:20200903-053900.log
Comment 3 Toralf Förster gentoo-dev 2020-09-03 16:36:42 UTC
Created attachment 658190 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-09-03 16:36:44 UTC
Created attachment 658192 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-09-03 16:36:45 UTC
Created attachment 658194 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-09-03 16:36:47 UTC
Created attachment 658196 [details]
temp.tbz2
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2020-09-04 12:30:44 UTC
"""
[1 of 4] Compiling Data.Hashable.Class ( Data/Hashable/Class.hs, dist/build/Data/Hashable/Class.p_o )

[;1mData/Hashable/Class.hs:33:8: [;1m[31merror:[0m[0m[;1m[0m[0m[;1m
    Could not find module ‘Prelude’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.13.0.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.[0m[0m
"""

Do you have ghc[profile] or ghc[-profile]?

We probably need to update all ebuilds to pull in ghc[profile?].
Comment 8 Toralf Förster gentoo-dev 2020-09-04 19:37:26 UTC
> Do you have ghc[profile] or ghc[-profile]?

Accordingly to the (attached etc.portage.tgbz2) in 23thrown_global_use_flags_from_* "profile" is set ;-)
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2020-09-05 07:34:14 UTC
(In reply to Toralf Förster from comment #8)
> > Do you have ghc[profile] or ghc[-profile]?
> 
> Accordingly to the (attached etc.portage.tgbz2) in
> 23thrown_global_use_flags_from_* "profile" is set ;-)

Should be a ghc[profile] then (and should work).

Can you post 'emerge --info dev-lang/ghc'?

I wonder if it's a USE=binary or something else.
Comment 10 Toralf Förster gentoo-dev 2020-09-05 07:42:31 UTC
17_1-abi32_64-20200902-130116 /var/tmp/tb # emerge --info dev-lang/ghc --verbose=n
Portage 3.0.5 (python 3.7.9-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r1, 5.8.6 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.8.6-x86_64-Intel-R-_Xeon-R-_CPU_E5-1650_v3_@_3.50GHz-with-gentoo-2.7
KiB Mem:   131816336 total, 116503184 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sat, 05 Sep 2020 07:05:31 +0000
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo
dev-util/cmake:           3.18.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 10
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

tinderbox
    location: /mnt/tb/data/portage
    masters: gentoo
    priority: 90

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 99

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fno-diagnostics-color  -falign-functions=32:25:16 -Wformat -Werror=format-security"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -fno-diagnostics-color  -falign-functions=32:25:16 -Wformat -Werror=format-security"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --verbose-conflicts --nospinner --tree --quiet-build --autounmask-keep-masks=y --complete-graph=y --verbose --color=n --autounmask=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 -march=native -fno-diagnostics-color"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -fno-diagnostics-color"
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://mirror.netcologne.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
MAKEOPTS="-j1"
PKGDIR="/var/cache/binpkgs"
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 acoustid amd64 appindicator berkdb binary bzip2 capsimage cli compiler-rt constcw crypt dracut dri extra-print-profiles fortran ft gdbm gedit gtalk hc08 iconv ipv6 kvv ldap libglvnd libtirpc messages metacontacts multilib ncurses nls nntp nptl odbcmanual ofd-locking openmp openntpd packed pam pcre pgf profile profiling-data quickcommit raptor readline readme recommended reload-error-restart run-exes sax sdl seccomp servicediscovery split-usr ssl ssp strongswan_plugins_ctr tcpd telemetry transmit unicode visio vkontakte vtv xattr xklavier zip zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="an doi" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="dummy" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-lang/ghc-8.8.4::gentoo was built with the following:
USE="binary gmp profile (-big-endian) -doc -elfutils -ghcbootstrap -ghcmakebinary -numa -test" ABI_X86="(64)"
CFLAGS="-O2 -pipe -march=native -Wformat -Werror=format-security -march=native -march=native -no-pie"
CXXFLAGS="-O2 -pipe -march=native -Wformat -Werror=format-security"
FEATURES="unknown-features-warn xattr strict cgroup userfetch usersync unmerge-logs pid-sandbox userpriv binpkg-docompress fixlafiles usersandbox merge-sync ebuild-locks config-protect-if-modified protect-owned binpkg-logs multilib-strict ipc-sandbox assume-digests preserve-libs qa-unresolved-soname-deps sfperms distlocks parallel-fetch unmerge-orphans binpkg-dostrip sandbox network-sandbox"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -no-pie"
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2020-09-05 07:59:58 UTC
(In reply to Toralf Förster from comment #10)
> dev-lang/ghc-8.8.4::gentoo was built with the following:
> USE="binary ...

Ah, nice! That explains it. I'll need to fix the REQUIRED_USE constraint.
Comment 12 Larry the Git Cow gentoo-dev 2020-09-05 08:11:00 UTC
The bug has been closed via the following commit(s):

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

commit e790d862c726d8910aa37f9ed63a02a05f57cfea
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-09-05 08:08:45 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-09-05 08:10:56 +0000

    dev-lang/ghc: make USE=binary and USE=profile mutually exclusive
    
    We prebuild binaries without profiling support in Gentoo.
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/740236
    Package-Manager: Portage-3.0.5, Repoman-3.0.1
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-lang/ghc/ghc-8.10.1.ebuild | 6 +++++-
 dev-lang/ghc/ghc-8.8.3.ebuild  | 6 +++++-
 dev-lang/ghc/ghc-8.8.4.ebuild  | 6 +++++-
 3 files changed, 15 insertions(+), 3 deletions(-)