LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 7.4 in Fedora 19 C++ compiler not found error (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-4-in-fedora-19-c-compiler-not-found-error-4175487783/)

engineer 12-12-2013 08:11 PM

LFS 7.4 in Fedora 19 C++ compiler not found error
 
Since I like a challenge, I'm attempting to build LFS 7.4 in Fedora 19 x64.

Below is the code from the version-check script, after bringing the host into compliance by downloading a few packages.

I get stuck on Chapter 5.5, installing Glibc for the first time. After running 'make', I get an error stating that C++ compiler is not found or is not usable, and am unable to proceed further.

Another interesting point is that while I have all of the packages required by the book, the versions in some cases are not the latest required by the book even when using yum to install them. For example, Glibc is version 2.17, but the book recommends 2.18 or later. Any idea why when I try to install via yum it tells me my version 2.17 is already the latest?

Code:

bash, version 4.2.45(1)-release
/bin/sh -> /usr/bin/bash
Binutils: version 2.23.52.0.1-8.fc19 20130226
bison (GNU Bison) 2.6.4
/usr/bin/yacc -> /usr/bin/yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.5.11
GNU Awk 4.0.2
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.8.2 20131017 (Red Hat 4.8.2-1)
(GNU libc) 2.17
grep (GNU grep) 2.14
gzip 1.5
Linux version 3.9.5-301.fc19.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC) ) #1 SMP Tue Jun 11 19:39:38 UTC 2013
m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7.1
Perl version='5.16.3';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 5.1
xz (XZ Utils) 5.1.2alpha
gcc compilation OK


schneidz 12-12-2013 08:54 PM

maybe you need:
Code:

sudo yum install gcc-c++

mayur_ 12-13-2013 12:13 AM

Install build essentials maybe it'll help as it already contains c++ compiler

TobiSGD 12-13-2013 12:19 AM

Quote:

Originally Posted by engineer (Post 5079800)
Any idea why when I try to install via yum it tells me my version 2.17 is already the latest?

Because yum does not look on the developers website for a new version, but in the distro's repository. For Fedora 19 the latest version is 2.17 and this will very likely not change. Exchanging the glibc on a binary distribution is prone to failure and therefore very rarely happens. If you want a newer glibc you will have to go for Fedora 20.

Besides that, Fedora is not by default a good system to build LFS, have a look here: http://www.linuxquestions.org/questi...ed-4175485207/

engineer 12-13-2013 06:55 AM

I know, I saw the post, which is of course what made me want to try it. :) I've built it successfully a couple of times on F17 (LFS 7.1 though). I did also see that druuna was able to get along to at least Chapter 6 with no real issues. I tried installing gcc-c++ as suggested above, and received a different error this time (can't remember off the top of my head). Tonight I'll probably reinstall F19 and try again. If that doesn't work, maybe Arch or Slack is the next challenge!

TobiSGD 12-13-2013 09:36 AM

I don't know about Arch, but with Slackware you won't have any problems, it is compliant for building LFS out of the box.


All times are GMT -5. The time now is 02:14 PM.