LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-06-2010, 12:08 AM   #1
pradheep2
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Cool I am getting an error as gcc: c-parse.c: No such file or directory


I need clarification to the following error message of gcc in Fedora 13
gcc: c-parse.c: No such file or directory

Which gcc version has this file and does gcc-3.4 support the same. What gcc version should I use and how to upgrade the same in Fedora 13
 
Old 06-06-2010, 12:24 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Uh - this error has nothing to do with "upgrades".

You need to find "c-parse.c".

And then tell gcc where to find it
 
Old 06-06-2010, 04:20 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,981

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
Welcome to LQ.

"c-parse.c" : A parser file ? Bison, Yacc, xml-parser ?

Google .. "c-parse.c" ..

Examples
http://www.microchip.com/forums/printable.aspx?m=416697
"It is supposed to be generated by bison from $SRCDIR/gcc"

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18162
..
 
Old 06-06-2010, 01:55 PM   #4
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
knudfl -

Good call.

But we want to make sure the OP doesn't get confused:

1. The problem is that "gcc" can't find the source file "c-parse.c".

2. I thought maybe it was in another directory.
You suggested that maybe it wasn't even created yet.
Either could be true.

3. But the OP thought that it was somehow part of "gcc", and that upgrading gcc might solve the problem.

Pradheep2 -

You CANNOT solve the problem by "upgrading" gcc.

You must FIND (or create!) "c-parse.c".
 
Old 06-07-2010, 11:13 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,981

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
Examples , "c-parse.c" : The gcc source code ..

1) gcc-3.3.3/gcc/c-parse.c c-parse.in c-parse.y
2) gcc-3.4.6 : the same as 1).
3) gcc-4.2.0/gcc/c-parser.c

Are you trying to compile an old gcc ?
No bison or yacc ? Or using a wrong version of gcc,
may be. The first example gcc-3.3.3 requires e.g.
gcc-3.3.6 to compile. No go with gcc-3.4.6 .
And gcc-3.2.x : Not possible to compile on a modern
Linux. AFAIK.
..
# yum install gcc-c++ compat-gcc-34-c++
.. will provide the gcc-4.4.4 and gcc-3.4.6 compilers in Fedora 13.
All versions can be installed at the same time !
..

Last edited by knudfl; 06-07-2010 at 02:53 PM.
 
Old 06-12-2010, 05:13 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,981

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
.. And furthermore, packages with the most other compat gcc / g++
are available too for Fedora 13 ...
These are, what I have installed in Fedora 10 - 11 - 12 - 13 :

gcc33 / gcc33-c++ : version 3.3.3
and gcc41 / gcc41-c++ : 4.1.x ( Both versions are Suse compat )

gcc3.3 / gcc3.3-c++ : 3.3.6 ( PCLinuxOS compat )

So there is usually no need for compiling a new gcc.
..

Last edited by knudfl; 06-15-2010 at 02:54 AM.
 
  


Reply

Tags
directory, file, gcc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc: error trying to exec 'cc1plus': execvp: No such file or directory- Fedora 10 AtmoHawk03 Linux - Newbie 5 09-17-2013 12:25 PM
gcc error: iostream: no such file or directory linux 4.1.2 Liah Linux - Newbie 1 03-10-2009 10:53 AM
gcc: c-parse.c: No such file or directory luckybtn Linux From Scratch 3 08-16-2008 09:32 AM
gcc: installation problem, cannot exec `as': No such file or directory ERROR jaisol Slackware 8 08-05-2006 12:01 PM
in gcc compiler error: parse error before string constsnt cynthia_thomas Linux - Networking 1 10-20-2005 01:29 AM


All times are GMT -5. The time now is 07:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration