Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] gcc configure: error: C compiler cannot create executables  (Read 4149 times)

Offline tomsiduction

  • User
  • Posts: 207
Hallo

Unter freetz bekomme ich folgende Meldung:

checking for gcc... gcc
checking whether the C compiler works... no
configure: error: C compiler cannot create executables


gcc und build-essentials habe ich neu installiert und konfiguriert; der Fehler bleibt.

Vielen Dank für jeden Tipp


Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: gcc configure: error: C compiler cannot create executables
« Reply #1 on: 2018/01/29, 21:40:48 »
Zu wenig Informationen!
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline tomsiduction

  • User
  • Posts: 207
Re: gcc configure: error: C compiler cannot create executables
« Reply #2 on: 2018/01/29, 21:49:44 »
Vielen Dank
Welche informationen wären den bitte noch hilfreich?

evtl kernel:
4.14.13-towo.2-siduction-amd64

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: gcc configure: error: C compiler cannot create executables
« Reply #3 on: 2018/01/29, 22:00:32 »
Quote
Welche informationen wären den bitte noch hilfreich?

Was willst Du kompilieren?
Wie sieht Dein Befehl aus?
Den ganzen configure-output!
Warum ist das System nicht aktuell?
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline tomsiduction

  • User
  • Posts: 207
Re: gcc configure: error: C compiler cannot create executables
« Reply #4 on: 2018/01/29, 22:18:50 »
Hallo und vielen Dank

Der maßgebliche Befehl lautet in freetz:

Code: [Select]
make tools

Output:

freetz-stable-2.0$ make tools
configure: WARNING: unrecognized options: --disable-nls
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/configure: error: in `/freetz-stable-2.0/source/host-tools/fakeroot-1.18.4/build/biarch':
configure: error: C compiler cannot create executables


Im config.log steht folgendes

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by fakeroot configure 1.18.4, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../../configure --prefix=/freetz-stable-2.0/tools/build --enable-shared --disable-nls

## --------- ##
## Platform. ##
## --------- ##

hostname = siduction
uname -m = x86_64
uname -r = 4.14.13-towo.2-siduction-amd64
uname -s = Linux
uname -v = #1 SMP PREEMPT siduction 4.14-24 (2018-01-15)

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games
PATH: /usr/lib/go/bin
PATH: /home/scheich/go/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2359: checking build system type
configure:2373: result: x86_64-unknown-linux-gnu
configure:2393: checking host system type
configure:2406: result: x86_64-unknown-linux-gnu
configure:2426: checking target system type
configure:2439: result: x86_64-unknown-linux-gnu
configure:2481: checking for a BSD-compatible install
configure:2549: result: /usr/bin/install -c
configure:2560: checking whether build environment is sane
configure:2610: result: yes
configure:2751: checking for a thread-safe mkdir -p
configure:2790: result: /bin/mkdir -p
configure:2803: checking for gawk
configure:2819: found /usr/bin/gawk
configure:2830: result: gawk
configure:2841: checking whether make sets $(MAKE)
configure:2863: result: yes
configure:2944: checking whether to enable maintainer-specific portions of Makefiles
configure:2953: result: no
configure:2968: checking whether make sets $(MAKE)
configure:2990: result: yes
configure:3045: checking how to print strings
configure:3072: result: printf
configure:3105: checking for style of include used by make
configure:3133: result: GNU
configure:3204: checking for gcc
configure:3231: result: gcc
configure:3460: checking for C compiler version
configure:3469: gcc --version >&5
gcc (Debian 7.3.0-1) 7.3.0
Copyright (C) 2017 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:3480: $? = 0
configure:3469: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 7.3.0-1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Debian 7.3.0-1)
configure:3480: $? = 0
configure:3469: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3480: $? = 1
configure:3469: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3480: $? = 1
configure:3500: checking whether the C compiler works
configure:3522: gcc -m32 -O3 -Wall   conftest.c  >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/7/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/7/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
configure:3526: $? = 1
configure:3564: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fakeroot"
| #define PACKAGE_TARNAME "fakeroot"
| #define PACKAGE_VERSION "1.18.4"
| #define PACKAGE_STRING "fakeroot 1.18.4"
| #define PACKAGE_BUGREPORT "clint@debian.org"
| #define PACKAGE_URL ""
| #define PACKAGE "fakeroot"
| #define VERSION "1.18.4"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3569: error: in `/freetz-stable-2.0/source/host-tools/fakeroot-1.18.4/build/biarch':
configure:3571: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-m32 -O3 -Wall'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=x86_64-unknown-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /freetz-stable-2.0/source/host-tools/fakeroot-1.18.4/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR=''
AUTOCONF='${SHELL} /freetz-stable-2.0/source/host-tools/fakeroot-1.18.4/missing --run autoconf'
AUTOHEADER='${SHELL} /freetz-stable-2.0/source/host-tools/fakeroot-1.18.4/missing --run autoheader'
AUTOMAKE='${SHELL} /freetz-stable-2.0/source/host-tools/fakeroot-1.18.4/missing --run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-m32 -O3 -Wall'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DLSUFFIX=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDEXTRAVAR=''
LDFLAGS=''
LDLIBPATHVAR=''
LDPRELOADABS=''
LDPRELOADVAR=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MACOSX_FALSE=''
MACOSX_TRUE=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /freetz-stable-2.0/source/host-tools/fakeroot-1.18.4/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='fakeroot'
PACKAGE_BUGREPORT='clint@debian.org'
PACKAGE_NAME='fakeroot'
PACKAGE_STRING='fakeroot 1.18.4'
PACKAGE_TARNAME='fakeroot'
PACKAGE_URL=''
PACKAGE_VERSION='1.18.4'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='1.18.4'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /freetz-stable-2.0/source/host-tools/fakeroot-1.18.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/freetz-stable-2.0/tools/build'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
signal=''
sysconfdir='${prefix}/etc'
target='x86_64-unknown-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='unknown'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "fakeroot"
#define PACKAGE_TARNAME "fakeroot"
#define PACKAGE_VERSION "1.18.4"
#define PACKAGE_STRING "fakeroot 1.18.4"
#define PACKAGE_BUGREPORT "clint@debian.org"
#define PACKAGE_URL ""
#define PACKAGE "fakeroot"
#define VERSION "1.18.4"

