On 06/09/2017 16:06, evanation wrote:
http://clfs.org/view/git/x86_64/index.html
Paragraph 5.11.1.
I replaced it with the latest version Binutils-2.29

******************************************************
echo $CLFS_HOST
x64_64-cross-linux-gnu

AR=ar AS=as \
../binutils-2.29/configure \
     --prefix=/cross-tools \
     --host=${CLFS_HOST} \
     --target=${CLFS_TARGET} \
     --with-sysroot=${CLFS} \
     --with-lib-path=/tools/lib:/tools/lib64 \
     --disable-nls \
     --disable-static \
     --enable-64-bit-bfd \
     --enable-gold=yes \
     --enable-plugins \
     --enable-threads \
     --disable-werror
.......
make
make[1]: Entering directory '/mnt/clfs/sources/binutils-build'
make[2]: Entering directory '/mnt/clfs/sources/binutils-build/libiberty'
rm -f ./libiberty.a pic/./libiberty.a noasan/./libiberty.a
x86_64-cross-linux-gnu-ar rc ./libiberty.a \
   ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o
./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o
./d-demangle.o ./dwarfnames.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
./vprintf-support.o ./rust-demangle.o ./safe-ctype.o ./simple-object.o
./simple-object-coff.o ./simple-object-elf.o ./simple-object-mach-o.o
./simple-object-xcoff.o ./sort.o ./spaces.o ./splay-tree.o
./stack-limit.o ./strerror.o ./strsignal.o ./timeval-utils.o
./unlink-if-ordinary.o ./xasprintf.o ./xatexit.o ./xexit.o ./xmalloc.o
./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o ./xvasprintf.o
./setproctitle.o
/bin/bash: x86_64-cross-linux-gnu-ar: command not found
Makefile:249: recipe for target 'libiberty.a' failed
make[2]: *** [libiberty.a] Error 127
make[2]: Leaving directory '/mnt/clfs/sources/binutils-build/libiberty'
Makefile:8334: recipe for target 'all-libiberty' failed
make[1]: *** [all-libiberty] Error 2
make[1]: Leaving directory '/mnt/clfs/sources/binutils-build'
Makefile:849: recipe for target 'all' failed
make: *** [all] Error 2
******************************************************

Why the instruction is trying to execute "x86_64-cross-linux-gnu-ar
rc"? If configured without "--host = $ {CLFS_HOST}", then make without
errors. Any ideas?
_______________________________________________
Clfs-dev mailing list
Clfs-dev@lists.clfs.org
http://lists.clfs.org/listinfo.cgi/clfs-dev-clfs.org
It works for me. Looks like The AR=ar and AS=as settings have not been acknowledged.
In config.log, I have:
----
$ grep -E 'AR(=|_)' config.log
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=set
ac_cv_env_AR_value=ar
ac_cv_prog_AR=ar
AR='ar'
AR_FOR_BUILD='ar'
AR_FOR_TARGET='x86_64-unknown-linux-gnu-ar'
RPATH_ENVVAR='LD_LIBRARY_PATH'
-----

Pierre
_______________________________________________
Clfs-dev mailing list
Clfs-dev@lists.clfs.org
http://lists.clfs.org/listinfo.cgi/clfs-dev-clfs.org

Reply via email to