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.
|
 |
04-08-2005, 02:54 AM
|
#1
|
Member
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204
Rep:
|
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.
|
|
|
04-08-2005, 05:00 AM
|
#2
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
uhh, did you post the wrong output? there are no errors above
|
|
|
04-08-2005, 09:31 PM
|
#3
|
Member
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204
Original Poster
Rep:
|
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?
|
|
|
04-09-2005, 03:26 AM
|
#4
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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).
|
|
|
04-09-2005, 08:53 AM
|
#5
|
Member
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204
Original Poster
Rep:
|
Oh... I see well thanks. (Needless to say, I feel kinda dumb now.)
|
|
|
04-10-2005, 03:01 AM
|
#6
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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. 
|
|
|
All times are GMT -5. The time now is 08:20 AM.
|
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
|
|