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.
ok, so I downloaded the lfs-packages-6.1.tar file, and started over after having problems w/ section 6.15, as per the suggestion(http://www.linuxquestions.org/questi...hreadid=352709)
I went through everything, reading the instructions, and I get to the first compile that ever happens in the book, and it fails! Here's the error
Quote:
/mnt/lfs/sources/binutils-build/binutils/arlex.c:1: multiple definition of `main'
arparse.o(.text+0x0):/mnt/lfs/sources/binutils-build/binutils/arparse.c:1: first defined here
ar.o(.text+0x670): In function `main':
../../binutils-2.15.94.0.2.2/binutils/ar.c:342: multiple definition of `main'
arparse.o(.text+0x0):/mnt/lfs/sources/binutils-build/binutils/arparse.c:1: first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 15 in arparse.o to 1899 in ar.o
bucomm.o(.text+0xa09): In function `make_tempname':
../../binutils-2.15.94.0.2.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ar.o(.text+0x24): In function `mri_emul':
../../binutils-2.15.94.0.2.2/binutils/ar.c:148: undefined reference to `yyparse'
collect2: ld returned 1 exit status
make[3]: *** [ar] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
ok, after installling flex, and removing both the binutils-build and the binutils directories, untarring the source again, and configuring/running make again I get this error
Quote:
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l: In function `yylex':
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:42: error: `ADDLIB' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:42: error: (Each undeclared identifier is reported only once
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:42: error: for each function it appears in.)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:43: error: `ADDMOD' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:44: error: `CLEAR' undeclared (firstuse in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:45: error: `CREATE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:46: error: `DELETE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:47: error: `DIRECTORY' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:48: error: `END' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:49: error: `EXTRACT' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:50: error: `FULLDIR' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:51: error: `HELP' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:52: error: `LIST' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:53: error: `OPEN' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:54: error: `REPLACE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:55: error: `VERBOSE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:56: error: `SAVE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:77: error: `yylval' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:78: error: `FILENAME' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:83: error: `NEWLINE' undeclared (first use in this function)
lex.yy.c: At top level:
lex.yy.c:1840: warning: no previous prototype for `yyget_lineno'
lex.yy.c:1849: warning: no previous prototype for `yyget_in'
lex.yy.c:1857: warning: no previous prototype for `yyget_out'
lex.yy.c:1865: warning: no previous prototype for `yyget_leng'
lex.yy.c:1874: warning: no previous prototype for `yyget_text'
lex.yy.c:1883: warning: no previous prototype for `yyset_lineno'
lex.yy.c:1895: warning: no previous prototype for `yyset_in'
lex.yy.c:1900: warning: no previous prototype for `yyset_out'
lex.yy.c:1905: warning: no previous prototype for `yyget_debug'
lex.yy.c:1910: warning: no previous prototype for `yyset_debug'
lex.yy.c:1916: warning: no previous prototype for `yylex_destroy'
lex.yy.c:1348: warning: `yyunput' defined but not used
make[3]: *** [arlex.o] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
got it. Turns out, apt-get hadn't satisfied some dependencies(not sure why). I needed the bison package. I installed it, and now it works. Thanks for all the help :-/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.