Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943469 - app-office/gnucash-5.8-r100 fails to compile due to guile-3.0 with PKG_CONFIG_PATH set in the environment
Summary: app-office/gnucash-5.8-r100 fails to compile due to guile-3.0 with PKG_CONFIG...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-14 01:57 UTC by Plüss Roland
Modified: 2024-12-26 10:05 UTC (History)
2 users (show)

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


Attachments
Emerge info (emerge.info,7.81 KB, text/plain)
2024-11-19 09:10 UTC, Plüss Roland
Details
Environment (die.env,275.79 KB, text/plain)
2024-11-19 09:18 UTC, Plüss Roland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Plüss Roland 2024-11-14 01:57:34 UTC
gnucash-5.8-r100 fails to compile due to guile-3.0

Reproducible: Always

Steps to Reproduce:
1. emerge gnucash-5.8-r100
Actual Results:  
 * ERROR: app-office/gnucash-5.8-r100::gentoo failed (setup phase):
 *   Could not get guile out of guile-3.0.  Did you source /etc/profile after an update?
 * 
 * Call stack:
 *                 ebuild.sh, line 136:  Called pkg_setup
 *   gnucash-5.8-r100.ebuild, line 129:  Called guile-single_pkg_setup
 *       guile-single.eclass, line 218:  Called guile_export 'GUILE' 'GUILD' 'GUILESNARF'
 *        guile-utils.eclass, line 218:  Called _guile_pcvar 'guile'
 *        guile-utils.eclass, line 213:  Called die
 * The specific snippet of code:
 *              $(tc-getPKG_CONFIG) --variable="$1" guile-"${gver}" \
 *                      || die "Could not get $1 out of guile-${gver}.  ${tip}"
 * 
 * If you need support, post the output of `emerge --info '=app-office/gnucash-5.8-r100::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/gnucash-5.8-r100::gentoo'`.
 * The complete build log is located at '/extension/tmp_portage/portage/app-office/gnucash-5.8-r100/temp/build.log'.
 * The ebuild environment file is located at '/extension/tmp_portage/portage/app-office/gnucash-5.8-r100/temp/die.env'.
 * Working directory: '/extension/tmp_portage/portage/app-office/gnucash-5.8-r100/empty'
 * S: '/extension/tmp_portage/portage/app-office/gnucash-5.8-r100/work/gnucash-5.8'


Expected Results:  
Emerge works

 * Package:    app-office/gnucash-5.8-r100:0
 * Repository: gentoo
 * Maintainer: titanofold@gentoo.org
 * Upstream:   https://bugs.gnucash.org/
 * USE:        abi_x86_64 amd64 elibc_glibc gui guile_single_target_3-0 kernel_linux mysql nls python python_single_target_python3_12 sqlite
 * FEATURES:   network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox

---

[ebuild     U  ] app-office/gnucash-5.8-r100::gentoo [5.8::gentoo] USE="gui mysql nls python sqlite -aqbanking -debug -doc -examples -gnome-keyring -ofx -postgres -quotes -smartcard -test" GUILE_SINGLE_TARGET="3-0%* -2-2%" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" 0 KiB

---

Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-13, glibc-2.40-r5, 6.8.0-gentoo x86_64)
=================================================================
System uname: Linux-6.8.0-gentoo-x86_64-AMD_Ryzen_7_7700X_8-Core_Processor-with-glibc2.40
KiB Mem:    64970056 total,  59660876 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 13 Nov 2024 19:00:00 +0000
Head commit of repository gentoo: c0b06d10cdc250d0ed2c2661235d239311e11600
Timestamp of repository guru: Wed, 13 Nov 2024 15:03:17 +0000
Head commit of repository guru: d7b39d93a3d2a4f5066f329fa14601292b6b4e27

Timestamp of repository steam-overlay: Wed, 13 Nov 2024 06:33:27 +0000
Head commit of repository steam-overlay: 5de41dfd111d52752fbc6f83a2a4be9ad3e6ed0c

sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
ccache version 4.10.2 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.10.15_p1::gentoo, 3.11.10_p1::gentoo, 3.12.7_p1::gentoo, 3.13.0::gentoo
dev-lang/rust:             1.79.0-r100::gentoo, 1.80.1-r100::gentoo, 1.81.0-r100::gentoo
dev-lang/rust-bin:         1.79.0-r100::gentoo
dev-util/ccache:           4.10.2-r1::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           18.1.8::gentoo
sys-devel/gcc:             13.3.1_p20241025::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             18.1.8::gentoo
sys-devel/llvm:            18.1.8-r1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /extension/usr_portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

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

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE PUEL dlj-1.1 AdobeFlash Oracle-BCLA-JavaSE AdobeFlash-10.3 AdobeFlash-11.x RAR unRAR linux-fw-redistributable no-source-code free-noncomm MSttfEULA freedist MPEG-4 linux-firmware FESTIVAL sun-bcla-jms XMAME"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
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"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug 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.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en de"
MAKEOPTS="-j8"
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="/extension/tmp_portage"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 apng arts audiofile bluetooth branding browserplugin bzip2 cairo cdaudio cdda cdr cet clang crypt cups dbus declarative dri dssi dts dv dvd dvdr dvdread elogind encode exif expat ffmpeg filecaps firefox flac fontconfig frei0r gd gdbm geoip gif gimp gimpprint gles1 gles2 gpm gtk gui hal hddtemp iconv icu ipv6 jabber jack java javascript jingle jpeg jpeg2k kde kf6compat kwallet ladspa lame lcms libass libnotify libsamplerate libtirpc live lm_sensors lua mad melt midi mmx mng modplug mp3 mp4 mpeg mtp multilib mysql ncurses network networkmanager nls noamazon nsplugin ntfsprogs ogg openal opencl openexr opengl openmp opus pam pango pcre pdf perl php pipewire plasma plotutils png policykit ppds pulseaudio python qml qt3support qt5 qt6 quicktime readline ruby samba sane sbsms screencast sdl seccomp semantic-desktop sndfile soprano sound soundtouch sox spell sql sqlite sse sse2 ssl startup-notification subversion svg system-sqlite test-rust theora threads tiff timidity tk truetype udev udisks unicode upower usb vamp video visualization vnc vorbis vpx vulkan wayland webp widgets win32codecs wma wxwidgets wxwindows x264 xattr xcb xft xml xulrunner xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev joystick keyboard mouse aiptek" KERNEL="linux" L10N="en de en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Mike Gilbert gentoo-dev 2024-11-14 20:11:03 UTC
Please include the package category in the bug summary.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-15 04:07:34 UTC
 *   Could not get guile out of guile-3.0.  Did you source /etc/profile after an update?

I assume you have done that and it doesn't help?
Comment 3 Arsen Arsenović gentoo-dev 2024-11-17 13:33:28 UTC
the environment could also help debug
Comment 4 Plüss Roland 2024-11-19 09:10:47 UTC
Created attachment 910118 [details]
Emerge info

@Sam James: Yep, it does not help. Also restarting does not help.

@Arsen Arsenović: Is this (attachment) what you are looking for?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-19 09:14:50 UTC
Could you grab 
 * The ebuild environment file is located at '/extension/tmp_portage/portage/app-office/gnucash-5.8-r100/temp/die.env'.
for us too?
Comment 6 Plüss Roland 2024-11-19 09:18:32 UTC
Created attachment 910119 [details]
Environment
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-15 10:01:10 UTC
> declare -x PKG_CONFIG_PATH=""
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-15 10:01:38 UTC
Could you run `env | grep -i PKG_` for us? Also `env | grep -i LD_`
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-15 10:02:45 UTC
Also, emerge -pvO dev-scheme/guile:3.0 output.

Is anyone else able to hit this too? It would help us narrow it down.
Comment 10 Arsen Arsenović gentoo-dev 2024-12-15 10:25:43 UTC
is this only gnucash, btw, or any guile package (try make[guile] for example)?

also, what's in /etc/env.d/*guile*
Comment 11 Plüss Roland 2024-12-15 11:05:11 UTC
PKG_CONFIG_PATH is set to a directory required for development work here (an additional directory so to speak). But this is the case since years without problems.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-15 11:05:53 UTC
(In reply to Plüss Roland from comment #11)
> PKG_CONFIG_PATH is set to a directory required for development work here (an
> additional directory so to speak). But this is the case since years without
> problems.

Ideally that would only be set for your user, not in the shell or environment emerge is run under. There's various environment variables like that which can and will confuse things.
Comment 13 Plüss Roland 2024-12-16 13:11:47 UTC
Problem is only to upgrade the system you either "sudo" or "su" and this does take over user environment. If an env variable like this is prone to break a package then emerge should protect against this.
Comment 14 Arsen Arsenović gentoo-dev 2024-12-16 13:26:54 UTC
I've wondered if portage should source /etc/profile.env, that'd fix this specific break.  Could you try sourcing /etc/profile and seeing whether you can build after you do?  If so, this is not a gnucash/guile issue
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-16 13:45:57 UTC
(In reply to Plüss Roland from comment #13)
> Problem is only to upgrade the system you either "sudo" or "su"

Do sudo su - instead?

> and this
> does take over user environment. If an env variable like this is prone to
> break a package then emerge should protect against this.

The problem is that:
a) in some cases, it may be legitimate to provide such a variable to emerge,
b) the list of such *potentially* problematic variables is very large.