Hello guys,
i actually goes throught the LFS-Tutorial, or the german translation of it
and have some Problems while make binutils.
First of all i have Linux Debian running in a VMWare Fusion Image, because i don't have a native Linux running on my Mac.
Ive made the tutorial step by step.
Already cleaned out earlier errors but after a week of searching and trying i hope you can help me.
I wrote a little script (attached) to automate the "clean" configure, make, make install process.
Ive checked the needed versions. All versions are greater then the needed ones, but before i start to downgrade everything i want to know if anyone had some simpler suggestions.
Can anyone help me to get around with this error, without downgrade everything ?
Greetings from Germany and thank you for your help
Host SystemVersion:
Code:
Linux lfshost 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u2 (2015-07-17) i686 GNU/Linux
Version-Check:
Code:
bash, version 4.3.30(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.25
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.23
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.1, API: 1.1 (GNU MPFR 3.1.2-p3, GNU MP 6.0.0)
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.9.2-10) 4.9.2
GNU C Library (Debian GLIBC 2.19-18) stable
grep (GNU grep) 2.20
gzip 1.6
Linux version 3.16.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt11-1+deb8u2 (2015-07-17)
m4 (GNU M4) 1.4.17
GNU Make 4.0
GNU patch 2.7.5
Perl version='5.20.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
makeinfo (GNU texinfo) 5.2
Script for installation:
Code:
#!/bin/bash
ROOT=$LFS/sources/packages
SRC=$ROOT/binutils-2.18
BUILD=$ROOT/binutils-build
TAR=$ROOT/binutils-2.18.tar.bz2
PATCHCONF=$ROOT/binutils-2.18-configure-1.patch
PATCHGCC=$ROOT/binutils-2.18-GCC43-1.patch
if [ -d $SRC ]; then
sudo rm -R $SRC
fi
if [ -d $BUILD ]; then
sudo rm -R $BUILD/*
else
mkdir $BUILD
fi
cd $ROOT
utarx $TAR # utarx is a litte self write script which just unpacks every archive format
cd $SRC
patch -Np1 -i $PATCHCONF
patch -Np1 -i $PATCHGCC
cd $BUILD
time { CC="gcc -B/usr/bin" ../binutils-2.18/configure --prefix=/tools --disable-nls --disable-werror && make && make install; }
Last recent error lines:
Code:
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork waitpid bcmp bcopy bzero; do \
for g in ; do \
case "$g" in \
*$f*) echo $g >> needed-list ;; \
esac; \
done; \
done
echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o > required-list
make[3]: Entering directory '/mnt/lfs/sources/packages/binutils-build/libiberty/testsuite'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/mnt/lfs/sources/packages/binutils-build/libiberty/testsuite'
make[2]: Leaving directory '/mnt/lfs/sources/packages/binutils-build/libiberty'
make[2]: Entering directory '/mnt/lfs/sources/packages/binutils-build/intl'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/lfs/sources/packages/binutils-build/intl'
make[2]: Entering directory '/mnt/lfs/sources/packages/binutils-build/bfd'
Making info in doc
make[3]: Entering directory '/mnt/lfs/sources/packages/binutils-build/bfd/doc'
make chew
make[4]: Entering directory '/mnt/lfs/sources/packages/binutils-build/bfd/doc'
gcc -B/usr/bin -o chew.$$ ../../../binutils-2.18/bfd/doc/chew.c \
-g -O2 \
-I.. -I../../../binutils-2.18/bfd/doc/.. -I../../../binutils-2.18/bfd/doc/../../include -I../../../binutils-2.18/bfd/doc/../../intl -I../../intl; \
/bin/sh ../../../binutils-2.18/bfd/doc/../../move-if-change chew.$$ chew
make[4]: Leaving directory '/mnt/lfs/sources/packages/binutils-build/bfd/doc'
./chew -f ../../../binutils-2.18/bfd/doc/doc.str <../../../binutils-2.18/bfd/doc/../elf.c >elf.tmp
/bin/sh ../../../binutils-2.18/bfd/doc/../../move-if-change elf.tmp elf.texi
restore=: && backupdir=".am$$" && \
rm -rf $backupdir && mkdir $backupdir && \
if (makeinfo --split-size=5000000 --split-size=5000000 --version) >/dev/null 2>&1; then \
for f in bfd.info bfd.info-[0-9] bfd.info-[0-9][0-9] bfd.i[0-9] bfd.i[0-9][0-9]; do \
if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
done; \
else :; fi && \
if makeinfo --split-size=5000000 --split-size=5000000 -I ../../../binutils-2.18/bfd/doc \
-o bfd.info `test -f 'bfd.texinfo' || echo '../../../binutils-2.18/bfd/doc/'`bfd.texinfo; \
then \
rc=0; \
else \
rc=$?; \
$restore $backupdir/* `echo "./bfd.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
../../../binutils-2.18/bfd/doc/bfd.texinfo:326: unknown command `colophon'
../../../binutils-2.18/bfd/doc/bfd.texinfo:337: unknown command `cygnus'
./elf.texi:11: raising the section level of @subsubsection which is too low
Makefile:388: recipe for target 'bfd.info' failed
make[3]: *** [bfd.info] Error 1
make[3]: Leaving directory '/mnt/lfs/sources/packages/binutils-build/bfd/doc'
Making info in po
make[3]: Entering directory '/mnt/lfs/sources/packages/binutils-build/bfd/po'
( if test 'x../../../binutils-2.18/bfd/po' != 'x.'; then \
posrcprefix='../../../binutils-2.18/bfd/'; \
else \
posrcprefix="../"; \
fi; \
rm -f SRC-POTFILES-t SRC-POTFILES \
&& (sed -e '/^#/d' \
-e '/^[ ]*$/d' \
-e "s@.*@ $posrcprefix& \\\\@" < ../../../binutils-2.18/bfd/po/SRC-POTFILES.in \
| sed -e '$s/\\$//') > SRC-POTFILES-t \
&& chmod a-w SRC-POTFILES-t \
&& mv SRC-POTFILES-t SRC-POTFILES )
( rm -f BLD-POTFILES-t BLD-POTFILES \
&& (sed -e '/^#/d' \
-e '/^[ ]*$/d' \
-e "s@.*@ ../& \\\\@" < ../../../binutils-2.18/bfd/po/BLD-POTFILES.in \
| sed -e '$s/\\$//') > BLD-POTFILES-t \
&& chmod a-w BLD-POTFILES-t \
&& mv BLD-POTFILES-t BLD-POTFILES )
cd .. \
&& CONFIG_FILES=po/Makefile.in:po/Make-in \
CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating po/Makefile.in
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[3]: Nothing to be done for 'info'.
make[3]: Leaving directory '/mnt/lfs/sources/packages/binutils-build/bfd/po'
make[3]: Entering directory '/mnt/lfs/sources/packages/binutils-build/bfd'
make[3]: Nothing to be done for 'info-am'.
make[3]: Leaving directory '/mnt/lfs/sources/packages/binutils-build/bfd'
Makefile:1077: recipe for target 'info-recursive' failed
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/packages/binutils-build/bfd'
Makefile:3031: recipe for target 'all-bfd' failed
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/packages/binutils-build'
Makefile:676: recipe for target 'all' failed
make: *** [all] Error 2
real 0m26.105s
user 0m12.456s
sys 0m2.268s
________________________________________________________________
Mac-Mini late 2014: OSX 10.10.4, i5
RaspberryPi 1 & 2
VMWare:
Debian 8.1.0 as LFS-Host:
Linux version 3.16.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt11-1+deb8u2 (2015-07-17)