configure: exit 77
Einiges deutet auf eine Inkompatibilität von verschiedenen versionen des gcc hin.
Sollte das richtig sein fehlt mir für die Ausdeutung das vollständige Fachwissen.

Vielen Dank
« Last Edit: 2018/01/30, 10:20:55 by towo »

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: gcc configure: error: C compiler cannot create executables
« Reply #5 on: 2018/01/29, 22:44:07 »
Kann es sein, daß Du das Manual zu freez nicht gelesen hast?freez ist für FritzBox, diese hat bekanntlich eine ARM CPU und du kannst nicht einfach auf x86 code für arm kompilieren!
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline tomsiduction

  • User
  • Posts: 207
Re: gcc configure: error: C compiler cannot create executables
« Reply #6 on: 2018/01/30, 07:16:38 »
Vielen Dank
Es geht bei diesem Schritt nicht um das compilieren, sondern um

-Entpacken
-Anpassen
-Packen

bestehender Firmware

"./fwmod"

Ich habe das schon erfolgreich früher auf einem Ubuntu-System gemacht.

Vielen Dank

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline tomsiduction

  • User
  • Posts: 207
Re: gcc configure: error: C compiler cannot create executables
« Reply #8 on: 2018/01/30, 08:01:15 »
Besten Dank für den Link.

Die fraglichen Dateien wurden schon nachinstalliert - der Fehler bleibt weiter bestehen.


Vielen Dank

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: gcc configure: error: C compiler cannot create executables
« Reply #9 on: 2018/01/30, 08:39:29 »
Dein Problem ist , daß gcc-multilib nicht in der Version vorliegt, in der gcc installiert ist.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline bluelupo

  • User
  • Posts: 2.068
    • BluelupoMe
Re: gcc configure: error: C compiler cannot create executables
« Reply #10 on: 2018/01/30, 09:40:38 »
Hi tomsiduction,

es wäre sehr hilfreich wenn du für die Kommando-Ausgaben in deinen Posts die Code-Tags nutzen würdest. Dadurch erhöht sich die Lesbarkeit ungemein ;-)

Offline tomsiduction

  • User
  • Posts: 207
Re: gcc configure: error: C compiler cannot create executables
« Reply #11 on: 2018/01/30, 10:18:10 »
Hallo und vielen Dank

@towo
Kann ich diese Versionsdifferenz egalisieren?
Wenn ja, wie?

Vielen Dank

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: gcc configure: error: C compiler cannot create executables
« Reply #12 on: 2018/01/30, 10:19:54 »
Quote
Kann ich diese Versionsdifferenz egalisieren?

Nein.


Quote
Wenn ja, wie?

Warten, bis Debian soweit ist.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.