LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-08-2005, 02:54 AM   #1
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
Chap 5 Binutils make LDFLAGS & make install errors


I use Slackware 10, Linux version 2.6.8.1, gcc version 3.3.4.

Here is the output from make LDFLAGS="-all-static

Code:
 -I../intl  -g -O2 -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.15.91.0.2/ld/ldexp.c
(echo "/* This file is automatically generated.  DO NOT EDIT! */";\
for f in `echo " " eelf_i386.o ei386linux.o "" \
 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
    echo "extern ld_emulation_xfer_type ld_${f}_emulation;"; \
done;\
echo "";\
echo "#define EMULATION_LIST \\";\
for f in `echo " " eelf_i386.o ei386linux.o "" \
 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
    echo "  &ld_${f}_emulation, \\"; \
done;\
echo "  0") >ldemul-tmp.h
mv ldemul-tmp.h ldemul-list.h
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/ld -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/ld -I../bfd -I../../binutils-2.15.91.0.2/ld/../bfd -I../../binutils-2.15.91.0.2/ld/../include -I../../binutils-2.15.91.0.2/ld/../intl -I../intl  -g -O2 -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.15.91.0.2/ld/ldemul.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/ld -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/ld -I../bfd -I../../binutils-2.15.91.0.2/ld/../bfd -I../../binutils-2.15.91.0.2/ld/../include -I../../binutils-2.15.91.0.2/ld/../intl -I../intl  -g -O2 -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.15.91.0.2/ld/ldver.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/ld -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/ld -I../bfd -I../../binutils-2.15.91.0.2/ld/../bfd -I../../binutils-2.15.91.0.2/ld/../include -I../../binutils-2.15.91.0.2/ld/../intl -I../intl  -g -O2 -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.15.91.0.2/ld/ldmisc.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/ld -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/ld -I../bfd -I../../binutils-2.15.91.0.2/ld/../bfd -I../../binutils-2.15.91.0.2/ld/../include -I../../binutils-2.15.91.0.2/ld/../intl -I../intl  -g -O2 -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.15.91.0.2/ld/ldfile.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/ld -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/ld -I../bfd -I../../binutils-2.15.91.0.2/ld/../bfd -I../../binutils-2.15.91.0.2/ld/../include -I../../binutils-2.15.91.0.2/ld/../intl -I../intl  -g -O2 -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.15.91.0.2/ld/ldcref.c
cp ../../binutils-2.15.91.0.2/ld/emultempl/astring.sed stringify.sed
LIB_PATH='' /bin/sh ../../binutils-2.15.91.0.2/ld/genscripts.sh ../../binutils-2.15.91.0.2/ld /tools/lib "/tools" i686-pc-linux-gnu i686-pc-linux-gnu i686-pc-linux-gnu "elf_i386" "/usr/local/lib /lib /usr/lib" no elf_i386 "i686-pc-linux-gnu"
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/ld -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/ld -I../bfd -I../../binutils-2.15.91.0.2/ld/../bfd -I../../binutils-2.15.91.0.2/ld/../include -I../../binutils-2.15.91.0.2/ld/../intl -I../intl  -g -O2 -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c eelf_i386.c
LIB_PATH='' /bin/sh ../../binutils-2.15.91.0.2/ld/genscripts.sh ../../binutils-2.15.91.0.2/ld /tools/lib "/tools" i686-pc-linux-gnu i686-pc-linux-gnu i686-pc-linux-gnu "elf_i386" "/usr/local/lib /lib /usr/lib" no i386linux "i686-pc-linux-gnuaout"
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/ld -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/ld -I../bfd -I../../binutils-2.15.91.0.2/ld/../bfd -I../../binutils-2.15.91.0.2/ld/../include -I../../binutils-2.15.91.0.2/ld/../intl -I../intl  -g -O2 -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ei386linux.c
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -all-static -o ld-new  ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o ei386linux.o  ../bfd/libbfd.la ../libiberty/libiberty.a  -ldl 
mkdir .libs
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -static -o ld-new ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o ei386linux.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
ln -s ../../binutils-2.15.91.0.2/ld/gen-doc.texi ./configdoc.texi >/dev/null 2>&1 \
  || ln ../../binutils-2.15.91.0.2/ld/gen-doc.texi ./configdoc.texi >/dev/null 2>&1 \
  || cp ../../binutils-2.15.91.0.2/ld/gen-doc.texi ./configdoc.texi
