Fehler 77 - configure: error: C compiler cannot create executables

JokerGermany

Mitglied
Mitglied seit
7 Aug 2007
Beiträge
606
Punkte für Reaktionen
6
Punkte
18
Versucht zu compilieren wurde ein Image für eine 7390 mit FritzOS 6.20 und openconnect

Code:
(mkdir -p /home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/build/biarch; cd /home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/build/biarch; rm -f config.cache; \
		CFLAGS="-m32 -O3 -Wall" \
		CC="gcc" \
		../../configure \
		--prefix=/home/jokergermany/freetz/trunk/tools/build \
		--enable-shared \
		--disable-nls \
	);
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 make supports nested variables... 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 `/home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/build/biarch':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [/home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/build/biarch/.configured] Fehler 77
 
Ich möchte um einen Fix bitten oder um eine Hilfestellung wie ich das fixe...
 
@JokerGermany
Es wird empfohlen, in `config.log' nachzusehen, also `/home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/build/biarch/config.log'.
Meine Vermutung ist, dass die Unterstützung für 32-Bit Programme fehlt (-m32). Du kannst entweder die entsprechenden Pakete nachinstallieren oder die Toolchain selbst erstellen, dann werden keine 32-Bit Pakete gebraucht.

@koyaanisqatsi
Die Bemerkung ist hier deplatziert.
 
Code:
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.20.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../../configure --prefix=/home/jokergermany/freetz/trunk/tools/build --enable-shared --disable-nls

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

hostname = cuppy
uname -m = x86_64
uname -r = 3.13.0-35-generic
uname -s = Linux
uname -v = #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014

/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/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games


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

configure:2369: checking build system type
configure:2383: result: x86_64-unknown-linux-gnu
configure:2403: checking host system type
configure:2416: result: x86_64-unknown-linux-gnu
configure:2436: checking target system type
configure:2449: result: x86_64-unknown-linux-gnu
configure:2491: checking for a BSD-compatible install
configure:2559: result: /usr/bin/install -c
configure:2570: checking whether build environment is sane
configure:2625: result: yes
configure:2776: checking for a thread-safe mkdir -p
configure:2815: result: /bin/mkdir -p
configure:2822: checking for gawk
configure:2838: found /usr/bin/gawk
configure:2849: result: gawk
configure:2860: checking whether make sets $(MAKE)
configure:2882: result: yes
configure:2911: checking whether make supports nested variables
configure:2928: result: yes
configure:3055: checking whether to enable maintainer-specific portions of Makefiles
configure:3064: result: no
configure:3079: checking whether make sets $(MAKE)
configure:3101: result: yes
configure:3156: checking how to print strings
configure:3183: result: printf
configure:3216: checking for style of include used by make
configure:3244: result: GNU
configure:3315: checking for gcc
configure:3342: result: gcc
configure:3571: checking for C compiler version
configure:3580: gcc --version >&5
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 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:3591: $? = 0
configure:3580: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 
configure:3591: $? = 0
configure:3580: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3591: $? = 4
configure:3580: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3591: $? = 4
configure:3611: checking whether the C compiler works
configure:3633: gcc -m32 -O3 -Wall   conftest.c  >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3637: $? = 1
configure:3675: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fakeroot"
| #define PACKAGE_TARNAME "fakeroot"
| #define PACKAGE_VERSION "1.20.1"
| #define PACKAGE_STRING "fakeroot 1.20.1"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "fakeroot"
| #define VERSION "1.20.1"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3680: error: in `/home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/build/biarch':
configure:3682: 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
am_cv_make_support_nested_variables=yes

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

ACLOCAL='${SHELL} /home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/missing aclocal-1.14'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AUTOCONF='${SHELL} /home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/missing autoconf'
AUTOHEADER='${SHELL} /home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/missing autoheader'
AUTOMAKE='${SHELL} /home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/missing automake-1.14'
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} /home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='fakeroot'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='fakeroot'
PACKAGE_STRING='fakeroot 1.20.1'
PACKAGE_TARNAME='fakeroot'
PACKAGE_URL=''
PACKAGE_VERSION='1.20.1'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='1.20.1'
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} /home/jokergermany/freetz/trunk/source/host-tools/fakeroot-1.20.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/jokergermany/freetz/trunk/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.20.1"
#define PACKAGE_STRING "fakeroot 1.20.1"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""
#define PACKAGE "fakeroot"
#define VERSION "1.20.1"

configure: exit 77
 
@JokerGermany
Es ist genau das, die 32-Bit Pakete fehlen. Konkret sind hier crt1.o crti.o crtn.o libc.so libgcc.a libgcc_s.so genannt. Von diesen existiert zwar die 64-Bit Version, aber nicht die 32-Bit Version.
Finde also heraus, welches die benötigten 32-Bit Pakete für Deine Distribution sind und installiere diese, oder erstelle die Toolchain selbst. Ignoriere außerdem alles, was koyaanisqatsi geschrieben hat.

@koyaanisqatsi

Den TS darauf hinzuweisen, dass er keine Frage gestellt hat?
...und das von dir...
Wenn Du geschrieben hättest, dass er keine Frage gestellt hat, wäre das semantisch korrekt, auch wenn man sich leicht denken konnte, was er wollte.
Auf jeden Fall will er nicht mitteilen, dass target system x86_64-unknown-linux-gnu nicht auf einer Fritz!Box laufen kann, sondern dass das Programm nicht erstellt werden konnte.

Es ist auch gar nicht beabsichtigt, dass das Programm auf der Box laufen soll, das hier zu erstellende Programm soll auf dem Build-System laufen. Mit anderen Worten, wenn man tatsächlich das target system auf mips setzen würde, unabhängig davon, ob die Tipps aus #6 dazu geeignet wären, würde vielleicht ein MIPS-Programm herauskommen, es würde aber nachher nicht laufen.
 
@JokerGermany
Es ist genau das, die 32-Bit Pakete fehlen. Konkret sind hier crt1.o crti.o crtn.o libc.so libgcc.a libgcc_s.so genannt. Von diesen existiert zwar die 64-Bit Version, aber nicht die 32-Bit Version.
Finde also heraus, welches die benötigten 32-Bit Pakete für Deine Distribution sind und installiere diese, oder erstelle die Toolchain selbst. Ignoriere außerdem alles, was koyaanisqatsi geschrieben hat.

Vielen Dank =)

Es waren einer der beiden Pakete(oder beide):
lib32gcc1
gcc-multilib
 
Ich habe die selbe Fehlermeldung mit neuem Suse.

Das Problem ist nur, dass ich die beiden genannten Pakete für Suse nicht finde.
 
Zuletzt bearbeitet:
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.