Bug 8374 - Emerge clisp-2.29 fails
Bug#: 8374 Product:  Gentoo Linux Version: 1.2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: mkennedy@gentoo.org Reported By: raikov@cc.gatech.edu
Component: Development
URL: 
Summary: Emerge clisp-2.29 fails
Keywords:  
Status Whiteboard: 
Opened: 2002-09-25 11:46 0000
Description:   Opened: 2002-09-25 11:46 0000
Emerging clisp-2.29 fails with the following error message:


Compilation of file
/var/tmp/portage/clisp-2.29/work/clisp/src/bindings/linuxlibc6/linux.lisp is
finished.
0 errors, 0 warnings
make[1]: Leaving directory
`/var/tmp/portage/clisp-2.29/work/clisp/src/bindings/linuxlibc6'
make: *** [bindings/linuxlibc6] Error 2
make: *** Waiting for unfinished jobs....
./genclx > clx.e
rm -f genclx.c
rm -f genclx
echo "#line 1 \"clx.e\"" > clx.temp
sed -e 's,//.*$,,' -e 's,/\*[^/]*\*/, ,g' -e 's,/\*[^*]*\*/, ,g' -e
's,\(/\*.*\)`,\1,g' < clx.e >> clx.temp
./e2d clx clx.temp clx.d
;Converting module `clx' (clx.temp --> clx.d)
Notice: Signature (9, 0, norest, nokey) for function 'XLIB:COPY-AREA' will be
emulated.
Notice: Signature (10, 0, norest, nokey) for function 'XLIB:COPY-PLANE' will be
emulated.
Notice: Signature (6, 1, norest, nokey) for function 'XLIB:DRAW-LINE' will be
emulated.
Notice: Signature (6, 1, norest, nokey) for function 'XLIB:DRAW-RECTANGLE' will
be emulated.
Notice: Signature (5, 0, norest, key) for function 'XLIB:DRAW-GLYPH' will be
emulated.
Notice: Signature (5, 0, norest, key) for function 'XLIB:DRAW-GLYPHS' will be
emulated.
Notice: Signature (5, 0, norest, key) for function 'XLIB:DRAW-IMAGE-GLYPH' will
be emulated.
Notice: Signature (5, 0, norest, key) for function 'XLIB:DRAW-IMAGE-GLYPHS' will
be emulated.
Notice: Signature (5, 0, norest, key) for function 'XLIB:CHANGE-PROPERTY' will
be emulated.
Notice: Signature (3, 2, norest, nokey) for function 'XLIB:CONVERT-SELECTION'
will be emulated.
Notice: Signature (6, 2, norest, nokey) for function
'XLIB:WARP-POINTER-IF-INSIDE' will be emulated.
Notice: Signature (5, 2, norest, nokey) for function
'XLIB:WARP-POINTER-RELATIVE-IF-INSIDE' will be emulated.
;Used packages: XPM, XLIB.
rm -f clx.temp
../../comment5 clx.d | ../../ansidecl > clx.c
gcc -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
-fomit-frame-pointer -Wno-sign-compare -O2 -fexpensive-optimizations -DUNICODE
-DEXPORT_SYSCALLS -DDYNAMIC_FFI -DDYNAMIC_MODULES -fPIC -I/usr/X11R6/include
-I../../ -c clx.c
clx.e: In function `C_xlib_open_display':
clx.e:2353: warning: implicit declaration of function `sprintf'
make[1]: Leaving directory `/var/tmp/portage/clisp-2.29/work/clisp/src/clx/new-clx'

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 17, Exitcode 2
!!! (no error message)

Here are the values of my USE flag and compiler flags:

USE="mmx sse gphoto2 X fbcon kde qt qtmt arts gnome gtk gtkhtml motif
tcltk imlib ncurses readline lcms gif jpeg png tiff avi mpeg quicktime alsa
esd mikmod nas xmms oggvorbis encode pam ssl crypt imap tcpd mozilla
truetype spell xml xml2 pdflib plotutils tetex guile python libg++ samba"

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686  -O3 -pipe"
CXXFLAGS="-mcpu=i686  -O3 -pipe"

