[SOLVED] 6.6 on virtualbox and gcc compiling problems
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.
/$(HOST_SUBDIR)/mpfr -I$$s/mpfr conftest.c >&5
conftest.c:12:19: error: ppl_c.h: No such file or directory
conftest.c: In function 'main':
conftest.c:18: error: 'choke' undeclared (first use in this function)
conftest.c:18: error: (Each undeclared identifier is reported only once
conftest.c:18: error: for each function it appears in.)
conftest.c:18: error: expected ';' before 'me'
configure:4918: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
Code:
configure:5031: gcc -c -g -O2 -I/include -DCLOOG_PPL_BACKEND -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr conftest.c >&5
conftest.c:12:25: error: cloog/cloog.h: No such file or directory
conftest.c: In function 'main':
conftest.c:18: error: 'choke' undeclared (first use in this function)
conftest.c:18: error: (Each undeclared identifier is reported only once
conftest.c:18: error: for each function it appears in.)
conftest.c:18: error: expected ';' before 'me'
configure:5037: $? = 1
configure: failed program was:
| /* confdefs.h. */
Code:
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/gcc-4.4.3/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc-4.4.3'
make: *** [all] Error 2
Your host does not meet the system requirements. Try using the liveCD as host. I you insist on using Ubuntu install the dev packages and check the installed versions of the programs listed here: http://www.linuxfromscratch.org/lfs/.../hostreqs.html
Apparently you confused the backticks (`) with single quotes ('). Copy paste the version.sh script from the LFS book directly into an editor, save it, chmod and run it again.
You are right(i did by hand) about the symbols, i did fix it,
also i did delete the gcc dir and remake em, havent tried compile yet
i want to make sure everything is good this time.
Here the output:
Code:
uki@ubox:~/Desktop$ bash version-check.sh
bash, version 4.0.33(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.20
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
GNU C Library (EGLIBC) stable release version 2.10.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.31-14-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009
m4 (GNU M4) 1.4.13
GNU Make 3.81
patch 2.5.9
Perl version='5.10.0';
GNU sed version 4.2.1
tar (GNU tar) 1.22
Texinfo: makeinfo (GNU texinfo) 4.13
Compilation OK
uki@ubox:~/Desktop$
/bin/sh should link to /bin/bash. Not sure if gcc is ok. It is an Ubuntu modified version. Also make sure that you have the devel packages installed in Ubuntu. If compilation still fails consider using another host.
Make sure you download the official one and not the x86_64 version. Download the nosrc iso. You do not need the source files since on the liveCD they are for the LFS 6.3 book.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.