LinuxQuestions.org
Review your favorite Linux distribution.
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 09-01-2016, 03:12 PM   #1
dpaarup
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Rep: Reputation: Disabled
Compilation error in GCC pass one of LFS book


Hi, I hope you can help me with this issue:

I am running 4.7.2-1-ARCH 64bits and all the host requirements are met, except the three libraries .la (although I don't think this should be an issue, as these libraries are included and built with GCC when following the book's instructions). I get the following error when running the make command in pass 1 of GCC:

In file included from ./tm.h:27:0,
from ../../gcc/cp/friend.c:23:
../../gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
^
../../gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
In file included from ../../gcc/cp/except.c:1023:0:
cfns.gperf: In function 'const char* libc_name_p(const char*, unsigned int)':
cfns.gperf:101:1: error: 'const char* libc_name_p(const char*, unsigned int)' redeclared inline with 'gnu_inline' attribute
cfns.gperf:26:14: note: 'const char* libc_name_p(const char*, unsigned int)' previously declared here
In file included from ./tm.h:48:0,
from ../../gcc/cp/friend.c:23:
../../gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
cfns.gperf: At global scope:
cfns.gperf:26:14: warning: inline function 'const char* libc_name_p(const char*, unsigned int)' used but never defined
make[2]: *** [Makefile:1065: cp/except.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gcc.pod
make[2]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build/gcc'
make[1]: *** [Makefile:4105: all-gcc] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build'
make: *** [Makefile:859: all] Error 2

Thanks in advance!
 
Old 09-01-2016, 03:18 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
ok arch is to new to build lfs-7.9, try building lfs-7.10
http://www.linuxfromscratch.org/lfs/view/7.10-rc1/

"GCC-4.7 including the C++ compiler, g++ (Versions greater than 5.3.0 are not recommended as they have not been tested) " from host system requirments

Last edited by spiky0011; 09-01-2016 at 03:22 PM.
 
1 members found this post helpful.
Old 09-01-2016, 03:23 PM   #3
end
Member
 
Registered: Aug 2016
Posts: 266

Rep: Reputation: Disabled
re

hi

i run arch as primary os, and first time i got similar issue in gcc, searching i found a lot dep missing you need install headers for arch.equivalent for 'build essential' in debian. i didnt want bother whit this in arch, beacouse you need to install bunch of staff to have all deps sadisficte. i installed debian in qemu, after install only install build-essential and it will work.
 
Old 09-02-2016, 03:07 PM   #4
dpaarup
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Okay, I will give 7.10 a shot then. Thanks!
 
  


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
[SOLVED] Compilation error in GCC Pass 1 ethervoid Linux From Scratch 3 12-16-2014 03:23 PM
[SOLVED] LFS: Error during GCC-4.7.1-Pass 1 (LFS 7.2, Section 5.5) erkant Linux From Scratch 7 11-28-2012 06:03 AM
[SOLVED] lfs 6.7 book ch 5.4 binutils 2.20.1 pass 1 error:error: ppl_c.h: No such file or directory frank zhu Linux From Scratch 6 03-04-2011 11:23 AM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM

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

All times are GMT -5. The time now is 02:10 AM.

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