RollSzia
Köszönöm a gyors reakciót és elnézést de nem volt időm előbb reagálni rá. A gcc valóban fenn van ezt a config.log is bizonyítja. Bogarásztam a config.log-ot és a config-nak azt a részét ami a log szerint a hibát okozza, de (bár láttam/írtam már C programot) ez még túl tömör számomra.
Az első hibagyanús hely az ahol azt mondja hogy:
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
Egy ld nevű program file van a megadott könyvtárban (kb. 450 kB). Az ld lenne rossz paraméterekkel meghívva?
Bemásolom az érdekes részeket. Ha ilyet nem illik, akkor szóljatok rám és többet nem teszem!
A config.log részlete az alábbi:
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1211: checking for gcc
configure:1227: found /usr/bin/gcc
configure:1237: result: gcc
configure:1481: checking for C compiler version
configure:1484: gcc --version &5
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1487: $? = 0
configure:1489: gcc -v &5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:1492: $? = 0
configure:1494: gcc -V &5
gcc: '-V' option must have argument
configure:1497: $? = 1
configure:1523: checking for C compiler default output
configure:1526: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:1529: $? = 1
configure: failed program was:
#line 1500 "configure"
#include "confdefs.h"
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
;
return 0;
}
configure:1556: error: C compiler cannot create executables
A config file az 1500-as sortól pedig a következő:
cat >conftest.$ac_ext &5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
(eval $ac_link_default) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# Find the output, starting from the most likely. This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
ls a.out conftest 2>/dev/null;
ls a.* conftest.* 2>/dev/null`; do
case $ac_file in
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
a.out ) # We found the default executable, but exeext='' is most
# certainly right.
break;;
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
# FIXME: I believe we export ac_cv_exeext for Libtool --akim.
export ac_cv_exeext
break;;
* ) break;;
esac
done
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
{ (exit 77); exit 77; }; }
fi