rm -f ldver.texi
echo '@set VERSION 2.15.91.0.2' > ldver.texi
touch ld.1
perl ../../binutils-2.15.91.0.2/ld/../etc/texi2pod.pl -Dman < ../../binutils-2.15.91.0.2/ld/ld.texinfo > ld.pod
(pod2man --center="GNU Development Tools" --release="binutils-2.15.91.0.2" --section=1 ld.pod | \
        sed -e '/^.if n .na/d' > ld.1.T$$ && \
        mv -f ld.1.T$$ ld.1) || \
        (rm -f ld.1.T$$ && exit 1)
rm -f ld.pod
make[3]: Leaving directory `/mnt/lfs/tools/binutils-build/ld'
make[2]: Leaving directory `/mnt/lfs/tools/binutils-build/ld'
make[1]: Leaving directory `/mnt/lfs/tools/binutils-build/ld'
lfs:/tools/binutils-build$
And here is the output from make install
Code:
  /usr/bin/ginstall -c -m 644 VERSION /tools/share/gettext/intl/VERSION; \
  dists="ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in xopen-msg.sed gettext.h gettextP.h hash-string.h libgettext.h loadinfo.h bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c intl-compat.c cat-compat.c"; \
  for file in $dists; do \
    /usr/bin/ginstall -c -m 644 ../../binutils-2.15.91.0.2/intl/$file /tools/share/gettext/intl/$file; \
  done; \
else \
  : ; \
fi
make[1]: Leaving directory `/mnt/lfs/tools/binutils-build/intl'
make[1]: Entering directory `/mnt/lfs/tools/binutils-build/ld'
Making install in po
make[2]: Entering directory `/mnt/lfs/tools/binutils-build/ld/po'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/lfs/tools/binutils-build/ld/po'
make[2]: Entering directory `/mnt/lfs/tools/binutils-build/ld'
make[3]: Entering directory `/mnt/lfs/tools/binutils-build/ld'
/bin/sh ../../binutils-2.15.91.0.2/ld/../mkinstalldirs /tools/bin /tools/i686-pc-linux-gnu/bin
 /bin/sh ./libtool  --mode=install /usr/bin/ginstall -c ld-new /tools/bin/ld
/usr/bin/ginstall -c ld-new /tools/bin/ld
n=`echo ld | sed 's,y,y,'`; \
if [ "/tools/bin/$n" != "/tools/i686-pc-linux-gnu/bin/ld" ]; then \
  rm -f /tools/i686-pc-linux-gnu/bin/ld; \
  ln /tools/bin/$n /tools/i686-pc-linux-gnu/bin/ld >/dev/null 2>/dev/null \
  || /bin/sh ./libtool --mode=install /usr/bin/ginstall -c ld-new /tools/i686-pc-linux-gnu/bin/ld; \
