clisp2.33.2-r2 doesn't compile on amd64 Reproducible: Always Steps to Reproduce: 1.emerge clisp Actual Results: make[1]: Leaving directory `/var/tmp/portage/clisp-2.33.2-r2/work/clisp-2.33.2/build/clx/new-clx' gcc -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wno-sign-compare -O -DUNICODE -DDYNAMIC_FFI -I. -I/var/tmp/portage/clisp-2.33.2-r2/work/clisp-2.33.2/build -c modules.c gcc -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wno-sign-compare -O -DUNICODE -DDYNAMIC_FFI -I. -x none modules.o clx.o -L/usr/lib64 -lXpm -lXext -lSM -lICE -lX11 linux.o -lm wildcard.o calls.o -lm regexi.o lisp.a libcharset.a libavcall.a libcallback.a /usr/lib/libreadline.so -lncurses -ldl -L/usr/lib -lsigsegv -L/usr/lib -lc -o lisp.run linux.o(.text+0x1a06): In function `module__linux__init_function_2': : warning: the use of `tmpnam' is dangerous, better use `mkstemp' linux.o(.text+0x1a1a): In function `module__linux__init_function_2': : warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' linux.o(.text+0x1a2e): In function `module__linux__init_function_2': : warning: the use of `tempnam' is dangerous, better use `mkstemp' linux.o(.text+0x5a2): In function `module__linux__init_function_2': : warning: the use of `mktemp' is dangerous, better use `mkstemp' clx.o(.text+0xff1b): In function `C_subr_xlib_put_image': : undefined reference to `Array_type_simple_bit_vector' clx.o(.text+0x1dd5a): In function `C_subr_xlib_query_keymap': : undefined reference to `Array_type_simple_bit_vector' collect2: ld returned 1 exit status base/lisp.run -B . -M base/lispinit.mem -norc -q -i regexp/preload.lisp syscalls/preload.lisp clx/new-clx/clx-preload.lisp -x (saveinitmem "full/lispinit.mem") ;; Loading file regexp/preload.lisp ... ;; Loaded file regexp/preload.lisp ;; Loading file syscalls/preload.lisp ... ;; Loaded file syscalls/preload.lisp ;; Loading file clx/new-clx/clx-preload.lisp ... ;; Loaded file clx/new-clx/clx-preload.lisp 2297736 ; 574434 full/lisp.run -B . -M full/lispinit.mem -norc -q -i regexp/regexp syscalls/posix wildcard/wildcard bindings/glibc/linux bindings/glibc/wrap clx/new-clx/clx clx/new-clx/image -x (saveinitmem "full/lispinit.mem") ./clisp-link: line 42: full/lisp.run: No such file or directory make: *** [full] Error 1 Expected Results: clisp should be merged... Portage 2.0.51.20-r5 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r6 x86_64) ================================================================= System uname: 2.6.11-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3800+ Gentoo Base System version 1.6.11 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.1-r3 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks strict" GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" LINGUAS="fr" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X aalib acl acpi alsa apache2 arts atlas avi berkdb bitmap-fonts cdr cjk crypt cups curl dvd encode esd f77 fam flac font-server fortran gd gif gpm gps gtk gtk2 imagemagick imlib ipv6 jabber jikes jp2 jpeg kde libdvdcss libsdl libwww lzw lzw-tiff mozsvg mp3 mpeg mysql ncurse ncurses nls nptl offensive ogg oggvorbis opengl oss pam pda perl php pic png python qt quicktime readline samba sdl slang speex spell ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales videos vorbis wxwindows xine xml xml2 xmms xpm xrandr xv xvid zlib linguas_fr" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
This appears to be an upstream bug with clisp. Reports of similar problems have been noted with Alpha systems on the clisp mailing list at sourceforge, so I suspect that this problem impacts more than just ~amd64. In particular, the problem seems to be triggered by the X and postgres USE flags, among others. Doing the following: USE="-*" emerge clisp Will result in a successful merge of clisp. Fortunately, the clisp mailing list also yielded a patch which appears to fix this problem, making it possible to keep X and postgres in one's USE flags list. I have just tested this patch, and it seems to result in a successful build for me. Give it a try, and see if it works for you. I will attach the patch and a patch to the ebuild to include it to this bug report.
Created attachment 58508 [details, diff] patch to clisp-2.33.2 to fix compilation problem
Created attachment 58510 [details, diff] patch to clisp-2.33.2-r2 ebuild to include compilefix patch
That patch makes it compile for me, with these USE flags: +X -debug -fastcgi +nls +pcre -postgres +readline and it seems to run OK. Portage 2.0.51.21 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r6 x86_64) ================================================================= System uname: 2.6.11-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.11 ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -ftracer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect distlocks sandbox strict userpriv usersandbox" GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://makanee.ferretporn.se/gentoo-portage" USE="amd64 X Xaw3d a52 aalib acpi adns alsa bash-completion berkdb bitmap-fonts cdinstall cdparanoia cdr cjk crypt cscope curl doc dvd emacs emacs-w3 fam flac font-server freetype gcl gd gdbm gif glut gmp gstreamer gtk gtk2 imagemagick imap imlib jp2 jpeg kde libwww lzw lzw-tiff mad maildir matroska mbox mikmod mp3 ncurses nls nocd nptl nptlonly nvidia offensive ogg oggvorbis openal opengl operanom2 pam perl pie png python qt readline ruby samba sdl sendfile slang spell sqlite ssl stencil-buffer tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8 vorbis xface xine xml2 xmms xpm xrandr xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
I just tested ppc with this patch, to check for regressions. The ppc verison emerged and runs just fine. The patch does not appear to cause any harm on ppc.
patch(es) seem to work on my system * amd64 * gcc-3.4.3 * cc-flags: -O3 -pipe
Why isn't this fixed in portage yet?
because i suck. fixed now