When I try to emerge php-cvs to test php5, there is a dependency on re2c which doesn't compile on my system. The output is included in "Actual Results" Reproducible: Always Steps to Reproduce: 1. emerge re2c 2. 3. Actual Results: colin@notebook colin $ sudo emerge re2c Calculating dependencies ...done! >>> emerge (1 of 1) dev-util/re2c-0.9.1 to / >>> md5 src_uri ;-) re2c-0.9.1.tar.gz >>> Unpacking source... >>> Unpacking re2c-0.9.1.tar.gz to /var/tmp/portage/re2c-0.9.1/work * Applying 0.9.1-patch.gz... [ ok ]>>> Source unpacked. g++ -o code.o -march=pentium4 -O3 -pipe -fomit-frame-pointer -c code.cc g++ -o dfa.o -march=pentium4 -O3 -pipe -fomit-frame-pointer -c dfa.cc In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/backward/iomanip.h:31, from code.cc:4: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/backward/iostream.h:31, from substr.h:4, from dfa.cc:5: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. egrep "^Version" README | sed 's/Version //' > .version g++ -o parser.o -march=pentium4 -O3 -pipe -fomit-frame-pointer -c parser.cc In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/backward/iostream.h:31, from parser.y:4: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. g++ -o actions.o -march=pentium4 -O3 -pipe -fomit-frame-pointer -c actions.cc In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/backward/iostream.h:31, from actions.cc:3: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. re2c -s scanner.re >scanner.cc /bin/sh: line 1: re2c: command not found make: *** [scanner.cc] Error 127 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-util/re2c-0.9.1 failed. !!! Function src_compile, Line 28, Exitcode 2 !!! (no error message) Expected Results: It should have compiled and installed re2c colin@notebook colin $ sudo emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.2-rc1-mm2) ================================================================= System uname: 2.6.2-rc1-mm2 i686 Mobile Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo ftp://planetmirror.com/pub/gentoo ftp://203.16.234.19/pub/gentoo/ rsync://203.16.234.19/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa apache2 arts avi berkdb cdr crypt cups dga dvd dvdr encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png pnp postgres python quicktime readline sdl slang snmp spell ssl svga tcltk tcpd truetype x86 xml xml2 xmms xv zlib"
Weird, as it shouldn't try to recreate the scanner.cc file. Please post the output of 'ls /var/tmp/portage/re2c-0.9.1/work/re2c-0.9.1/'
colin@notebook colin $ sudo ls /var/tmp/portage/re2c-0.9.1/work/re2c-0.9.1/ actions.cc basics.h CHANGELOG code.o dfa.h doc globals.h main.cc NO_WARRANTY parser.h parser.y README scanner.cc scanner.re substr.h
Interesting. Is the clock on the machine calibrated? and by the way, this is surely not a blocker.
Also, does the scanner.re file contain anything?
Acknowledging the bug.
Okay, the problem is that re2c-0.9.1 is just too old, too broken, and doesn't work with a modern C compiler. I've updated the re2c-0.9.1 ebuild to add the later gcc compiler as a blocker. There's some work going on over at re2c.org on fixing up re2c, but they haven't made a release. Someone needs to talk to them, and sort something out. Best regards, Stu
don't mind me... i'll just lurk on this bug i feel partially responsible for unleashing re2c in bug 22110 ;)
Created attachment 29179 [details, diff] proposed patch to fix gcc 3.x issues
Sorry..borked on the attachment.. This fixes most of the gcc 3.x issues (just need to re-order the Makefile and touch a few headers).. I'll have a go at the rest once I've had some sleep 8) -Elfyn
Created attachment 32143 [details] New ebuild for 0.9.3 fron re2c.org The new version from http://re2c.org should compile cleanly.
Lisa seems to have commited the 0.9.3 ebuild three weeks ago, and it seems to compile cleanly on gcc 3.x (including 3.4.1 here). Closing then.