Bug 190950 - gcl-2.6.7-r3 fails to compile on x86
Bug#: 190950 Product:  Gentoo Linux Version: 2007.0 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: DUPLICATE Assigned To: common-lisp@gentoo.org Reported By: rose@rz.uni-potsdam.de
Component: Applications
URL: 
Summary: gcl-2.6.7-r3 fails to compile on x86
Keywords:  
Status Whiteboard: 
Opened: 2007-09-01 09:20 0000
Description:   Opened: 2007-09-01 09:20 0000
cd /var/tmp/portage/dev-lisp/gcl-2.6.7-r3/image//usr/lib/gcl-2.6.8/unixport &&
\
                mv saved_ansi_gcl temp && \
                echo '(reset-sys-paths "/usr/lib/gcl-2.6.8/")(si::save-system
"saved_ansi_gcl")' | ./temp && \
                rm -f temp
GCL (GNU Common Lisp)  2.6.8 ANSI    Sep  1 2007 10:51:13
Source License: LGPL(gcl,gmp), GPL(unexec,bfd,xgcl)
Binary License:  GPL due to GPL'ed components: (XGCL READLINE BFD UNEXEC)
Modifications of this banner must retain notice of a compatible license
Dedicated to the memory of W. Schelter

Use (help) to get some basic information on how to use GCL.
Temporary directory for compiler files set to
/var/tmp/portage/dev-lisp/gcl-2.6.7-r3/temp/

>
NIL

>/bin/sh: line 3: 16861 Done                    echo '(reset-sys-paths "/usr/lib/gcl-2.6.8/")(si::save-system "saved_ansi_gcl
")'
     16862 Segmentation fault      | ./temp
make[1]: *** [install1] Error 139
make[1]: Leaving directory
`/var/tmp/portage/dev-lisp/gcl-2.6.7-r3/work/gcl-2.6.7'
make: *** [install] Error 2
 * 
 * ERROR: dev-lisp/gcl-2.6.7-r3 failed.


This problem has happened at all i686 systems, where I tried it. At two x86_64
systems I could emerge gcl-2.6.7-r3 without problems.

Reproducible: Always




root@vilm:/root(15)# emerge --info
Portage 2.1.3.7 (default-linux/x86/2007.0, gcc-4.2.0, glibc-2.6.1-r0,
2.6.23-rc2 i686)
=================================================================
System uname: 2.6.23-rc2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Sat, 01 Sep 2007 07:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /v
ar/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /
etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo
/ rsync://ftp.fi.muni.cz/pub/linux/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
rsync://gd.tuwien.ac.at/opsys/linux/
gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oreg
onstate.edu"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after 
--stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/local/portage
/usr/local/portage/xeffects/trunk /usr/local/portage/xe
ffects/experimental /usr/local/sci"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi aiglx alsa amrr ao aotuv apache2 asf atlas auctex
audacious audiofile automount bash-completion
 beagle berkdb bitmap-fonts blas bluetooth bonobo boo bzip2 cairo cdda cddb cdf
cdio cdparanoia cdr cgi chm cli corba crackli
b crypt cups curl daap dbus device-mapper dga divx dlloader dmi dri dv dvb dvd
dvdr dvi dxr3 dynagraph effects elf emacs embo
ss encode epiphany esd evo evolution examples exif expat fam fame ffmpeg fftw
firefox fits flac fltk foomaticdb fortran fpx g
alago gdal gdbm geos gif gimp gimpprint ginac glade glitz gml gmp gnome gnuplot
gnutls gphoto2 gpm graphviz grass gs gsl gsm 
gstreamer gtk guile hal hddtemp hdf hdf5 hlapi iconv icq id3 imagemagick innodb
ipv6 isdnlog ithreads jabber java jbig john j
p2 jpeg jpeg2k kexi ladspa lame lapack latex lcms ldap libgda libsamplerate
lirc lm_sensors lua lzo lzw mad math matroska mat
rox midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3
mp4live mpeg mpeg2 mplayer mudflap musicbrain
z mysql mysqli nautilus ncurses neXt netcdf network nfs nls nntp nptl nptlonly
ntfs numarray numeric ocaml octave odbc ogdi o
gg ole opengl openmp pae pam pcre pdf perl plotutils plugin png posix postgres
pppd preview-latex proj python qhull quicktime
 readline real reflection reiserfs rhythmbox rle rrdcgi rrdtool samba sdl
session slang slp smp sndfile snmp sox speex spell 
spl sqlite sse sse2 ssl subtitles svg t1lib tcltk tcpd tetex theora threads
thunderbird tidy tiff tk truetype truetype-fonts 
type1-fonts unicode userlocales utempter v4l2 vorbis win32codecs wmf x86 xattr
xemacs xext xine xml xmlreader xmlrpc xorg xpm
 xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw
asym copy dmix dshare dsnoop empty extplug file h
ooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route
share shm softvol" ELIBC="glibc" INPUT_DEVICES
="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk
hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS=
"de fr" USERLAND="GNU" VIDEO_CARDS="mga vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_
RSYNC_EXTRA_OPTS

------- Comment #1 From Marijn Schouten 2007-09-01 09:23:46 0000 -------
There is something subtle going on. You get this error on amd64 when you remove
flag-o-matic from the inherit line.

------- Comment #2 From Juergen Rose 2007-09-02 15:22:30 0000 -------
But the problem are not the x86_64 systens, there the compilation of
gcl-2.6.7-r3 works. Only at all (seven) i686 systen the installation fails.

------- Comment #3 From Vladimir G. Ivanovic 2007-09-02 20:43:33 0000 -------
(In reply to comment #2)
> But the problem are not the x86_64 systens, there the compilation of
> gcl-2.6.7-r3 works. Only at all (seven) i686 systen the installation fails.
> 

Just to be clear, gcl-2.6.7-r3 does NOT compile on AMD64 (x86_64) for me. I get
the same error as the original reporter.

------- Comment #4 From Manuel Gomez 2007-09-03 03:17:08 0000 -------
I'm getting the exact same error, also on amd64.

------- Comment #5 From Panagiotis Christopoulos 2007-09-03 06:38:39 0000 -------
Just to inform you, there is a problem with sandbox, gentoo-lisp team is
working to solve it.Anyway, gcl is very broken. I don't know if it has
future.We'll see.

------- Comment #6 From Martin von Gagern 2007-09-04 09:47:18 0000 -------
There used to be a workaround mentioned in bug 161041, looking at the diff I
guess it was exporting SANBOX_ON=0. According to the ChangeLog this workaround
was commented out when the debian patches 34 were included to resolve bug
190631. However that bug says nothing about the sandbox issue, and from this
bug here you can tell it's still a problem.
Can we get the workaround in place again till bug 164656 has been resolved?

------- Comment #7 From Marijn Schouten 2007-09-04 11:22:47 0000 -------
I've put back one of the workarounds, not sure if it is enough, and I have put
a comment there to explain why it is there. At least now I know why it is there
:)

*** This bug has been marked as a duplicate of bug 161041 ***