Bug 53470 - emerge maxima 5.9.0-r2 fails (new bug)
Bug#: 53470 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci@gentoo.org Reported By: Benjamin_Schulz@gmx.de
Component: Ebuilds
URL: 
Summary: emerge maxima 5.9.0-r2 fails (new bug)
Keywords:  
Status Whiteboard: 
Opened: 2004-06-09 16:41 0000
Description:   Opened: 2004-06-09 16:41 0000
emerge sync;
emerge clisb;
emerge cmucl;
emerge maxima;
leads to

       "/var/tmp/portage/maxima-5.9.0-r2/work/maxima-5.9.0/src/binary-cmucl/todd-coxeter.x86f"
;      - Loading binary file
;        "/var/tmp/portage/maxima-5.9.0-r2/work/maxima-5.9.0/src/binary-cmucl/mactex.x86f"
;      - Loading binary file
;        "/var/tmp/portage/maxima-5.9.0-r2/work/maxima-5.9.0/src/binary-cmucl/plot.x86f"Warning:  F+ previously defined as a macro.
Warning:  F- previously defined as a macro.

;    - Loading module "final"
;      - Loading source file "autol.lisp"
;      - Loading source file "max_ext.lisp"
; In: LAMBDA (FILE &AUX *LOAD-VERBOSE* TEM TRIED)