------- Comment #1 From Karl Trygve Kalleberg (RETIRED) 2002-09-26 11:17:58 0000 -------
Fixed, emerge rsync to try the revised edition. Didn't revision bump.

------- Comment #2 From William Roe 2003-01-10 13:53:26 0000 -------
This is what I get when I try to emerge clisp-2.29:

mkdir locale
(cd gettext/po && make && make install datadir=../..
localedir='$(datadir)/locale' INSTALL_DATA=ln) || (rm -rf locale ; exit 1)
make[1]: Entering directory `/var/tmp/portage/clisp-2.29/work/clisp/src/gettext/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/clisp-2.29/work/clisp/src/gettext/po'
make[1]: Entering directory `/var/tmp/portage/clisp-2.29/work/clisp/src/gettext/po'
installing en.gmo as ../../locale/en/LC_MESSAGES/clisp.mo
installing clisplow_en.gmo as ../../locale/en/LC_MESSAGES/clisplow.mo
installing de.gmo as ../../locale/de/LC_MESSAGES/clisp.mo
installing clisplow_de.gmo as ../../locale/de/LC_MESSAGES/clisplow.mo
installing fr.gmo as ../../locale/fr/LC_MESSAGES/clisp.mo
installing clisplow_fr.gmo as ../../locale/fr/LC_MESSAGES/clisplow.mo
installing es.gmo as ../../locale/es/LC_MESSAGES/clisp.mo
installing clisplow_es.gmo as ../../locale/es/LC_MESSAGES/clisplow.mo
installing nl.gmo as ../../locale/nl/LC_MESSAGES/clisp.mo
installing clisplow_nl.gmo as ../../locale/nl/LC_MESSAGES/clisplow.mo
make[1]: Leaving directory `/var/tmp/portage/clisp-2.29/work/clisp/src/gettext/po'
rm -f data/*
mkdir data
cd data && ln -s ../../utils/unicode/ftp.unicode.org/UnicodeData.txt .
cd data && ln -s ../../src/clhs.txt .
gcc -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
-fomit-frame-pointer -Wno-sign-compare -O2 -fexpensive-optimizations -DUNICODE
-DEXPORT_SYSCALLS -DDYNAMIC_FFI -DDYNAMIC_MODULES -x none -Wl,-export-dynamic
spvw.o spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o
stream.o socket.o io.o array.o hashtabl.o list.o package.o record.o sequence.o
charstrg.o debug.o error.o misc.o time.o predtype.o symbol.o lisparit.o i18n.o
foreign.o unixaux.o posixmisc.o ari80386.o modules.o libsigsegv.a libintl.a
libiconv.a libreadline.a libavcall.a libcallback.a  -lncurses -ldl  -lm -o lisp.run
sync
./lisp.run -B . -N locale -Efile UTF-8 -norc -m 750KW -x "(load \"init.lisp\")
(sys::%saveinitmem) (exit)"
Cannot map memory to address 0x680B2000 . errno = ENOMEM: Not enough memory.
Trying to make room through a GC...
Cannot map memory to address 0x680B2000 . errno = ENOMEM: Not enough memory.
Trying to make room through a GC...
Cannot map memory to address 0x680B2000 . errno = ENOMEM: Not enough memory.
Trying to make room through a GC...
make: *** [interpreted.mem] Segmentation fault

!!! ERROR: dev-lisp/clisp-2.29 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)

clisp has already been emerged on this system but when I try to run it I get:

deepblue root Alive # clisp 
Cannot map memory to address 0x6808A000 . errno = ENOMEM: Not enough memory.
/usr/lib/clisp/base/lisp.run: not enough memory for initialization

Help! I noticed previous problems were fixed quickly so here's hoping this will
be ;) Thanks.

------- Comment #3 From William Roe 2003-01-10 13:54:58 0000 -------
Oh yeah, my use vars:

USE="X gtk gnome cups -alsa avi esd encode ssl -arts sdl dvd tcltk
   truetype oggvorbis -qt -java tetex pdflib samba crypt nfs -doc apache2"

my cflags:

CFLAGS="-mcpu=athlon -march=athlon -O3 -pipe -m3dnow -mmmx -fomit-frame-pointer
-ffast-math  -funroll-loops -fforce-addr -falign-functions=4"

CXXFLAGS="${CFLAGS}"

------- Comment #4 From Ivan Raikov 2003-01-10 16:10:55 0000 -------
The package builds fine for me, so why don't you try eliminating your CFLAGS
one
by one and try to determine if the problem is in the different compiler flags?

------- Comment #5 From wiono@interia.pl 2003-03-28 16:14:09 0000 -------
it also fails for me
make[1]: Entering directory `/var/tmp/portage/clisp-2.29/work/clisp/src/wildcard'
/var/tmp/portage/clisp-2.29/work/clisp/src/lisp.run -M /var/tmp/portage/clisp-2.29/work/clisp/src/lispinit.mem -B /var/tmp/portage/clisp-2.29/work/clisp/src -N /var/tmp/portage/clisp-2.29/work/clisp/src/locale -Efile UTF-8 -norc -q -c wildcard.lisp

