LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 06-01-2005, 10:34 PM   #1
ukyo
Member
 
Registered: Sep 2004
Location: JiangsuChina
Distribution: LOVEHuiKai
Posts: 38

Rep: Reputation: 15
[solved]: 5.4. Binutils-2.15.94.0.2.2 - Pass 1


THX two guys below!!

on binutils-2.15.94.0.2.2 lfs-6.0
then ==>>

make LDFLAGS="-all-static"

------
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -static -o objdump objdump.o budemang.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
bucomm.o(.text+0x8c5): In function `make_tempname':
/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/bin/sh /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../ylwrap "/mnt/lfs/tools/binutils-2.15.91.0.2/missing bison -y" /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/arparse.y y.tab.c arparse.c y.tab.h arparse.h -- -d
WARNING: `bison' is missing on your system. You should only need it if
you modified a `.y' file. You may need the `Bison' package
in order for those modifications to take effect. You can get
`Bison' from any GNU archive site.
gcc -DHAVE_CONFIG_H -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../include -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c arparse.carparse.c:1: warning: return type defaults to `int'
arparse.c:1: warning: function declaration isn't a prototype
/bin/sh /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../ylwrap "/mnt/lfs/tools/binutils-2.15.91.0.2/missing flex" /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/arlex.l lex.yy.c arlex.c --
WARNING: `flex' is missing on your system. You should only need it if
you modified a `.l' file. You may need the `Flex' package
in order for those modifications to take effect. You can get
`Flex' from any GNU archive site.
gcc -DHAVE_CONFIG_H -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../include -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c arlex.c
arlex.c:1: warning: return type defaults to `int'
arlex.c:1: warning: function declaration isn't a prototype
gcc -DHAVE_CONFIG_H -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../include -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/ar.c
gcc -DHAVE_CONFIG_H -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../include -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/not-ranlib.c
gcc -DHAVE_CONFIG_H -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../include -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/arsup.c
gcc -DHAVE_CONFIG_H -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../include -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/rename.c
gcc -DHAVE_CONFIG_H -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../include -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/binemul.c
gcc -DHAVE_CONFIG_H -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils -I../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../bfd -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../include -I/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /mnt/lfs/tools/binutils-2.15.91.0.2/binutils/emul_vanilla.c
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -all-static -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -ldl
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -static -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
arlex.o(.text+0x0): In function `main':
/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+0xc30): In function `main':
/mnt/lfs/tools/binutils-2.15.91.0.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 16 in arparse.o to 3345 in ar.o
bucomm.o(.text+0x8c5): In function `make_tempname':
/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ar.o(.text+0x23): In function `mri_emul':
/mnt/lfs/tools/binutils-2.15.91.0.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

------
cat /proc/version
Linux version 2.6.10-1-686 (dilinger@mouth) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Fri Mar 11 03:55:46 EST 2005

,how to fix it???THX

Last edited by ukyo; 06-02-2005 at 08:36 AM.
 
Old 06-02-2005, 03:38 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Re: #Error: 5.4. Binutils-2.15.94.0.2.2 - Pass 1

Quote:

from here go up about 15 more lines and post that

collect2: ld returned 1 exit status
make[2]: *** [ar] Error 1
make[2]: Leaving directory `/mnt/lfs/tools/binutils-build/binutils'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/tools/binutils-build/binutils'
make: *** [install-binutils] Error 2
lfs@Jojo:/mnt/lfs/tools/binutils-build$ man list
No manual entry for list
lfs@Jojo:/mnt/lfs/tools/binutils-build$ man lisp
 
Old 06-02-2005, 04:37 AM   #3
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Re: #Error: 5.4. Binutils-2.15.94.0.2.2 - Pass 1

Quote:
Originally posted by ukyo
............
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -all-static -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -ldl
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -static -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
arlex.o(.text+0x0): In function `main':
/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+0xc30): In function `main':
/mnt/lfs/tools/binutils-2.15.91.0.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 16 in arparse.o to 3345 in ar.o
bucomm.o(.text+0x8c5): In function `make_tempname':
/mnt/lfs/tools/binutils-2.15.91.0.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ar.o(.text+0x23): In function `mri_emul':
/mnt/lfs/tools/binutils-2.15.91.0.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

------
cat /proc/version
Linux version 2.6.10-1-686 (dilinger@mouth) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Fri Mar 11 03:55:46 EST 2005

,how to fix it???THX
Install bison and flex in chapter 5 will resolve this error (or replace binutils-2.15.94.0.2.2 with binutils-2.16)

Good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
5.14. Binutils-2.15.91.0.2 - Pass 2 error! Flash_G Linux From Scratch 5 08-20-2006 06:02 AM
binutils first pass error gravesb Linux From Scratch 5 09-05-2005 01:42 AM
binutils-2.15.92.0.2 first pass, error rogerslin Linux From Scratch 7 12-20-2004 05:44 PM
Binutils-2.14 - Pass 1, compiler error peok Linux From Scratch 0 08-10-2004 12:30 AM
binutils-2.14 first pass, gcc error Add1Sun Linux From Scratch 3 04-29-2004 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration