Menu

#1 Compile errors (bison) on MacOS X and FBSD

open
nobody
None
5
2004-04-01
2004-04-01
Anonymous
No

At bottom is versioning question (2.5 > 2.10?).
Notes about issues with bison errors on OS X (bison
1.29) and FreeBSD 5.2.1 (bison 1.75).

Well, I found this tool March 29, 2uhoh4 at
http://www.math.ohio-state.edu/~alden/ocelot/compiler.html
and pulled down "2.10b4.tar.gz" (beta 4 of 2.10?) dated
May 28, 2002. (22 months ago).

It compiled up on a Mac OS 10.3 (current sub updates).

Seemed to work - it compiled fine. It compiled the
test files just fine into .pgm files. (haven't loaded
to the ocelot).

It also compiles fine on Mac OS 10.2 (another laptop).
(bison 1.28 on 10.2 and 10.3).

The bison phase utterly failed on FreeBSD 5.2.1.
(bison 1.75 (more below))

Nifty.
-------------------------------------------
Now, I go to http://oclc.sf.net and download the
"newer" version - 2.5b1 (version 2.5 beta 1, which
appears updated to the 2.10 version I previously had.
My head hurts on versioning.

On all the machines (mac 10.3/10.2 and FreeBSD 5.21),
it utterly fails in the bison.

Aha! Using yacc, it works just fine.

So 2 questions:
1) versioning. 2.10 appears to be older than 2.5.
If there's a fork, can it get an altered name?

2) Anyone else seeing bison parsing issues?

And if you're failing on that, run
make
byacc -d oclc.y
make

and all is fine (or mv bison before ./configure).

Discussion


Log in to post a comment.

MongoDB Logo MongoDB