fi
make  install-man1
make[4]: Entering directory `/mnt/lfs/tools/binutils-build/ld'
/bin/sh ../../binutils-2.15.91.0.2/ld/../mkinstalldirs /tools/man/man1
 /usr/bin/ginstall -c -m 644 ld.1 /tools/man/man1/ld.1
make[4]: Leaving directory `/mnt/lfs/tools/binutils-build/ld'
/bin/sh ../../binutils-2.15.91.0.2/ld/../mkinstalldirs /tools/i686-pc-linux-gnu/lib/ldscripts
mkdir -p -- /tools/i686-pc-linux-gnu/lib/ldscripts
for f in ldscripts/*; do \
  /usr/bin/ginstall -c -m 644 $f /tools/i686-pc-linux-gnu/lib/$f ; \
done
make[3]: Leaving directory `/mnt/lfs/tools/binutils-build/ld'
make[2]: Leaving directory `/mnt/lfs/tools/binutils-build/ld'
Making install-info in po
make[2]: Entering directory `/mnt/lfs/tools/binutils-build/ld/po'
make[2]: Nothing to be done for `install-info'.
make[2]: Leaving directory `/mnt/lfs/tools/binutils-build/ld/po'
make[2]: Entering directory `/mnt/lfs/tools/binutils-build/ld'
makeinfo --split-size=5000000 -I ../../binutils-2.15.91.0.2/ld -I ../../binutils-2.15.91.0.2/ld/../bfd/doc ../../binutils-2.15.91.0.2/ld/ld.texinfo
/bin/sh ../../binutils-2.15.91.0.2/ld/../mkinstalldirs /tools/info
 /usr/bin/ginstall -c -m 644 ./ld.info /tools/info/ld.info
 install-info --info-dir=/tools/info /tools/info/ld.info
make[2]: Leaving directory `/mnt/lfs/tools/binutils-build/ld'
make[1]: Leaving directory `/mnt/lfs/tools/binutils-build/ld'
make[1]: Entering directory `/mnt/lfs/tools/binutils-build/libiberty'
make[2]: Entering directory `/mnt/lfs/tools/binutils-build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/lfs/tools/binutils-build/libiberty/testsuite'
/bin/sh ../../binutils-2.15.91.0.2/libiberty/../mkinstalldirs /tools/lib
/usr/bin/ginstall -c -m 644 ./libiberty.a /tools/lib/./libiberty.an
( cd /tools/lib ; ranlib ./libiberty.an )
mv -f /tools/lib/./libiberty.an /tools/lib/./libiberty.a
if test -n ""; then \
  case "" in \
    /*)    thd=;; \
    *)     thd=/tools/include/;; \
  esac; \
  /bin/sh ../../binutils-2.15.91.0.2/libiberty/../mkinstalldirs ${thd}; \
  for h in ../../binutils-2.15.91.0.2/libiberty/../include/ansidecl.h ../../binutils-2.15.91.0.2/libiberty/../include/demangle.h ../../binutils-2.15.91.0.2/libiberty/../include/dyn-string.h ../../binutils-2.15.91.0.2/libiberty/../include/fibheap.h ../../binutils-2.15.91.0.2/libiberty/../include/floatformat.h ../../binutils-2.15.91.0.2/libiberty/../include/hashtab.h ../../binutils-2.15.91.0.2/libiberty/../include/libiberty.h ../../binutils-2.15.91.0.2/libiberty/../include/objalloc.h ../../binutils-2.15.91.0.2/libiberty/../include/partition.h ../../binutils-2.15.91.0.2/libiberty/../include/safe-ctype.h ../../binutils-2.15.91.0.2/libiberty/../include/sort.h ../../binutils-2.15.91.0.2/libiberty/../include/splay-tree.h ../../binutils-2.15.91.0.2/libiberty/../include/ternary.h; do \
    /usr/bin/ginstall -c -m 644 $h ${thd}; \
  done; \
fi
make[2]: Entering directory `/mnt/lfs/tools/binutils-build/libiberty/testsuite'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/lfs/tools/binutils-build/libiberty/testsuite'
make[1]: Leaving directory `/mnt/lfs/tools/binutils-build/libiberty'
lfs:/tools/binutils-build$
The LFS book says something about errors being OK. Is this is what they where talking about?
(is this something i can ignore?)
If not what could the problem be? Anyone have any idea on what to do?

Thanks to anyone willing to read this, and take a educated guess.
 
Old 04-08-2005, 05:00 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
uhh, did you post the wrong output? there are no errors above
 
Old 04-08-2005, 09:31 PM   #3
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Original Poster
Rep: Reputation: 30
make[2]: Nothing to be done for `install'

I See make LDFLAGS="-all-static had no errors but in make install insant
Quote:
make[2]: Nothing to be done for `install'.
an error?
 
Old 04-09-2005, 03:26 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
nope.

what you want to watch out for:

Code:
error:  blah blah blah .............
if you don't see the word "error", you're ok ( as far as the actual compiling is concerned).
 
Old 04-09-2005, 08:53 AM   #5
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Original Poster
Rep: Reputation: 30
Oh... I see well thanks. (Needless to say, I feel kinda dumb now.)
 
Old 04-10-2005, 03:01 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by shotokan
Oh... I see well thanks. (Needless to say, I feel kinda dumb now.)
don't worry about it, there is too much to learn and not enough time....
just take the opportunity of LFS to learn as much as you can.
 
  


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
Binutils-2.15.94.0.2.2 - Pass 1 stuck up after make install kagashe Linux From Scratch 9 10-09-2005 11:42 AM
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
Binutils Pass 1 error make LDFLAGS="-all-static" Phyrexicaid Linux From Scratch 5 08-25-2005 10:43 AM
'make' & 'make install commands not recognised by shell gilbertt Linux - Software 4 05-04-2004 08:04 AM
LFS Chap 5 - gcc first make command errors antken Linux From Scratch 3 03-17-2003 10:38 PM

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

All times are GMT -5. The time now is 04:09 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