newest snapshot does not bootstrap using binutils-2.9.1.0.25
Martin Kahlert
martin.kahlert@mchp.siemens.de
Fri May 5 05:42:00 GMT 2000
Quoting Martin v. Loewis (martin@loewis.home.cs.tu-berlin.de):
> > I use binutils-2.9.1.0.25 because the 2.9.5.* series proved to provide
> > broken linux to windows cross compilers (i.e. the apps produced are
> > not runable).
>
> Does that still happen, even with a clean tree? GCC should not use
> .hidden if the compiler does not support it; there is even an autoconf
> test to check the assembler. Is HAVE_GAS_HIDDEN defined in
> auto-host.h?
HAVE_GAS_HIDDEN is set to 1 in auto-host.h.
I checked, why:
configure tests the assembler $gcc_cv_as, which is at that time /usr/bin/as.
If i interpret the script correctly, gcc_cv_as is set by this code:
test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
$test_prefix/lib/gcc-lib/$target \
/usr/lib/gcc/$target/$gcc_version \
/usr/lib/gcc/$target \
$test_prefix/$target/bin/$target/$gcc_version \
$test_prefix/$target/bin \
/usr/libexec \
/usr/ccs/gcc \
/usr/ccs/bin \
/udk/usr/ccs/bin \
/bsd43/usr/lib/cmplrs/cc \
/usr/cross64/usr/bin \
/usr/lib/cmplrs/cc \
/sysv/usr/lib/cmplrs/cc \
/svr4/usr/lib/cmplrs/cc \
/usr/bin"
for dir in $test_dirs; do
if test -f $dir/as$host_exeext; then
gcc_cv_as=$dir/as$host_exeext
break;
fi
done
So /usr/bin/as is set as the assembler, which happens to be 2.9.5.0.34 on my system
and thus it supports hidden.
Unfortunately, my PATH variable starts with /usr/local/bin:/usr/bin:....
So if you just type as, you get the assembler from binutils 2.9.1.0.34, which doesn't
support hidden.
If i start the compilation command by hand and add a -v to it,
i can see, that ./xgcc uses just 'as', not /usr/bin/as and so there is a problem.
O.k. i have a workaround now, but the question arises, why configure doesn't just look
in $PATH for a working as *before* it tries the above mentioned dirs. And if that's correct,
why on earth does ./xgcc use the as determined only by $PATH and not the as, configure checks?
Thanks for pointing me into the right direction,
Martin.
--
The early bird gets the worm. If you want something else for
breakfast, get up later.
More information about the Gcc-bugs
mailing list