Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629300 - media-gfx/gimp-2.9.6 fails with error: undefined reference to {'log10','ceil'}
Summary: media-gfx/gimp-2.9.6 fails with error: undefined...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
: 629304 (view as bug list)
Depends on:
Blocks: systemwide-gold
  Show dependency tree
Reported: 2017-08-29 14:49 UTC by Michelangelo Scopelliti
Modified: 2017-08-30 15:32 UTC (History)
3 users (show)

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

build log (with MAKEOPTS="-j1") (gimp-2.9.6:20170829-144508.log.gz,19.72 KB, application/gzip)
2017-08-29 14:49 UTC, Michelangelo Scopelliti

Note You need to log in before you can comment on or make changes to this bug.
Description Michelangelo Scopelliti 2017-08-29 14:49:40 UTC
Created attachment 491072 [details]
build log (with MAKEOPTS="-j1")

After a complete system rebuild with instead of ld.bfd, media-gfx/gimp-2.9.6 fails with error

../libgimpbase/.libs/ error: undefined reference to 'log10'
../libgimpbase/.libs/ error: undefined reference to 'ceil'

It seems lost '-lm'. 

$ emerge -pqv gimp
[ebuild   R   ] media-gfx/gimp-2.9.6  USE="alsa jpeg2k mng openexr pdf postscript smp udev wmf xpm -aalib (-altivec) (-aqua) -debug -doc -gnome -python {-test} -vector-icons -webp" CPU_FLAGS_X86="mmx sse" LINGUAS="it -am -ar -ast -az -be -bg -br -ca -ca@valencia -cs -csb -da -de -dz -el -en_CA -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hu -id -is -ja -ka -kk -km -kn -ko -lt -lv -mk -ml -ms -my -nb -nds -ne -nl -nn -oc -pa -pl -pt -pt_BR -ro -ru -rw -si -sk -sl -sr -sr@latin -sv -ta -te -th -tr -tt -uk -vi -xh -yi -zh_CN -zh_HK -zh_TW" PYTHON_TARGETS="python2_7"

$ emerge --info
Portage 2.3.8 (python 2.7.13-final-0, default/linux/amd64/13.0, gcc-6.4.0, glibc-2.25-r4, 4.12.9 x86_64)
System uname: Linux-4.12.9-x86_64-AMD_A8-3870_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.4.1
KiB Mem:    15889368 total,  11046476 free
KiB Swap:   18874352 total,  18874352 free
Timestamp of repository gentoo: Tue, 29 Aug 2017 06:15:01 +0000
Head commit of repository gentoo: 85701d5bd21649b1b588fd0d0a568ebd760c1125
sh bash 4.4_p12
ld GNU gold (Gentoo 2.28.1 p1.0 2.28.1) 1.14
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.6.1-r1::gentoo
dev-util/cmake:           3.9.1::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.29::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r4::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000

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

    location: /var/lib/layman/libressl
    sync-type: laymansync
    masters: gentoo
    priority: 50

    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
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 -mtune=native -O2 -pipe"
FCFLAGS="-march=native -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup clean-logs compress-build-logs compress-index config-protect-if-modified distlocks downgrade-backup fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-backup unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe"
INSTALL_MASK=" /etc/systemd /usr/lib/systemd /usr/lib64/systemd"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="X a52 aac acl alsa amd64 ao berkdb blas bluetooth branding bzip2 cairo caps cli cracklib crypt cups curl cxx dbus djvu dri dts dv dvb dvd encode exif ffmpeg fftw flac fontconfig fortran gcj gdbm gif gimp gmp gpm gsm gstreamer iconv icu inotify ipv6 jbig jpeg jpeg2k lame lapack latex lcms libass libnotify libressl lzma lzo mad matroska mmap mms mng modplug modules mp3 mpeg mpi multilib ncurses nls nptl offensive ogg openexr opengl openmp pam pcre pdf png postscript raw readline scanner seccomp session smp sndfile sound sox speex ssl startup-notification svg theora threads tiff truetype udev unicode usb v4l vaapi vdpau vim-syntax vorbis wavpack wmf wxwidgets x264 xattr xcb xml xmp xpm xscreensaver xv xvid zlib" ABI_X86="32 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="mmx mmxext sse sse2 3dnow 3dnowext popcnt sse3 sse4a" CURL_SSL="libressl" 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="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" LLVM_TARGETS="AMDGPU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby24" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="modesetting radeon r600" 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"
Comment 1 Jonas Stein gentoo-dev 2017-08-29 20:40:16 UTC
*** Bug 629304 has been marked as a duplicate of this bug. ***
Comment 2 Jonas Stein gentoo-dev 2017-08-29 20:40:52 UTC
nb: see patch in the duplicate #629304
Comment 3 Steve Arnold archtester gentoo-dev 2017-08-30 06:58:43 UTC
Since upstream has some crazy logic already for checking some math functions, maybe an easier/more-distro way is check for gold linker and then append-libs?
Comment 4 Xavier Miller (RETIRED) gentoo-dev 2017-08-30 07:34:31 UTC

attachment 491074 [details] from bug 629304 works for me.
Comment 5 Xavier Miller (RETIRED) gentoo-dev 2017-08-30 07:35:31 UTC
it's attachment 491076 [details, diff] (bad copy/paste)
Comment 6 Sebastian Pipping gentoo-dev 2017-08-30 15:26:04 UTC
commit f1fbb772148dcb72b5a619931f3358955469aaa3
Author: Sebastian Pipping <sping@g.o>
Date:   Wed Aug 30 17:25:05 2017 +0200

    media-gfx/gimp: Fix 2.9.6 gold linking (bug #629300)
    Package-Manager: Portage-2.3.8, Repoman-2.3.3

 media-gfx/gimp/files/gimp-2.9.6-underlinking.patch | 20 ++++++++++++++++++++
 media-gfx/gimp/gimp-2.9.6.ebuild                   |  1 +
 2 files changed, 21 insertions(+)
Comment 7 Sebastian Pipping gentoo-dev 2017-08-30 15:32:21 UTC
Reported upstream now at