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

Bug 735172

Summary: dev-haskell/transformers-compat-0.6.5 USE=profile - src/Control/Monad/Trans/Instances.hs:38:8: error: Could not find module ‘Prelude’ // Perhaps you haven't installed the profiling libraries for package ‘base-4.13.0.0’?
Product: Gentoo Linux Reporter: Bernd Buschinski <b.buschinski>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description Bernd Buschinski 2020-08-02 08:41:58 UTC
After updating GHC transformers-compat fails to build

Building library for transformers-compat-0.6.5..
[1 of 4] Compiling Control.Monad.Trans.Instances ( src/Control/Monad/Trans/Instances.hs, dist/build/Control/Monad/Trans/Instances.o )
[2 of 4] Compiling Data.Functor.Classes.Generic.Internal ( generics/Data/Functor/Classes/Generic/Internal.hs, dist/build/Data/Functor/Classes/Generic/Internal.o )
[3 of 4] Compiling Data.Functor.Classes.Generic ( generics/Data/Functor/Classes/Generic.hs, dist/build/Data/Functor/Classes/Generic.o )
[4 of 4] Compiling Paths_transformers_compat ( dist/build/autogen/Paths_transformers_compat.hs, dist/build/Paths_transformers_compat.o )
[1 of 4] Compiling Control.Monad.Trans.Instances ( src/Control/Monad/Trans/Instances.hs, dist/build/Control/Monad/Trans/Instances.p_o )

src/Control/Monad/Trans/Instances.hs:38: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.
   |
38 | module Control.Monad.Trans.Instances () where
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Monad/Trans/Instances.hs:48:1: error:
    Could not find module ‘Control.Applicative.Backwards’
    Perhaps you haven't installed the profiling libraries for package ‘transformers-0.5.6.2’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
48 | import           Control.Applicative.Backwards (Backwards(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...


Reproducible: Always
Comment 1 Bernd Buschinski 2020-08-02 08:42:23 UTC
Created attachment 652278 [details]
emerge --info
Comment 2 Bernd Buschinski 2020-08-02 08:43:02 UTC
Created attachment 652280 [details]
build.log
Comment 3 Bernd Buschinski 2020-08-02 08:45:24 UTC
Maybe it is a missing dependency to dev-haskell/base-prelude ?
Comment 4 Sergei Trofimovich gentoo-dev 2020-09-05 08:18:48 UTC
(In reply to Bernd Buschinski from comment #3)
> Maybe it is a missing dependency to dev-haskell/base-prelude ?

Prelute should come from ghc's base. The culprit here is missing profiling libs of ghc itself. Can you post 'emerge --info ghc'? It's probably missing USE=profile on ghc (and missing dependency for libraries).
Comment 5 Bernd Buschinski 2020-09-06 14:45:42 UTC
Sorry, I no longer have this setup, after Haskell go too annoying, I removed it completely.


But I vaguely remember setting:
"dev-haskell/* profile" in my packages.use

but not for dev-lang/ghc. So you might be right.
Comment 6 Frank Uhlig 2021-03-02 20:23:39 UTC
I hit the same issue with pandoc-2.11.4. Emerges fine until it comes to dev-haskell/text-icu, then fails with (excerpt):

[ 1 of 21] Compiling Data.Text.ICU.Break.Types ( Data/Text/ICU/Break/Types.hs, dist/build/Data/Text/ICU/Break/Types.p_o )

Data/Text/ICU/Break/Types.hs:11:8: error:
    Could not find module ‘Prelude’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.14.1.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
11 | module Data.Text.ICU.Break.Types
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^


After manually adding the profile use flag to dev-lang/ghc, it emerges fine after rebuilding ghc.

emerge --info before the use flag addition:

Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1/desktop, gcc-10.2.0, glibc-2.32-r7, 5.11.2-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.11.2-gentoo-x86_64-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.2.5
KiB Mem:    32859584 total,   9877528 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 02 Mar 2021 00:45:01 +0000
Timestamp of repository eclipse: Wed, 24 Feb 2021 15:56:01 +0000
Head commit of repository eclipse: 01b1c34063eeac0c3d70264670f7cfd14bd87d71

Timestamp of repository gamerlay: Wed, 24 Feb 2021 21:52:16 +0000
Head commit of repository gamerlay: 46d86f4fb7103836e58bf621e4459e1a9303be01

Timestamp of repository haskell: Sun, 28 Feb 2021 20:37:02 +0000
Head commit of repository haskell: 8f7d3a2612e0b780450c3ace89a63cc074eaece0

Timestamp of repository steam-overlay: Wed, 24 Feb 2021 15:55:35 +0000
Head commit of repository steam-overlay: 01ea47ce41b53b47958e557262eeb7faf85575f2

Head commit of repository flatpak-overlay: 4bf9a7815ca9361f86459c8a8e9bc403e3721704

Head commit of repository genfu: 08fd8901a512c8633df04ec41b2cd48cb34d2b5a

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 4.1 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r6::gentoo, 3.7.9-r2::gentoo, 3.8.7-r1::gentoo, 3.9.1-r1::gentoo
dev-util/ccache:          4.1::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            5.5.0::gentoo, 8.3.0-r3::gentoo, 10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-webrsync-verify-signature: true
    sync-webrsync-delta: true  # false to use plain webrsync

eclipse
    location: /var/db/repos/eclipse
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/eclipse.git
    masters: gentoo

gamerlay
    location: /var/db/repos/gamerlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gamerlay.git
    masters: gentoo

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

flatpak-overlay
    location: /usr/local/flatpak
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo
    priority: 50

genfu
    location: /usr/local/genfu
    sync-type: git
    sync-uri: https://github.com/fuulish/genfu.git
    masters: gentoo
    priority: 60

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/angband/gamedata/ /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="--jobs 1"
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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news 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="-march=native -O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13"
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 acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr egl elogind emboss encode exif flac fortran gdbm gif gles2 gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xml xv xvid xvmc zlib" ABI_X86="64" 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" 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="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm s390x" QEMU_USER_TARGETS="x86_64 aarch64 arm s390x" RUBY_TARGETS="ruby26 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS