Problems compiling gcc

If, when compiling gcc, it dies with the following error:

gcc: c-parse.c: No such file or directory

Here is the (wonderfully non-obvious) solution:

  1. Download m4 from prep.ai.mit.edu and compile/install that
  2. Download bison from prep.ai.mit.edu and compile/install that
  3. The problem will be fixed

The problem is that gcc now either requires bison to compile (and conviniently doesn't tell you that,) or that for some reason, it chooses bison over yacc when you don't have bison.

This is a single entry from the Journal The Uniqueness that is my Life


Comments

Kithsiri
unverified user
18 Jul 2006
Samething happend to me i am compiling GCC 3.4.6 for AIX 5.2 machine.
I got the same error and when i installed bison it was vanished.
Thank you for your information.
 



Copyright 1995-2007 Darren G. Holloway darren@mambo.net
This page created 2006-06-15 16:00:03