Compiling file /var/tmp/portage/clisp-2.29/work/clisp/src/wildcard/wildcard.lisp ...

Compilation of file /var/tmp/portage/clisp-2.29/work/clisp/src/wildcard/wildcard.lisp is finished.
0 errors, 0 warnings
gcc -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -fomit-frame-pointer -Wno-sign-compare -O2 -fexpensive-optimizations -DUNICODE -DEXPORT_SYSCALLS -DDYNAMIC_FFI -DDYNAMIC_MODULES -fPIC -I../ -c wildcard.c
gcc -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -fomit-frame-pointer -Wno-sign-compare -O2 -fexpensive-optimizations -DUNICODE -DEXPORT_SYSCALLS -DDYNAMIC_FFI -DDYNAMIC_MODULES -fPIC -I. -DHAVE_CONFIG_H -D_LIBC -c fnmatch.c
In file included from /usr/include/features.h:314,
                 from /usr/include/errno.h:29,
                 from fnmatch.c:27:
/usr/include/gnu/stubs.h:7:3: #error Applications may not define the macro _LIBC
make[1]: *** [fnmatch.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/clisp-2.29/work/clisp/src/wildcard'
make: *** [wildcard] Error 2

my emerge info:
Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) Processor
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts tcltk java X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gtk qt kde motif opengl aalib acpi alsa apache2 cdr dga esd flash gd -gnome innodb jikes maildir mozilla mysql nocardbus oav perl samba sasl slp -svga tetex tiff usb wmf xface zeo"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-tbird -O2 -pipe"
CXXFLAGS="-mcpu=athlon-tbird -O2 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
FEATURES="sandbox ccache"

------- Comment #6 From Karl Trygve Kalleberg (RETIRED) 2003-05-03 08:39:30 0000 -------
I can't get around to fixing this anytime soon, I'm afraid.

------- Comment #7 From Martin Holzer (RETIRED) 2003-05-05 12:30:04 0000 -------
how about 2.30

------- Comment #8 From Matthew Kennedy (RETIRED) 2003-06-19 08:24:57 0000 -------
please get back to us with clisp 2.30 results.

------- Comment #9 From Van Gale 2003-08-20 06:06:32 0000 -------
I fixed this by in clisp 2.29 by:

1. cd /var/tmp/portage/clisp-2.29/work/clisp/src/wildcard
2. emacs Makefile.in
3. Delete the "-D_LIBC" on line 27
4. Then restart the emerge

It seems that glibc 3.2 doesn't like applications defining "_LIBC"

------- Comment #10 From Fernando Henrique Ferraz Pereira da Rosa 2003-09-27 08:11:22 0000 -------
I was having trouble compiling clisp 2.29 also, then I tried Van Gale
suggestions
and the problem was gone. By the way, clisp 2.30/clisp 2.31 do emerge fine,
but app-sci/maxima needs clisp 2.29, because it crashes during compile time
if you have clisp 2.30/2.31.
I think Van Gale's suggestion should be added as a patch to the clisp 2.29
ebuild. 

------- Comment #11 From Matthew Kennedy (RETIRED) 2003-10-02 13:30:26 0000 -------
fixed already it seems