LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-22-2015, 12:13 PM   #1
Jon Wilder
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Rep: Reputation: Disabled
[SOLVED]Step 5.10 GCC 4.9.2 - No Such File Or Directory


Hi all. New to the forum and primarily run Gentoo as my main distribution, but decided to try my hand at an LFS build. The machine is running Gentoo for the host system and I'm logged in as the lfs user. I have also cd'ed into the /mnt/lfs/sources/gcc-4.9.2 directory.

Machine specs (yes it's an old beater system...just using it as my "guinea pig" home server) -

32-bit system
Via C7 Processor
512MB RAM
Gentoo installed on /dev/sda1
LFS build on /dev/sdb1

On step 5.10 GCC 4.9.2 pass 2, there is a step that states to type -

Code:
lfs@Lean-Server /mnt/lfs/sources/gcc-4.9.2 $ cat gcc/limitx.h gcc/limits.h gcc/limity.h > \
   'dirname $($LFS_TGT-gcc -print-libgcc-file-name)'/include-fixed/limits.h
On my system, executing this returns -

Code:
bash: dirname $($LFS_TGT-gcc -print-libgcc-file-name)/include-fixed/limits.h: No such file or directory
Echo'ing the following environment variables returns -

Code:
lfs@Lean-Server /mnt/lfs/sources/gcc-4.9.2 $ echo $LFS_TGT
i686-lfs-linux-gnu
lfs@Lean-Server /mnt/lfs/sources/gcc-4.9.2 $ echo $LFS
/mnt/lfs
What could be causing this issue?

Last edited by Jon Wilder; 07-22-2015 at 09:47 PM.
 
Old 07-22-2015, 12:34 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

I would try rebuilding it again, Also copy and paste the commands as there is a mistake it what you posted
cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \


gcc/limits.h
 
Old 07-22-2015, 12:48 PM   #3
Jon Wilder
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi

I would try rebuilding it again, Also copy and paste the commands as there is a mistake it what you posted
cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \


gcc/limits.h
Thanks for catching that mistake! I actually typed it exactly as shown.

Now since correcting it, it returns -

Code:
lfs@Lean-Server /mnt/lfs/sources/gcc-4.9.2 $ cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
   'dirname $($LFS_TGT-gcc -print-libgcc-file-name)'/include-fixed/limits.h
bash: dirname $($LFS_TGT-gcc -print-libgcc-file-name)/include-fixed/limits.h: Not a directory
When I echo $($LFS_TGT-gcc -print-libgcc-file-name), it returns -

Code:
lfs@Lean-Server /mnt/lfs/sources/gcc-4.9.2 $ echo $($LFS_TGT-gcc -print-libgcc-file-name)
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.2/libgcc.a
Which clearly is a file and not a directory. Am I on to something or...?

Last edited by Jon Wilder; 07-22-2015 at 12:50 PM.
 
Old 07-22-2015, 09:47 PM   #4
Jon Wilder
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Nevermind I figured it out. I mistook the back ticks for single quotes. Whoops. Should've had -

Code:
lfs@Lean-Server /mnt/lfs/sources/gcc-4.9.2 $ cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
   `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/include-fixed/limits.h
Not

Code:
lfs@Lean-Server /mnt/lfs/sources/gcc-4.9.2 $ cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
   'dirname $($LFS_TGT-gcc -print-libgcc-file-name)'/include-fixed/limits.h
Continuing on...

Last edited by Jon Wilder; 07-22-2015 at 10:05 PM.
 
  


Reply



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
gcc will not execute, responds with 'no such file or directory' and 'no input file' nckeecho Ubuntu 9 07-24-2016 01:04 PM
[SOLVED] On step 5.10, No such file or directory Fryndr Linux From Scratch 11 06-15-2014 06:13 PM
stdio.h: No such file or directory. file is missing during gcc complile. culser Linux - Software 4 03-03-2011 01:59 PM
error 396, on a variable (gcc), learning GCC step by step frenchn00b Programming 2 09-11-2009 01:03 PM
Stuck at step 6.7: bash: /tools/bin/make: No such file or directory Renan_S2 Linux From Scratch 7 03-01-2009 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:48 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
Open Source Consulting | Domain Registration