LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 08-07-2008, 06:32 AM   #1
luckybtn
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Rep: Reputation: 15
gcc: c-parse.c: No such file or directory


hi,

i am geting this error message while installing SECTION-6.12. GCC-4.0.3 of book LFS-6.2 i made a separate directory for this package outside my source directory.
=====================================
root:/sources# mkdir -v ../gcc-build
root:/sources# cd ../gcc-build
=====================================

Prepare GCC for compilation:
=========================================================================
../gcc-4.0.3/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++
=========================================================================

BUT GETTING FOLLOWING ERROR MESSAGE IN MAKE:

========================================================================
gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wno-error -fomit-frame-pointer -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.0.3/gcc -I../../gcc-4.0.3/gcc/. -I../../gcc-4.0.3/gcc/../include -I../../gcc-4.0.3/gcc/../libcpp/include c-parse.c -o c-parse.o
gcc: c-parse.c: No such file or directory
gcc: no input files
make[1]: *** [c-parse.o] Error 1
make[1]: Leaving directory `/gcc-build/gcc'
make: *** [all-gcc] Error 2
========================================================================


now please tell me that what i have to do to prevent this error.

THANX
 
Old 08-08-2008, 07:05 PM   #2
gerald_M2B
Member
 
Registered: Oct 2007
Posts: 34

Rep: Reputation: 15
It looks to me that you were not following the book ??
You have a /sources directory, in which you should have untarred gcc-4.0.3
It is in directory /sources/gcc-4.0.3/ that you were to issue these commands:
mkdir -v ../gcc-build
cd ../gcc-build

Your post shows those were issued in /sources directory.

Gerald
 
Old 08-11-2008, 01:10 AM   #3
luckybtn
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Unhappy i have created the every directories in the source Directory...

Dear gerald_M2B,

i have untar the gcc in the source directory and then created the gcc-build directory in the source aswell.

but now i got the previous error once again... now please tell me what i ave to do now...

what & where i have done any of the mistake(s) ...

Please help me out my Friends....

THANX in Advance...!!!
 
Old 08-16-2008, 10:32 AM   #4
gregvs
LQ Newbie
 
Registered: Mar 2008
Location: Melbourne, Australia
Distribution: LFS 6.3
Posts: 6

Rep: Reputation: 0
luckybtn,

the lfs build process is similar for every package build, starting from within the sources directory.

0. cd /sources
1. tar -xvf package-version.tar.bz2
2. cd package-version
3. Follow the lfs book commands from HERE, ALWAYS!
Some packages MUST be built outside the package directory, therefore the command ..
mkdir -v ../package-build
cd ../package-build
Most packages are built from within the package-version directory so you would still be there...
4. Now ./configure..., make..., make install or whatever the commands are in the book
5. cd .. back to sources
6. rm -r package-version and if necessary rm -r package-build.
7. done ;-)

Always remove the old package directories to keep the process clean. Keep the tar-balls as they may be needed again

The commands listed in the book are only for steps 3 and 4. The book avoids repetition of the basic steps as this is described in preceding text and those familiar with the process only wish to focus on the important commands.

Once you understand the steps the book will make sense and you can then have fun!
gregvs
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to execute gcc: No such file or directory lies Linux - Kernel 10 06-26-2008 02:06 PM
gcc: ./remote-@REMOTE@.c: No such file or directory gcc: no input files pracslipkerm Linux - Newbie 3 06-15-2005 07:09 AM
gcc: installation problem, cannot exec `cc1': No such file or directory natsirc Linux - General 3 11-11-2004 10:26 AM
gcc: No such file or directory babysealclubber Linux From Scratch 5 01-31-2004 09:43 AM
gcc: No such file or directory babysealclubber Linux - Software 2 01-22-2004 04:03 PM


All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
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