LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-06-2018, 11:36 AM   #1
iambrj
LQ Newbie
 
Registered: Aug 2018
Posts: 16

Rep: Reputation: Disabled
step 5.10 gcc/limitx.h gcc/glimits.h gcc/limity.h no such file or directory


In step 5.10 when I run
Code:
cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
> `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/include-fixed/limits.h
I get
Code:
cat: gcc/limitx.h: No such file or directory
cat: gcc/glimits.h: No such file or directory
cat: gcc/limity.h: No such file or directory
version_check.sh output
Code:
bash, version 4.4.19(1)-release
/bin/sh -> /usr/bin/bash
Binutils: (GNU Binutils) 2.30
bison (GNU Bison) 3.0.4
yacc is bison (GNU Bison) 3.0.4
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.29
diff (GNU diffutils) 3.6
find (GNU findutils) 4.6.0
GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.1, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 7.3.0
g++ (GCC) 7.3.0
(GNU libc) 2.27
grep (GNU grep) 3.1
gzip 1.9
Linux version 4.16.11-1-ARCH (builduser@heftig-1505) (gcc version 8.1.0 (GCC)) #1 SMP PREEMPT Tue May 22 21:40:27 UTC 2018
m4 (GNU M4) 1.4.18
GNU Make 4.2.1
GNU patch 2.7.6
Perl version='5.26.2';
sed (GNU sed) 4.5
tar (GNU tar) 1.30
texi2any (GNU texinfo) 6.5
xz (XZ Utils) 5.2.4
g++ compilation OK
$LFS_TGT is set to x86_64-lfs-linux-gnu
How can I fix this issue?

Last edited by iambrj; 08-06-2018 at 11:38 AM.
 
Old 08-06-2018, 12:19 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,500
Blog Entries: 1

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
I would say something is wrong with this build
is "tools/include/limits.h" there?
 
Old 08-06-2018, 01:02 PM   #3
iambrj
LQ Newbie
 
Registered: Aug 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
Yes, tools/include/limits.h is present
 
Old 08-06-2018, 01:38 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,500
Blog Entries: 1

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
No should of been limtx.h and glimits.h limity.h
see if you can find those
 
Old 08-06-2018, 02:56 PM   #5
iambrj
LQ Newbie
 
Registered: Aug 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
No, those are missing.

What should I do?
 
Old 08-06-2018, 03:31 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,500
Blog Entries: 1

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
You had issues with glibc I would start over again, if those are missing it's it wont work
 
Old 08-06-2018, 05:27 PM   #7
iambrj
LQ Newbie
 
Registered: Aug 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
Re-compiling all the packages from the beginning does not solve the issue.

Even after re-compiling, I'm still getting
Code:
cat gcc/limitx.h gcc/glimits.h gcc/limity.h > `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/include-fixed/limits.h
cat: gcc/limitx.h: No such file or directory
cat: gcc/glimits.h: No such file or directory
cat: gcc/limity.h: No such file or directory
glibc gave no errors.

However, I got the following warning when compiling binutils pass 2
Code:
ldlex.l:427:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from ../../ld/ldlex-wrapper.c:26:0:
ldlex.c: In function 'yy_scan_bytes':
ldlex.c:4009:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Last edited by iambrj; 08-06-2018 at 05:29 PM.
 
Old 08-07-2018, 11:22 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,500
Blog Entries: 1

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
iambrj Are you in the untarred gcc dir? when you run that command
 
  


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
[SOLVED]Step 5.10 GCC 4.9.2 - No Such File Or Directory Jon Wilder Linux From Scratch 3 07-22-2015 09:47 PM
LXer: GCC 4.9 vs. GCC 5.1 vs. GCC 6.0 SVN Compiler Benchmarks LXer Syndicated Linux News 0 06-08-2015 01:00 PM
[SOLVED] chapter 5.5 building gcc cannot find gcc directory sfzombie13 Linux From Scratch 14 04-16-2014 07:31 PM
error 396, on a variable (gcc), learning GCC step by step frenchn00b Programming 2 09-11-2009 01:03 PM
gcc: ./remote-@REMOTE@.c: No such file or directory gcc: no input files pracslipkerm Linux - Newbie 3 06-15-2005 06:09 AM

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

All times are GMT -5. The time now is 11:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration