LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS Chapter 5.10: GCC 7.2.0 PASS 2 ERROR CANNOT COMPUTE SIZEOF(long long) PLEASE HELP!! (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-chapter-5-10-gcc-7-2-0-pass-2-error-cannot-compute-sizeof-long-long-please-help-4175618556/)

enzomazing 11-28-2017 02:22 PM

LFS Chapter 5.10: GCC 7.2.0 PASS 2 ERROR CANNOT COMPUTE SIZEOF(long long) PLEASE HELP!!
 
Hi I'm really new to linux, I was thinking of posting this at the newb section, anyways I have been following the book and everything was going smooth until I get to chapter 5.10, wherein the error happens when I make/compile the gcc 7.2. It says:
checking size of long long... configure: error: in `/mnt/lfs/sources/gcc-7.2.0/build/gcc':
configure: error: cannot compute sizeof (long long)
See `config.log' for more details.
Makefile:4186: recipe for target 'configure-gcc' failed
make[1]: *** [configure-gcc] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/gcc-7.2.0/build'
Makefile:902: recipe for target 'all' failed
make: *** [all] Error 2

I really need help right now, the deadline for our project submission is on friday. Your help will be greatly appreciated.

This is the config.log file. hope this helps:
https://drive.google.com/open?id=18I...BZ12vEYKxrIYF1

sr_ls_boy 11-28-2017 04:17 PM

sizeof (long long) ? on a 32-bit host?

Try a 64-bit live cd.

There will be problems when trying to cross compile for a
different ABI. If you are running on a 32-bit host with a
64-bit cpu some configure scripts will fail.

The CLFS book will show you how to build a proper 32-bit
target.

Keith Hedger 11-28-2017 08:00 PM

you need to tell us what you are using as a host, the results of the version check script and please dont use so many capitals its the forum equivelent of shouting, and wont get an answer any quicker.
also what version of the book you are using.

hazel 11-29-2017 01:43 AM

A newbie shouldn't even be using LFS. I suggest that you read the prerequisites page of the LFS manual, especially the first paragraph.

enzomazing 11-29-2017 02:23 AM

I am using 32bit Ubuntu on a virtual machine.
2gb ram
4cores single cpu
1gb VRAM
25gb hdd


This is the result of version-check.sh:

bash, version 4.3.48(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.26.1
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.25
diff (GNU diffutils) 3.3
find (GNU findutils) 4.7.0-git
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
(Ubuntu GLIBC 2.23-0ubuntu9) 2.23
grep (GNU grep) 2.25
gzip 1.6
Linux version 4.10.0-28-generic (buildd@lgw01-22) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:13 UTC 2017
m4 (GNU M4) 1.4.17
GNU Make 4.1
GNU patch 2.7.5
Perl version='5.22.1';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.28
texi2any (GNU texinfo) 6.1
xz (XZ Utils) 5.1.0alpha
g++ compilation OK


I am currently working on LFS 8.1 book. Im sorry for the caps its my first time posting in a forum. Thank you.

enzomazing 11-29-2017 03:43 AM

Hi,

Problem solved. I don't really know what went wrong but i just redid the previous chapters and it's working fine now.

Thank you for all your help! :)


All times are GMT -5. The time now is 08:19 AM.