It happens in the compilation.
Steps to Reproduce:
1. gcc-config to gcc4.4
2. emerge -1 =dev-lisp/clisp-2.47-r1
It fails in compilation
Portage 18.104.22.168 (default/linux/x86/2008.0, gcc-4.4.1-pre9999, glibc-2.9_p20081201-r2, 2.6.28-gentoo i686)
System uname: Linux-2.6.28-gentoo-i686-Mobile_Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.0.0
Timestamp of tree: Sat, 25 Apr 2009 09:00:01 +0000
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python: 2.5.4-r2, 2.6.2
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -floop-block -floop-interchange -floop-strip-mine -fgraphite "
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -floop-block -floop-interchange -floop-strip-mine -fgraphite "
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LINGUAS="fr fr_FR en en_US"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/ion-overlay /usr/local/portage/layman/sunrise /usr/local/portage/layman/science /usr/local/portage/layman/timharder-overlay /usr/local/portage/layman/gcc-porting"
USE="X acl alsa berkdb bzip2 cdr cli cracklib crypt cups custom-cflags cxx dri dvd fftw fortran gdbm gpm graphite gtk iconv ipv6 isdnlog jpeg midi mudflap ncurses nls nptlonly openmp pam pcre perl png pppd python readline reflection ruby session skey spl sse sse2 ssl sysfs tcl tcpd threads tk unicode utf8 x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR en en_US" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 189713 [details]
The build.log file
Created attachment 189715 [details, diff]
My solution, and it compiles fine
Patch works fine.
This should be fixed in 2.48
Yes, but stable is 2.47, and gcc-4.4 has just gone stable too. Please, reopen.
(In reply to comment #6)
> Yes, but stable is 2.47, and gcc-4.4 has just gone stable too. Please, reopen.
Hit that too, reopening.
Confirmed. I have just upgraded to GCC 4.4 stable and dev-lisp/clisp-2.47-r1 fails to compile. For search purposes, I quote the exact error message:
gcc -Igllib -O2 -march=native -msse3 -mfpmath=sse -pipe -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O -falign-functions=4 -DUNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -c time.c
../src/time.d:305:19: error: token "=" is not valid in preprocessor expressions
make: *** [time.o] Error 1
* ERROR: dev-lisp/clisp-2.47-r1 failed:
* emake failed
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 2736: Called die
* The specific snippet of code:
* emake -j1 || die "emake failed"
* If you need support, post the output of 'emerge --info =dev-lisp/clisp-2.47-r1',
* the complete build log and the output of 'emerge -pqv =dev-lisp/clisp-2.47-r1'.
* The complete build log is located at '/var/tmp/portage/dev-lisp/clisp-2.47-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lisp/clisp-2.47-r1/temp/environment'.
* S: '/var/tmp/portage/dev-lisp/clisp-2.47-r1/work/clisp-2.47'
The problem is an incorrect preprocessor expression in the src/time.d file, line 305, as indicated by GCC. There's a simple typo, a = that should be a ==. GCC 4.1 was kind enough to let it slip, but GCC 4.4 is strict and complains about the error.
J. Benoist Leger's patch is correct and fixes the problem. It is a trivial patch for a trivial problem caused by a typo. Please apply this patch ASAP since as it stands now, dev-lisp/clisp stable won't compile with sys-devel/gcc stable.
(In reply to comment #7)
> (In reply to comment #6)
> > Yes, but stable is 2.47, and gcc-4.4 has just gone stable too. Please, reopen.
> Hit that too, reopening.
don't do that, open stablereq's if needed...
I think this should really be RESOLVED WONTFIX... This bug is specifically about dev-lisp/clisp-2.47-r1, and the decision was to not fix that version because 2.48 is out.
I understand that there may not be much interest in fixing 2.47-r1 since 2.48 is already stable, but at the very least, dev-lisp/2.47-r1 should be keyworded... right now dev-lisp/2.47-r1 is marked stable, and it does *not* compile with stable gcc! That is a very big no no.
(In reply to comment #9)
> don't do that, open stablereq's if needed...
(In reply to comment #10)
> I think this should really be RESOLVED WONTFIX... This bug is specifically
> about dev-lisp/clisp-2.47-r1, and the decision was to not fix that version
> because 2.48 is out.
> I understand that there may not be much interest in fixing 2.47-r1 since 2.48
> is already stable, but at the very least, dev-lisp/2.47-r1 should be
> keyworded... right now dev-lisp/2.47-r1 is marked stable, and it does *not*
> compile with stable gcc! That is a very big no no.
Erm, I obviously meant dev-lisp/clisp-2.47-1 in my previous comment; sorry.