bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling bison-3.0 on AIX 5.3


From: Michael Felt
Subject: Re: compiling bison-3.0 on AIX 5.3
Date: Sat, 24 Aug 2013 13:47:40 +0200

The chance the perl is older than 5.8.7 is very high. This is a version of
AIX anno 2007.
Is perl 5.8.7+ needed during the use of bison, or only for the make. I am
attempting to have a version packaged that will go back in time as much as
possible.

oslevel -s:5300-07-01-0748
perl -v:
This is perl, v5.8.2 built for aix-thread-multi
(with 3 registered patches, see perl -V for more detail)

Tried setting the environment myself (hoping...)
address@hidden:[/]cd /data/prj/gnu/bison-3.0
address@hidden:[/data/prj/gnu/bison-3.0]USE_SITECUSTOMIZE=0
address@hidden:[/data/prj/gnu/bison-3.0]export USE_SITECUSTOMIZE=0
address@hidden:[/data/prj/gnu/bison-3.0]make

  GEN      examples/extracted.stamp
Unrecognized switch: -f  (-h will show valid options).
make: 1254-004 The error code from the last command is 255.


Stop.
address@hidden:[/data/prj/gnu/bison-3.0]export USE_SITECUSTOMIZE=1
address@hidden:[/data/prj/gnu/bison-3.0]make

  GEN      examples/extracted.stamp
Unrecognized switch: -f  (-h will show valid options).
make: 1254-004 The error code from the last command is 255.

address@hidden:[/data/prj/gnu/bison-3.0]make V=1
        rm -f examples/extracted.stamp examples/extracted.stamp.tmp
        touch examples/extracted.stamp.tmp
        VERSION="3.0" /usr/bin/perl -f ./examples/extexi ./doc/bison.texi
-- examples/calc++/calc++-driver.cc
examples/calc++/calc++-driver.hh
examples/calc++/calc++-scanner.ll
examples/calc++/calc++.cc
examples/calc++/calc++-parser.yy
examples/mfcalc/calc.h                         examples/mfcalc/mfcalc.y
examples/rpcalc/rpcalc.y

Unrecognized switch: -f  (-h will show valid options).
make: 1254-004 The error code from the last command is 255.


Stop.


So, I conclude your suspicions are correct. Now how to correct?


On Fri, Aug 23, 2013 at 9:17 PM, Paul Eggert <address@hidden> wrote:

> On 08/23/13 06:43, Michael Felt wrote:
> > Willing to test, but I have no clue where this is coming from, nor why.
>
> Looks like perl wasn't configured properly somehow.
> You can start debugging by running 'make V=1'.
>
> My guess is that you are using a Perl that is
> older than 5.8.7 and for which USE_SITECUSTOMIZE
> was not defined when Perl was built.  Perhaps
> Bison's configure.ac should detect this issue
> and refuse to use Perl in this situation; or
> Bison could simply not pass -f to Perl.  Please
> see:
>
> http://www.gossamer-threads.com/lists/perl/porters/193607
>
> http://lists.gnu.org/archive/html/bug-coreutils/2009-03/msg00269.html
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]