Hi,
I'm working to LFS version 7.9 and I've hit a problem building a second pass of
Binutils 2.26 (Chapter 5.9).
For the second pass I created a 'build_pass2' subdirectory instead of deleting
the original 'build' directory used in pass 1, and re-creating it. When I do a
'..configure' (with the commandline switches specified in LFS I get the
following configure error:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... x86_64-lfs-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/mnt/lfs/sources/binutils-2.26_pass2/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Inspecting config.log, I see the following:
configure:4111: checking for gcc
configure:4138: result: x86_64-lfs-linux-gnu-gcc
configure:4367: checking for C compiler version
configure:4376: x86_64-lfs-linux-gnu-gcc --version >&5
../configure: line 4378: x86_64-lfs-linux-gnu-gcc: command not found
configure:4387: $? = 127
configure:4376: x86_64-lfs-linux-gnu-gcc -v >&5
../configure: line 4378: x86_64-lfs-linux-gnu-gcc: command not found
configure:4387: $? = 127
configure:4376: x86_64-lfs-linux-gnu-gcc -V >&5
../configure: line 4378: x86_64-lfs-linux-gnu-gcc: command not found
configure:4387: $? = 127
configure:4376: x86_64-lfs-linux-gnu-gcc -qversion >&5
../configure: line 4378: x86_64-lfs-linux-gnu-gcc: command not found
configure:4387: $? = 127
configure:4407: checking for C compiler default output file name
configure:4429: x86_64-lfs-linux-gnu-gcc conftest.c >&5
../configure: line 4431: x86_64-lfs-linux-gnu-gcc: command not found
configure:4433: $? = 127
configure:4470: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
I initially thought it was due to x86_64-lfs-linux-linux-gnu-gcc either not
available or visible via $PATH but I can execute it from the command line to
get the version e.g. 'x86_64-lfs-linux-linux-gnu-gcc -v' successfully returns
the version.
My $PATH is set to /tools/bin:/bin:/usr/bin:/usr/lib:/usr/lib/gcc. I'm
currently unable to work out what the problem is.
Quoting the lines of 'configure' (mentioned in the config.log above) if anyone
can help explain what's actually being attempted and failing:
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
{ { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
ac_status=$?
if test -s conftest.err; then
sed '10a\
... rest of stderr output deleted ...
10q' conftest.err >conftest.er1
cat conftest.er1 >&5
rm -f conftest.er1 conftest.err
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
done
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
Any help appreciated.
Thanks, Sam.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style