LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-25-2012, 03:01 AM   #1
k84834
Member
 
Registered: Aug 2012
Posts: 142

Rep: Reputation: Disabled
Unhappy binutiles make error in section 6.13


Hi
according this Hint, I set below environmet variables after chrooting and before installing any packages:

export CFLAGS="-Os -fomit-frame-pointer -march=i686 -pipe" && CXXFLAGS=$CFLAGS

export CC="gcc -s"
export LDFLAGS="-s"

I have installed glibc by
adding "--enable-omitfp --disable-nls" as extra configure arguments and any problem dosn't occurs.

in section 6.13, I add --disable-nls option in configure command.
when I running " make tooldir=/usr" command, below errors occur:
Code:
gcc -s -DHAVE_CONFIG_H -I. -I../../binutils-2.22/binutils  -I. -I../../binutils-2.22/binutils -I../bfd -I../../binutils-2.22/binutils/../bfd -I../../binutils-2.22/binutils/../include -DLOCALEDIR="\"/usr/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -Os -fomit-frame-pointer -march=i686 -pipe -MT prdbg.o -MD -MP -MF .deps/prdbg.Tpo -c -o prdbg.o ../../binutils-2.22/binutils/prdbg.c
mv -f .deps/prdbg.Tpo .deps/prdbg.Po
gcc -s -DHAVE_CONFIG_H -I. -I../../binutils-2.22/binutils  -I. -I../../binutils-2.22/binutils -I../bfd -I../../binutils-2.22/binutils/../bfd -I../../binutils-2.22/binutils/../include -DLOCALEDIR="\"/usr/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -Os -fomit-frame-pointer -march=i686 -pipe -MT rddbg.o -MD -MP -MF .deps/rddbg.Tpo -c -o rddbg.o ../../binutils-2.22/binutils/rddbg.c
mv -f .deps/rddbg.Tpo .deps/rddbg.Po
gcc -s -DHAVE_CONFIG_H -I. -I../../binutils-2.22/binutils  -I. -I../../binutils-2.22/binutils -I../bfd -I../../binutils-2.22/binutils/../bfd -I../../binutils-2.22/binutils/../include -DLOCALEDIR="\"/usr/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -Os -fomit-frame-pointer -march=i686 -pipe -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o ../../binutils-2.22/binutils/debug.c
mv -f .deps/debug.Tpo .deps/debug.Po
gcc -s -DHAVE_CONFIG_H -I. -I../../binutils-2.22/binutils  -I. -I../../binutils-2.22/binutils -I../bfd -I../../binutils-2.22/binutils/../bfd -I../../binutils-2.22/binutils/../include -DLOCALEDIR="\"/usr/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -Os -fomit-frame-pointer -march=i686 -pipe -MT stabs.o -MD -MP -MF .deps/stabs.Tpo -c -o stabs.o ../../binutils-2.22/binutils/stabs.c
../../binutils-2.22/binutils/stabs.c: In function 'parse_stab_type':
../../binutils-2.22/binutils/stabs.c:2797:57: error: 'physname' may be used uninitialized in this function [-Werror=maybe-uninitialized]
../../binutils-2.22/binutils/stabs.c:2596:16: note: 'physname' was declared here
cc1: all warnings being treated as errors
make[4]: *** [stabs.o] Error 1
make[4]: Leaving directory `/sources/binutils-build/binutils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/sources/binutils-build/binutils'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/sources/binutils-build/binutils'
make[1]: *** [all-binutils] Error 2
make[1]: Leaving directory `/sources/binutils-build'
make: *** [all] Error 2
root:/sources/binutils-build#
what is happened? how fix these errors?

Last edited by k84834; 09-25-2012 at 07:12 AM.
 
Old 09-25-2012, 07:11 AM   #2
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
Unhappy

I add --disable-werror as extra configure argument. and make haven't any problems , but when I running "make -k check" command, occure some errors that attached to the post. please compare the result of my check with this link.
are these errors harmful for building rest of packages?

please help me
Attached Files
File Type: txt Binutiles-problem-section6.13.txt (27.5 KB, 12 views)
 
Old 09-25-2012, 10:43 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I have used the vanilla document from LFS and I haven't had any problems except a failure during the test phase. The failed test compile and execute can be safely ignored if you've followed the book exactly.
 
  


Reply



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
binutiles: make install error k84834 Linux From Scratch 10 09-28-2012 01:13 AM
Part II Chapter 6 Section 6.16 GCC-4.5.2 make error steviebob Linux From Scratch 3 10-02-2011 02:34 AM
[SOLVED] Section 6.7. Linux-2.6.37 API Headers make error steviebob Linux From Scratch 7 09-30-2011 01:46 PM
[SOLVED] LFS 6.7: section 6.9 Glibc make test error prakashsince92 Linux From Scratch 7 12-17-2010 04:05 PM
lfs 6.5 make error with glibc-2.10.1 section 5.7.1 from LiveCD-6.3-r2160 [fixed] Expertsetup Linux From Scratch 2 01-21-2010 05:52 PM

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

All times are GMT -5. The time now is 03:42 PM.

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