Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576652 - sci-mathematics/maxima-5.37.3-r4 build failure: Cannot open load file: [...] imaxima
Summary: sci-mathematics/maxima-5.37.3-r4 build failure: Cannot open load file: [...] ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-07 00:36 UTC by Håkon Alstadheim
Modified: 2016-03-18 11:21 UTC (History)
1 user (show)

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


Attachments
build log (sci-mathematics:maxima-5.37.3-r4:20160307-000731.log,844.01 KB, text/x-log)
2016-03-07 00:36 UTC, Håkon Alstadheim
Details
log from build with MAKEOPTS="-j1" (sci-mathematics:maxima-5.37.3-r4:20160308-124203.log,844.01 KB, text/x-log)
2016-03-08 13:03 UTC, Håkon Alstadheim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Håkon Alstadheim 2016-03-07 00:36:54 UTC
Created attachment 427644 [details]
build log

building with emacs in use causes multiple elisp warnings and two errors:
interfaces/emacs/imaxima/imath.el:62:1:Error: Cannot open load file: no such file or directory, imaxima
interfaces/emacs/imaxima/imaxima.el:79:1:Error: Cannot open load file: no such file or directory, imaxima-autoconf-variables

PLATFORM:

app-editors/emacs-24.5-r1 USE="X acl alsa dbus games gif gpm gtk gtk3 gzip-el imagemagick inotify jpeg libxml2 png source ssl svg tiff xft xpm zlib"
dev-lisp/sbcl-1.1.18 USE="doc source threads unicode zlib "
Comment 1 Pacho Ramos gentoo-dev 2016-03-08 11:33:26 UTC
This could be a parallel build issue, you can try running it with MAKEOPTS=-j1 instead of -j9 -l9

Also attach emerge --info please
Comment 2 Håkon Alstadheim 2016-03-08 13:01:17 UTC
Tried running with MAKEOPTS="-j1". Seems to get same error. Attaching emake --info and new build log.
Comment 3 Håkon Alstadheim 2016-03-08 13:01:44 UTC
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.9.3, glibc-2.21-r2, 4.3.3-gentoo x86_64)
=================================================================
System uname: Linux-4.3.3-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2620_v3_@_2.40GHz-with-gentoo-2.2
KiB Mem:      941600 total,    120200 free
KiB Swap:    8388604 total,   8388464 free
Timestamp of repository gentoo: Tue, 08 Mar 2016 07:15:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.fi.gentoo.org/gentoo-portage
    priority: -1000

ha-overlay
    location: /var/lib/ha-overlay
    masters: gentoo
    priority: 0

proaudio
    location: /var/lib/layman/proaudio
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE skype-4.0.0.7-copyright CANON"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--backtrack=40 --with-bdeps y --jobs=11  --load-average 10 --quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="nb_NO.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l9"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus acl acpi alsa amd64 avahi avahisx avx avx2 awt berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdparanoia cdr cilk cli collada colorio corefonts cracklib crypt cups curl cxx daap dbus declarative dri dts dv dvb dvd dvdr efiemu elfutils emacs emboss encode exif faac faad fam fbcon ffmpeg fftw firefox firmware-loader flac fma3 fontconfig fortran frei0r games gd gdbm geoip gif gimp git glamor gltf gmp gpm gssapi gstreamer gtk gudev hls hvm iconv icu idn imagemagick imlib inotify ipmi ipv6 java jbig jpeg jpeg2k jpg kde kipi ladspa latex lcms ldap libass libnotify libvisual lirc lzma lzo mad metric mikmod mms mmx mmxext mng modplug modules mono mp3 mp4 mpeg mtp multilib mysql nas ncurses netpbm nfs nls nptl nsplugin nut offensive ofx ogg openal opengl openmp pam pango pcre pcre16 pdf perl phonon plasma png pnm policykit ppds pulseaudio python q16 qemu qt3support qt4 quicktime raw rdesktop readline romio samba sasl sbcl sbsms scanner sdl seccomp semantic-desktop session sharedmem slp smp sndfile speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd taglib tbb tcl tcpd telepathy theora threads tiff tk truetype tty-helpers udev udisks unicode upower usb v4l vaapi vcd vdpau videos vlc vnc vorbis wavpack wmf wxwidgets x264 xattr xcb xcomposite xetex xinerama xml xmp xmpp xscreensaver xv xvid zeroconf zlib" ABI_X86="64 32" 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" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" DRACUT_MODULES="ssh-client systemd plymouth" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="nn nb nn_NO nb_NO en en_GB da fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_4 python2_7" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="canon canon630u canon_dr canon_pp genesys gt68xx epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau modesetting" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Håkon Alstadheim 2016-03-08 13:03:25 UTC
Created attachment 427724 [details]
log from build with MAKEOPTS="-j1"
Comment 5 Andrey Grozin gentoo-dev 2016-03-08 15:22:55 UTC
Cannot reproduce. Yes, there are a lot of warnings. But /var/tmp/portage/sci-mathematics/maxima-5.37.3-r4/work/maxima-5.37.3/interfaces/emacs/imaxima contains the files imaxima.el and imaxima-autoconf-variables.el. Do you have these files in this directory?
Comment 6 Håkon Alstadheim 2016-03-08 20:48:27 UTC
(In reply to Andrey Grozin from comment #5)
> Cannot reproduce. Yes, there are a lot of warnings. But
> /var/tmp/portage/sci-mathematics/maxima-5.37.3-r4/work/maxima-5.37.3/
> interfaces/emacs/imaxima contains the files imaxima.el and
> imaxima-autoconf-variables.el. Do you have these files in this directory?

Yes, unless I'm missing some tiny difference.

# cd /var/tmp/portage/sci-mathematics/maxima-5.37.3-r4/
# find ./ -name 'imaxima.el' -o -name 'imaxima-autoconf-variables.el'
./work/maxima-5.37.3/interfaces/emacs/imaxima/imaxima.el
./work/maxima-5.37.3/interfaces/emacs/imaxima/imaxima-autoconf-variables.el

Both files owned by portage, permissions -rw-r--r-- , and it looks as if they contain actual elisp code.
Comment 7 Håkon Alstadheim 2016-03-08 22:31:24 UTC
(In reply to Andrey Grozin from comment #5)
> Cannot reproduce. Yes, there are a lot of warnings. But
> /var/tmp/portage/sci-mathematics/maxima-5.37.3-r4/work/maxima-5.37.3/
> interfaces/emacs/imaxima contains the files imaxima.el and
> imaxima-autoconf-variables.el. Do you have these files in this directory?

Mobilizing my atrophied emacs muscles, I see the error is in imath.el, which has "(require 'imaxima)", which can not work unless it is already installed, as far as I understand.

the emacs-common.eclass contains:
----
...
BYTECOMPFLAGS="-L ."
...

elisp-compile() {
	ebegin "Compiling GNU Emacs Elisp files"
	${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} -f batch-byte-compile "$@"
	eend $? "elisp-compile: batch-byte-compile failed" || die
}
...
----
The following patch to the ebuild makes maxima build and install:
# diff -u maxima-5.37.3-r4.ebuild.old maxima-5.37.3-r4.ebuild
--- maxima-5.37.3-r4.ebuild.old	2016-03-07 21:51:07.000000000 +0100
+++ maxima-5.37.3-r4.ebuild	2016-03-08 23:11:45.929441623 +0100
@@ -147,6 +147,7 @@
 
 src_compile() {
 	emake
+	BYTECOMPFLAGS="-L . -L interfaces/emacs/imaxima"
 	use emacs && elisp-compile interfaces/emacs/{emaxima,imaxima}/*.el
 }
Comment 8 Andrey Grozin gentoo-dev 2016-03-18 11:21:03 UTC
commit 4a1dff9398711407590429262674093a5d621de1
Author: Andrey Grozin <grozin@gentoo.org>
Date:   Fri Mar 18 17:06:56 2016 +0600

    sci-mathematics/maxima: fix elisp files compilation
    
    Bug: 576652
    
    Package-Manager: portage-2.2.28