[haiku-development] Re: Buildbot woes of gcc2 (on FreeBSD)

  • From: Niels Sascha Reedijk <niels.reedijk@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 15 Nov 2011 08:22:25 +0100

Hi,

On Tue, Nov 15, 2011 at 6:55 AM, Felipe Villarroel
<fvillarroel.udec@xxxxxxxxx> wrote:
> Hello to everyone,
>
> On Sun, Nov 6, 2011 at 9:33 AM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
>>> With Urias's help, we've been testing building gcc2 on linux mint, but
>>> that seems to run into its own issues[2]. Oddly, if he runs the build
>>> as a normal person would, it builds successfully. :|
>>
>> Just from the error code I would guess that it's an incompatiblity of the old
>> grammar file (parse.y) with a newer bison version. This kind of problem --
>> i.e. the sources being so old that newer tools become incompatible -- is
>> something we've seen in various incarnations already and I'm afraid it isn't
>> going to be better.
>
> I don't know if this was solved but recently I was trying to build
> Haiku on Lubuntu 11.10 and I got the same building problem. I solved
> it using an old Bison version.
> To be precise, 1.28 from here http://ftp.gnu.org/gnu/bison/bison-1.28.tar.gz
>
> Maybe it should be included with the buildtools?

A fix is underway. In the mean time do:

touch legacy/gcc/gcc/cp/parse.h
touch legacy/gcc/gcc/cp/parse.c

in order to prevent the build from trying to run bison.

It has to do with the order in which git creates the files. In
Subversion the files got different timestamps, that's why bison was
never called.

Regards,

N>

Other related posts: