LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-29-2013, 09:33 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Gcc error building tools on 7.4.rc1 chapter 5.10. GCC-4.8.1 - Pass 2


Got an error building the second pass of gcc
Code:
make[2]: Entering directory `/media/LFSZen/sources/gcc-build/gcc'
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ../../gcc-4.8.1/gcc/mkconfig.sh config.h
TARGET_CPU_DEFAULT="" \
HEADERS="options.h insn-constants.h config/vxworks-dummy.h config/i386/biarch64.h config/i386/i386.h config/linux-android.h config/i386/unix.h config/i386/att.h config/dbxelf.h config/elfos.h config/gnu-user.h config/glibc-stdint.h config/i386/x86-64.h config/i386/gnu-user-common.h config/i386/gnu-user64.h config/linux.h config/i386/linux-common.h config/i386/linux64.h config/initfini-array.h defaults.h" DEFINES="LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 DEFAULT_LIBC=LIBC_GLIBC ANDROID_DEFAULT=0" \
/bin/sh ../../gcc-4.8.1/gcc/mkconfig.sh tm.h
gawk -f ../../gcc-4.8.1/gcc/opt-gather.awk ../../gcc-4.8.1/gcc/ada/gcc-interface/lang.opt ../../gcc-4.8.1/gcc/fortran/lang.opt ../../gcc-4.8.1/gcc/go/lang.opt ../../gcc-4.8.1/gcc/java/lang.opt ../../gcc-4.8.1/gcc/lto/lang.opt ../../gcc-4.8.1/gcc/c-family/c.opt ../../gcc-4.8.1/gcc/common.opt ../../gcc-4.8.1/gcc/config/fused-madd.opt ../../gcc-4.8.1/gcc/config/i386/i386.opt ../../gcc-4.8.1/gcc/config/gnu-user.opt ../../gcc-4.8.1/gcc/config/linux.opt ../../gcc-4.8.1/gcc/config/linux-android.opt > tmp-optionlist
/bin/sh ../../gcc-4.8.1/gcc/../move-if-change tmp-optionlist optionlist
echo timestamp > s-options
gawk -f ../../gcc-4.8.1/gcc/opt-functions.awk -f ../../gcc-4.8.1/gcc/opt-read.awk \
       -f ../../gcc-4.8.1/gcc/opth-gen.awk \
       < optionlist > tmp-options.h
/bin/sh ../../gcc-4.8.1/gcc/../move-if-change tmp-options.h options.h
echo timestamp > s-options-h
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ../../gcc-4.8.1/gcc/mkconfig.sh bconfig.h
x86_64-lfs-linux-gnu-g++ -c -fomit-frame-pointer  -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.8.1/gcc -I../../gcc-4.8.1/gcc/build -I../../gcc-4.8.1/gcc/../include -I../../gcc-4.8.1/gcc/../libcpp/include -I/media/LFSZen/sources/gcc-build/./gmp -I/media/LFSZen/sources/gcc-4.8.1/gmp -I/media/LFSZen/sources/gcc-build/../gcc-4.8.1/mpfr/src -I/media/LFSZen/sources/gcc-4.8.1/mpc/src  -I../../gcc-4.8.1/gcc/../libdecnumber -I../../gcc-4.8.1/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc-4.8.1/gcc/../libbacktrace    \
	-o build/genconstants.o ../../gcc-4.8.1/gcc/genconstants.c
In file included from ../../gcc-4.8.1/gcc/genconstants.c:28:0:
../../gcc-4.8.1/gcc/system.h:205:20: fatal error: cstring: No such file or directory
 # include <cstring>
                    ^
compilation terminated.
make[2]: *** [build/genconstants.o] Error 1
make[2]: Leaving directory `/media/LFSZen/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/media/LFSZen/sources/gcc-build'
make: *** [all] Error 2
Version check is
Code:
bash, version 4.2.42(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.23.1
bison (GNU Bison) 2.7
/usr/bin/yacc -> /usr/bin/yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.21
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 4.0.2
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.7.2
g++ (GCC) 4.7.2
(GNU libc) 2.17
grep (GNU grep) 2.14
gzip 1.5
Linux version 3.4.47 (root@LFSColossus) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Wed Jul 10 19:58:50 BST 2013
m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7.1
Perl version='5.16.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 5.0
xz (XZ Utils) 5.0.4
g++ compilation OK
I'm building on LFS7.3

I've turned off all optimizations and am building as a normal user in a real partition.

Tried googling this but there seems to be very little info on this error any ideas?
 
Old 08-29-2013, 10:09 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Dumb,dumb,dumb!

I went over the code 3 times and I still missed my mistake would you believe I forgot to install libstdc++-v3 I configured it and made it but didn't run make install, what a newb mistake!!

I am posting this sat in a corner with a dunces cap on, somebody spank me!
 
Old 08-29-2013, 11:08 AM   #3
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 dont believe you put version-check up there.
 
Old 08-29-2013, 11:30 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Just trying to set a good example!
 
  


Reply

Tags
cstring, gcc-4.8.1, lfs error



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] CC pass 2: configure: error: Building GCC requires GMP,… zajca Linux From Scratch 4 05-18-2011 05:43 AM
LFS 6.6 - Chapter 5.5 - make[2]: *** [buildgetconstants.o] Error 1 - GCC Pass 1 malikcpp Linux From Scratch 3 06-29-2010 08:09 AM
Error GCC - pass 2 [Chapter 5.10] manya Linux From Scratch 1 09-06-2009 01:42 AM
Chapter 5, GCC pass 1: compile failure Electrode Linux From Scratch 0 08-16-2003 07:31 PM

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

All times are GMT -5. The time now is 02:45 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