;   (LET (# #) (DECLARE #) (SETQ TEM #) (AND TEM #))
; ==>
;   (COMMON-LISP:LET (# #)
;     (DECLARE #)
;     (SETQ TEM #)
;     (AND TEM #))
; Note: Variable IN defined but never used.
;
;   #'(LAMBDA (FILE &AUX *LOAD-VERBOSE* TEM TRIED) (BLOCK ALOAD #))
; Note: Variable TRIED defined but never used.

;      - Loading source file "autoconf-variables.lisp"
;      - Loading source file "init-cl.lisp"
;  - Providing system maxima
;

; Compilation unit finished.
;   1 note

[Doing purification: Done.]
[Undoing binding stack... done]
[Saving current lisp image into binary-cmucl/maxima.core:
Writing 31860200 bytes from the Read-Only space at 0x10000000.
Writing 3591048 bytes from the Static space at 0x28000000.
Writing 4096 bytes from the Dynamic space at 0x48000000.
done.]
make[1]: Leaving directory `/var/tmp/portage/maxima-5.9.0-r2/work/maxima-5.9.0/src'
make: *** [all-recursive] Error 1

!!! ERROR: app-sci/maxima-5.9.0-r2 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr
-funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds X aalib acpi acpi4linux alsa apm arts avi berkdb bonobo cdr chroot
clisp cmucl crypt cups dga directfb doc emacs emacs-w3 encode esd f77 foomaticdb
gb gdbm gif ginac glut gnome gpm gtk gtk2 guile icc icc-pgo ifc imagemagick
imlib ipv6 java javascript jpeg kde leim libg++ libwww mad mikmod mmx motif
mozilla mpeg mpeg4 ncurses nls oggvorbis opengl oss pam pdflib perl png python
qt quicktime readline scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff
truetype usb x86 xemacs xine xml xml2 xmms xprint xv zlib"

------- Comment #1 From Shahar Goldin 2004-07-20 20:33:43 0000 -------
*** Bug 27397 has been marked as a duplicate of this bug. ***

------- Comment #2 From Stefan Jones (RETIRED) 2004-07-22 09:35:55 0000 -------
http://www.math.utexas.edu/pipermail/maxima/2003/006337.html

The fix for this, a one liner should be put into portage I guess

------- Comment #3 From Olivier Fisette 2004-08-08 14:13:13 0000 -------
I get the following error when I patch maxima-package.lisp as suggested by
Stefan:

Summary:
CMUCL enabled. Executable name: "lisp"
default lisp: cmucl
wish executable name: "wish"
Making all in src
make[1]: Entering directory
`/var/tmp/portage/maxima-5.9.0-r3/work/maxima-5.9.0/src'
test -d binary-cmucl || mkdir binary-cmucl
test -d binary-cmucl/numerical || mkdir binary-cmucl/numerical
test -d binary-cmucl/numerical/slatec || mkdir binary-cmucl/numerical/slatec
LISPTYPE=cmucl ; export LISPTYPE ;\
CMUCL=lisp ; export CMUCL ;\
../lisp-utils/maxima-run-lisp -i "../lisp-utils/defsystem" \
        -x '(funcall (intern "OPERATE-ON-SYSTEM" :mk) "maxima" :compile
:verbose t)' && \
        ../lisp-utils/maxima-run-lisp -i "../lisp-utils/defsystem" \
        -x '(funcall (intern "OPERATE-ON-SYSTEM" :mk) "maxima" :load :verbose
t)' \
        -d binary-cmucl/maxima
; Loading
#p"/var/tmp/portage/maxima-5.9.0-r3/work/maxima-5.9.0/lisp-utils/defsystem.lisp".
; Converted CANONICALIZE-MODULE-NAME.
; Converted DEFMODULE.
; Converted MODULE-FILES.
; Converted PROVIDE.
; Converted REQUIRE.
;

; Warning: These variables are undefined:
;   *LIBRARY* *MODULE-FILES*
;
Warning:  Old-style IN-PACKAGE.
Warning:  MAKE also exports the following symbols:
  (MISSING-SYSTEM MISSING-MODULE HARDCOPY-SYSTEM COMPILE-SYSTEM
   *COMPILE-DURING-LOAD* *FILES-MISSING-IS-AN-ERROR* AFS-SOURCE-DIRECTORY
   COMPILER-TYPE-TRANSLATION DEFSYSTEM SYSTEM-DEFINITION-PATHNAME
   DEFINE-LANGUAGE FILES-IN-SYSTEM MISSING-COMPONENT OOS UNDEFSYSTEM
   LOAD-SYSTEM *MULTIPLE-LISP-SUPPORT* *DONT-REDEFINE-REQUIRE* *BIN-SUBDIR*
   ADD-REGISTRY-LOCATION DESCRIBE-SYSTEM *RELOAD-SYSTEMS-FROM-DISK*
   REGISTER-FOREIGN-SYSTEM *DEFSYSTEM-VERSION* *MINIMAL-LOAD* DEFINED-SYSTEMS
   SYSTEM-SOURCE-SIZE FIND-SYSTEM AFS-BINARY-DIRECTORY *CENTRAL-REGISTRY*
   EDIT-SYSTEM MISSING-COMPONENT-NAME FILES-WHICH-NEED-COMPILATION CLEAN-SYSTEM
   SOFTWARE-TYPE-TRANSLATION MACHINE-TYPE-TRANSLATION
   MISSING-COMPONENT-COMPONENT OPERATE-ON-SYSTEM *BINARY-PATHNAME-DEFAULT*
   MAKE-SYSTEM-TAG-TABLE ALLEGRO-MAKE-SYSTEM-FASL *SOURCE-PATHNAME-DEFAULT*)
; Loading
#p"/var/tmp/portage/maxima-5.9.0-r3/work/maxima-5.9.0/src/maxima.system".

;  - Compiling defsystem "maxima"
;    - Loading module "package"
; In: LAMBDA (MAKE::COMPONENT MAKE::FORCE)

;   (MAKE::NEEDS-COMPILATION MAKE::COMPONENT)
; Warning: Function called with one argument, but wants exactly two.
;
; Warning: Function called with one argument, but wants exactly two.

;      - Loading source file "maxima-package.lisp" ;

; Compilation unit aborted.

make[1]: *** [binary-cmucl/maxima.core] Erreur 1
make[1]: Leaving directory
`/var/tmp/portage/maxima-5.9.0-r3/work/maxima-5.9.0/src'
make: *** [all-recursive] Erreur 1

!!! ERROR: app-sci/maxima-5.9.0-r3 failed.
!!! Function src_compile, Line 51, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

------- Comment #4 From Olivier Fisette 2004-08-08 14:14:29 0000 -------
... And I forgot to say that maxima compiles OK if I don't apply the fix.

------- Comment #5 From Stefan Jones (RETIRED) 2004-10-04 07:45:48 0000 -------
Note:

Upgrading to maxima-5.9.1 fixes problem also.

I guess you should just do that. This is a no brainer ebuild version bump. Tested already here with almost all USE flag combinations. 

Works fine as long as, if used, gcl is compiled with "ansi" USE flag.

------- Comment #6 From Stefan Jones (RETIRED) 2004-10-05 21:38:50 0000 -------
Added app-sci/maxima-5.9.1 to portage.
Fixes all the bugs below 
(just if you add gcl to USE then also add ansi for maxima to work)