LFS 8.0 - can't compile GCC 6.3.0
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 Code:
bash, version 4.4.5(1)-release 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 |
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.
|
I copy&pastę this comfiguration command from the book amd I am passing --enable-languages=C,C++ .
|
Post the config.log file from gcc build directory.
|
Quote:
Arch : 0.18 https://aur.archlinux.org/packages/isl/ |
Quote:
|
I thought that isl is a problem but if lfs doesn't require it - that's ok.
It's a config.log content : Code:
This file contains any messages produced by compilers while |
Try using "--disable-lto" in the configure options. Although, I ain't sure why it would be needed.
|
Now It works.
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' |
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) |
Go into the system, and after you get to the point where you type...
su - lfs type: printenv and post the results here. |
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*)': result of printenv : Code:
TERM=xterm I tried it once more and it worked fine. It compiled and installed. Thread can be closed. |
All times are GMT -5. The time now is 02:23 AM. |