Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello
I tried to compile GCC 6.3.0 Pass-1 in Linux from Scratch 8.0 on Apricity OS 2016.11 (x86_64)
Binutils worked fine.
But when i tried to run configure but in the end of It i got a message :
Code:
The following requested languages could not be built: lto
Supported languages are: c,c++
Result of version-check.sh:
Code:
bash, version 4.4.5(1)-release
/bin/sh -> /usr/bin/bash
Binutils: (GNU Binutils) 2.27
bison (GNU Bison) 3.0.4
yacc is bison (GNU Bison) 3.0.4
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.25
diff (GNU diffutils) 3.5
find (GNU findutils) 4.6.0
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.5, GNU MP 6.1.1)
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 6.2.1 20160830
g++ (GCC) 6.2.1 20160830
(GNU libc) 2.24
grep (GNU grep) 2.26
gzip 1.8
Linux version 4.8.11-1-ARCH (builduser@tobias) (gcc version 6.2.1 20160830 (GCC) ) #1 SMP PREEMPT Sun Nov 27 09:26:14 CET 2016
m4 (GNU M4) 1.4.17
GNU Make 4.2.1
GNU patch 2.7.5
Perl version='5.24.0';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.29
texi2any (GNU texinfo) 6.3
xz (XZ Utils) 5.2.2
g++ compilation OK
libriaries in the second script not exist.
I tried to run It only with last switch but It makes this compilation nonsense and It doesn't work anyway.
In addition other commands in this section of lfs book doesn't work too (I eman that files It refers can't be found ).
Any ideas how to resolve this problem ?
Regards
PS . full comfiguration :
Code:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-lfs-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libcilkrts support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for isl 0.16, 0.15, or deprecated 0.14... no
recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated
checking for isl 0.16 or 0.15... no
configure: error:
The following requested languages could not be built: lto
Supported languages are: c,c++
Make sure the configure line is correct. Error is suggesting that you didn't pass --enable-languages=c,c++ as per book instructions. If unsure, check config.log inside gcc build directory, or post here it if in doubt.
But I have the next problem - i ran make and aftter one minute I got an error message. I think it's related with previous commmnds which prepares GCC files (It didn't work for me, i have to make this things by hand.)
I executed two commands mentioned in the book related with changing file names to files with ".orig" ending, and they worked - I forgot that I can't execute them from build directory.
Code:
make[3]: Entering directory '/mnt/lfs/sources/gcc-6.3.0/build/libiberty/testsuite'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/build/libiberty/testsuite'
make[2]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/build/libiberty'
make[2]: Entering directory '/mnt/lfs/sources/gcc-6.3.0/build/fixincludes'
cat: ../../fixincludes/../gcc/BASE-VER: No such file or directory
srcdir="../../fixincludes" /bin/sh ../../fixincludes/mkfixinc.sh x86_64-lfs-linux-gnu
make[2]: *** No rule to make target '../../fixincludes/../gcc/BASE-VER', needed by 'mkheaders'. Stop.
make[2]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/build/fixincludes'
make[1]: *** [Makefile:3485: all-fixincludes] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/build'
make: *** [Makefile:850: all] Error 2
In fact I don't have BASE-VER file.
Last edited by marcin1509; 05-02-2017 at 03:58 PM.
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616
Rep:
There's at least one error in your configure statement...
--with-glibc-version=2.24
Even the current development LFS doesn't tell it to use the latest version of the API. This may or may not be the issue. That said, there's an 8 year difference between these APIs. (2.24 & 2.11)
I thought that It compile for glibc installed in system
I tried with 2.11 but it didn't work.
Make is looking for "BASE-VER" File. I don't have It .
Ok, i gave It up and tried to do It on ubuntu 16.04.
Binutils went without problems. GCC configuration went fine but compiling didn't. After almost 20 minutes of compiling i got an error :
Code:
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Makefile:1085: recipe for target 'gimple-match.o' failed
make[2]: *** [gimple-match.o] Error 4
make[2]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/build/gcc'
Makefile:4119: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/build'
Makefile:863: recipe for target 'all' failed
make: *** [all] Error 2
Last edited by marcin1509; 05-04-2017 at 09:02 AM.
Virtualbox crashed and I don't have Access to this installation. I read in the Internet that it's connected with lack of RAM memory , because there is one process killed.
If this problem Will persist, i Will post this.
[update] :
I tried to do it once more. I got an other error, I have enough disk space and free RAM memory. I have swap partition too.
Installed gcc is gcc-5.3.1 .
Code:
../../gcc/passes.c: In constructor 'gcc::pass_manager::pass_manager(gcc::context*)':
../../gcc/passes.c:1605:1: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Makefile:1085: recipe for target 'passes.o' failed
make[2]: *** [passes.o] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/build/gcc'
Makefile:4119: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/build'
Makefile:863: recipe for target 'all' failed
make: *** [all] Error 2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.