Summary: | dev-lisp/gcl-2.6.7* fails on ppc and disrespects CFLAGS | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Wilcox <wilcox.michael> |
Component: | New packages | Assignee: | Common Lisp Bugs <common-lisp> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | mabi |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Michael Wilcox
2006-11-24 15:46:06 UTC
Fails to compile here if the gprof use flag is set. Any thoughts on this from the lisp team? cp init_pre_gcl.lsp foo echo " (in-package \"USER\")(system:save-system \"saved_pre_gcl\")" >>foo /var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/unixport/raw_pre_gcl /var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/unixport/ -libdir /var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/ < foo Unrecoverable error: GBC is not enabled. /bin/sh: line 1: 20681 Aborted (core dumped) /var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/unixport/raw_pre_gcl /var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/unixport/ -libdir /var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/ <foo make[1]: *** [saved_pre_gcl] Error 134 rm raw_pre_gcl init_pre_gcl.lsp make[1]: Leaving directory `/var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/unixport' make: *** [unixport/saved_pre_gcl] Error 2 !!! ERROR: dev-lisp/gcl-2.6.7 failed. emerge --info: Portage 2.1.1-r2 (default-linux/ppc/ppc32/2006.1/G4, gcc-4.1.1, glibc-2.4-r4, 2. 6.17-gentoo-r8 ppc) ================================================================= System uname: 2.6.17-gentoo-r8 ppc 7447A, altivec supported Gentoo Base System version 1.12.6 Last Sync: Sat, 25 Nov 2006 11:30:01 +0000 distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-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" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect confcache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox" alloc_contblock() in o/alloc.c is requesting too much memory: /var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/unixport/raw_pre_gcl /var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/unixport/ -libdir /var/tmp/portage/gcl-2.6.7/work/gcl-2.6.7/ < foo allocating 1692584-byte contiguous block... allocating 1474723840-byte contiguous block... Unrecoverable error: GBC is not enabled. Debian's gcl 2.6.7-32 fails similarly when compiled on Gentoo ppc. If raw_pre_gcl is linked without -pg it does not fail. Contacted gcl-dev. They pointed to o/alloc.c #ifdef GCL_GPROF extern void *GCL_GPROF_START; long textpage=2*((void *)&etext-(void *)&GCL_GPROF_START)/PAGESIZE,t1=2*((void *)&etext-(void *)GCL_GPROF_START)/PAGESIZE; textpage=t1>0 && (textpage<0 || t1<textpage) ? t1 : textpage; #endif and GCL_GPROF_START which is defined in h/gclincl.h by configure as: #define GCL_GPROF_START _start Somehow that is causing confusion. Compiles 2.6.7-r2 here, but fails in the install phase with a segfault (and disrespects CFLAGS, forcing -O3): ---------------- cd /var/tmp/paludis/dev-lisp/gcl-2.6.7-r2/image//usr/lib/gcl-2.6.7/unixport && \ mv saved_gcl temp && \ echo '(reset-sys-paths "/usr/lib/gcl-2.6.7/")(si::save-system "saved_gcl")' | ./temp && \ rm -f temp GCL (GNU Common Lisp) 2.6.7 CLtL1 Feb 15 2007 13:55:24 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 /tmp/ > NIL >/bin/sh: line 3: 10183 Done echo '(reset-sys-paths "/usr/lib/gcl-2.6.7/")(si::save-system "saved_gcl")' 10184 Segmentation fault | ./temp make[1]: *** [install1] Error 139 make[1]: Leaving directory `/var/tmp/paludis/dev-lisp/gcl-2.6.7-r2/work/gcl-2.6.7' make: *** [install] Error 2 !!! ERROR in dev-lisp/gcl-2.6.7-r2: !!! In src_install at line 68 !!! (no message provided) ---------------- 2.6.7 does not even configure: ---------------- checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes -lSM -lICE checking for main in -lXmu... yes checking for main in -lXt... yes checking for main in -lXext... yes checking for main in -lXaw... yes checking for main in -lX11... yes ./configure: line 6962: syntax error near unexpected token `exit' ./configure: line 6962: `echo "${ECHO_T}cannot use bfd" >&6; } exit 1;' !!! ERROR in dev-lisp/gcl-2.6.7: !!! In econf at line 79 !!! econf failed ---------------- Portage 2.1.2-r9 (default-linux/ppc/ppc32/2006.1/G4, gcc-4.1.1, glibc-2.5-r0, 2.6.20-rc4-20070112 ppc) ================================================================= System uname: 2.6.20-rc4-20070112 ppc 7455, altivec supported Gentoo Base System release 1.12.9 Timestamp of tree: Wed, 14 Feb 2007 07:50:01 +0000 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 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.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -pipe" CHOST="powerpc-unknown-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" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks metadata-transfer sandbox sfperms sign strict userpriv usersandbox" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="en_US.utf8" LINGUAS="de en en_GB" MAKEOPTS="-j2" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X alsa altivec apache2 bash-completion bitmap-fonts bonobo bzip2 cdr cli cracklib crypt cups curl dlloader dri dvb dvd eds emboss encode firefox gif gpm gstreamer gtkhtml iconv imlib ipv6 isdnlog jpeg kde libg++ libwww mad midi mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl pic png ppc pppd python qt3 qt4 quicktime readline reflection samba sdl session slang spell spl ssl svg tcpd truetype truetype-fonts type1-fonts unicode vorbis xinerama xml xorg xv zlib zsh-completion" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS Lisp team? This one isn't ready for stabilization. 2.6.7: checking for main in -lXmu... yes checking for main in -lXt... yes checking for main in -lXext... yes checking for main in -lXaw... yes checking for main in -lX11... yes ./configure: line 6962: syntax error near unexpected token `exit' ./configure: line 6962: `echo "${ECHO_T}cannot use bfd" >&6; } exit 1;' 2.6.7-r1: * Applying flex-configure-LANG.patch ... * Failed Patch: flex-configure-LANG.patch ! * ( /usr/portage/dev-lisp/gcl/files/flex-configure-LANG.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/dev-lisp/gcl-2.6.7-r1/temp/flex-configure-LANG.patch-16579.out Seems to be fixed or simply worked around by dropping USE=gprof? in -r3. gcl still DOES NOT repect CFLAGS, though (no, that -mlongcall -O3 is not mine): [...] gcc -DNO_DEFUN -O2 -mtune=G4 -maltivec -mabi=altivec -pipe -Wall -DVOL=volatile -fsigned-char -pipe -mlongcall -O3 -fomit-frame-pointer -I/var/tmp/paludis/dev-lisp/gcl-2.6.7-r3/work/gcl-2.6.7/o -I../h -I../gcl-tk -E clxsocket.c | sed -e 's:\"[ ]*):\"):g' | ./grab_defs > clxsocket.ini [...] Is this intentional? However, nothing ppc specific, removing us from CC RESOLVED WONTFIX. This package is masked for many months. We may make an attempt to revive it, but not in the near future. You're free to reopen if you want. But as Marijn says: # Marijn Schouten <hkBst at gentoo dot org> (29 Jul 2009) # Masked for increasingly many problems. Upstream is flaky and hasn't released since 2005. # Maxima is the only consumer and can be built with sbcl or clisp. # Hopefully upstream will do a release that we can add to revive this package. dev-lisp/gcl |