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 05-19-2018, 01:43 AM   #1
SamHep0803
LQ Newbie
 
Registered: May 2018
Posts: 1

Rep: Reputation: Disabled
Unhappy GCC 7.3.0 will not compile, even with everything correct in version-check.sh.


I'm trying to compile GCC 7.3.0 as stated in 5.5 in the LFS book. The error messages I am getting is as stated in this hastebin as well as my version-check.sh output.

Here: https://hastebin.com/yefamukosa.go

Thank you for taking your time to read this.
 
Old 05-19-2018, 06:57 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Just a thought: The book says gcc-4.7 or later, not sure it means a gcc with 192 changes.
I.e. the Debian compiler gcc-5 used by Ubuntu 16.04 got 192 patches added at gcc build time.

My test build, using an original gcc → gcc54, g++54 (Not LFS configure options):
Code:
cd gcc-7.3.0/
tar xvf mpfr-4.0.0.tar.xz && mv mpfr-4.0.0/ mpfr
tar xvf gmp-6.1.2.tar.xz && mv gmp-6.1.2/ gmp
tar xvf mpc-1.1.0.tar.gz && mv mpc-1.1.0/ mpc

cd ../ && mkdir build-gcc730 && cd build-gcc730/

export CC=gcc54 CXX=g++54 && ../gcc-7.3.0/configure --prefix=/usr/local/gcc7 --program-suffix=7 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch
make && sudo make install
... No errors.

Links to "gcc54-c++_5.4.0-ubuntu16"
. https://stackoverflow.com/questions/...32797#50232797
. https://drive.google.com/drive/folde...Jm?usp=sharing

-

Last edited by knudfl; 05-19-2018 at 10:45 AM.
 
  


Reply

Tags
lfs



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
Is there a way to compile gcc with an older version or build gcc manually? anon002 Linux - Software 10 05-11-2015 01:05 AM
LFS version check gcc version higher than recommended EDDY1 Linux From Scratch 1 12-27-2012 06:39 PM
help me to check whether this is the correct way to compile c source to library ... alred Programming 0 04-29-2006 04:22 AM
Is the output of (chapter 6)gcc-3.3.3 make -k check correct?????? linuxbh Linux From Scratch 1 09-05-2004 08:37 AM
check glibc version used by gcc carboncopy Slackware 3 08-12-2003 05:24 AM

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

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