Linux From Scratch This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-19-2005, 08:22 PM
|
#1
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Rep:
|
Binutils-pass 1 v. 6.1
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
|
|
|
|
08-20-2005, 07:32 PM
|
#2
|
Member
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227
Rep:
|
Well, I believe the yyparse error is related to flex (might check to make sure that installed correctly), not sure about the other errors.
|
|
|
08-20-2005, 07:40 PM
|
#3
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
ok, does anyone else have any thoughts?
|
|
|
08-21-2005, 03:57 PM
|
#4
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
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
|
|
|
|
08-23-2005, 08:58 PM
|
#5
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
please?
|
|
|
08-23-2005, 09:42 PM
|
#6
|
Member
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705
Rep:
|
hmm, what kernel version is your $HOST system using??
and is your LFS $PATH set up properly??
and what Gcc version is your $HOST using??
|
|
|
08-23-2005, 10:01 PM
|
#7
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
it's a 2.6.8 kernel, I believe gcc is 3.3.5. I'm almost positive the path is set up correctly. I assume $HOST is the same has my host system?
|
|
|
08-25-2005, 02:09 PM
|
#8
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
is it possible that the package is corrupted? I downloaded it w/ the lfs-packages-6.1.tar.bz2. I would think this would cause it to be done
|
|
|
09-01-2005, 09:13 PM
|
#9
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
noone knows?
|
|
|
09-02-2005, 10:13 PM
|
#10
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
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 :-/
|
|
|
09-04-2005, 07:27 AM
|
#11
|
LQ Newbie
Registered: Sep 2005
Posts: 6
Rep:
|
After adding Bison and Flex it worked perfect for me.
|
|
|
All times are GMT -5. The time now is 03:44 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|