Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43449 - compile error building re2c dependency in php-cvs
Summary: compile error building re2c dependency in php-cvs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-02 00:44 UTC by Colin Daly
Modified: 2004-07-31 08:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch to fix gcc 3.x issues (gcc3ify-pass5.patch,7.71 KB, patch)
2004-04-12 20:21 UTC, Beu
Details | Diff
New ebuild for 0.9.3 fron re2c.org (re2c-0.9.3.ebuild,629 bytes, text/plain)
2004-05-27 06:48 UTC, Jeremias Reith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Daly 2004-03-02 00:44:35 UTC
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"
Comment 1 Tal Peer (RETIRED) gentoo-dev 2004-03-03 10:55:09 UTC
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/'
Comment 2 Colin Daly 2004-03-03 15:53:49 UTC
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  
Comment 3 Tal Peer (RETIRED) gentoo-dev 2004-03-05 15:07:41 UTC
Interesting.
Is the clock on the machine calibrated?

and by the way, this is surely not a blocker.
Comment 4 Tal Peer (RETIRED) gentoo-dev 2004-03-15 05:51:51 UTC
Also, does the scanner.re file contain anything?
Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2004-03-28 16:39:08 UTC
Acknowledging the bug.
Comment 6 Stuart Herbert (RETIRED) gentoo-dev 2004-03-29 11:35:15 UTC
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
Comment 7 Lisa Seelye (RETIRED) gentoo-dev 2004-04-09 21:13:50 UTC
don't mind me... i'll just lurk on this bug

i feel partially responsible for unleashing re2c in bug 22110 ;)
Comment 8 Beu 2004-04-12 20:21:00 UTC
Created attachment 29179 [details, diff]
proposed patch to fix gcc 3.x issues
Comment 9 Beu 2004-04-12 20:24:30 UTC
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
Comment 10 Jeremias Reith 2004-05-27 06:48:50 UTC
Created attachment 32143 [details]
New ebuild for 0.9.3 fron re2c.org

The new version from http://re2c.org should compile cleanly.
Comment 11 Tal Peer (RETIRED) gentoo-dev 2004-07-31 08:01:54 UTC
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.