Überprüfen, ob der C-Compiler funktioniert ... nein

5395
oscyp

was mache ich falsch

Der erste Fehler, den ich in einem Protokoll sehe, ist: gcc: Fehler: nicht erkannte Befehlszeilenoption '-V'

Ich habe versucht, einige Ratschläge von Google zu befolgen - aber nichts hilft ....

Ich habe bereits installiert:

  • gcc-4.8.4-Arm-1
  • gcc-solibs-4.8.4-arm-1
  • automake-1,15-arm-1
  • make-3,81-arm-1
  • autoconf-2.68-arm-01
  • libconfig-1.4.9-arm-1
  • mpfr-3.1.0-arm-1
  • binutils-2.23.1-arm-1

Ausgabe:

root@NAS:/i-data/md0/admin/sshpass-1.06# ./configure checking for a BSD-compatible install... /ffp/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /ffp/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/i-data/md0/admin/sshpass-1.06': configure: error: C compiler cannot create executables See 'config.log' for more details 

Diese Datei enthält alle Meldungen, die von Compilern während der Ausführung von configure erzeugt werden, um das Debuggen zu erleichtern, wenn configure einen Fehler macht.

Es wurde von sshpass configure 1.06 erstellt, das von GNU Autoconf 2.69 generiert wurde. Aufrufbefehlszeile war

$ ./configure   ## --------- ## ## Platform. ## ## --------- ##  hostname = NAS uname -m = armv5tel uname -r = 2.6.31.8 uname -s = Linux uname -v = #2 Fri Mar 11 17:35:20 CST 2016  /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: /ffp/sbin PATH: /usr/sbin PATH: /sbin PATH: /ffp/bin PATH: /usr/bin PATH: /bin   ## ----------- ## ## Core tests. ## ## ----------- ##  configure:2254: checking for a BSD-compatible install configure:2322: result: /ffp/bin/install -c configure:2333: checking whether build environment is sane configure:2388: result: yes configure:2539: checking for a thread-safe mkdir -p configure:2578: result: /ffp/bin/mkdir -p configure:2585: checking for gawk configure:2601: found /ffp/bin/gawk configure:2612: result: gawk configure:2623: checking whether make sets $(MAKE) configure:2645: result: yes configure:2674: checking whether make supports nested variables configure:2691: result: yes configure:2832: checking for style of include used by make configure:2860: result: GNU configure:2931: checking for gcc configure:2947: found /ffp/bin/gcc configure:2958: result: gcc configure:3187: checking for C compiler version configure:3196: gcc --version >&5 gcc (GCC) 4.8.4 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:3207: $? = 0 configure:3196: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/zy-pkgs/ffproot/ffp/bin/../libexec/gcc/arm-ffp-linux-uclibcgnueabi/4.8.4/lto-wrapper Target: arm-ffp-linux-uclibcgnueabi Configured with: ../gcc-4.8.4/configure --prefix=/ffp --with-local-prefix=/ffp --build=arm-ffp-linux-uclibcgnueabi --host=arm-ffp-linux-uclibcgnueabi --disable-nls --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix --disable-multilib --with-system-zlib --enable-checking=release --with-float=soft --with-native-system-header-dir=/ffp/include Thread model: posix gcc version 4.8.4 (GCC)  configure:3207: $? = 0 configure:3196: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3207: $? = 1 configure:3196: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3207: $? = 1 configure:3227: checking whether the C compiler works configure:3249: gcc conftest.c >&5 /ffp/bin/ld: cannot find crt1.o: No such file or directory /ffp/bin/ld: cannot find crti.o: No such file or directory collect2: error: ld returned 1 exit status configure:3253: $? = 1 configure:3291: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "sshpass" | #define PACKAGE_TARNAME "sshpass" | #define PACKAGE_VERSION "1.06" | #define PACKAGE_STRING "sshpass 1.06" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "sshpass" | #define VERSION "1.06" | /* end confdefs.h. */ |  | int | main () | { |  | ; | return 0; | } configure:3296: error: in `/i-data/md0/admin/sshpass-1.06': configure:3298: error: C compiler cannot create executables See `config.log' for more details  ## ---------------- ## ## Cache variables. ## ## ---------------- ##  ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= 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_path_install='/ffp/bin/install -c' ac_cv_path_mkdir=/ffp/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_make_make_set=yes am_cv_make_support_nested_variables=yes  ## ----------------- ## ## Output variables. ## ## ----------------- ##  ACLOCAL='$ /i-data/md0/admin/sshpass-1.06/missing aclocal-1.15' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='$$' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AUTOCONF='$ /i-data/md0/admin/sshpass-1.06/missing autoconf' AUTOHEADER='$ /i-data/md0/admin/sshpass-1.06/missing autoheader' AUTOMAKE='$ /i-data/md0/admin/sshpass-1.06/missing automake-1.15' AWK='gawk' CC='gcc' CCDEPMODE='' CFLAGS='' CPP='' CPPFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='.deps' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' GREP='' INSTALL_DATA='$ -m 644' INSTALL_PROGRAM='$' INSTALL_SCRIPT='$' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LDFLAGS='' LIBOBJS='' LIBS='' LTLIBOBJS='' MAKEINFO='$ /i-data/md0/admin/sshpass-1.06/missing makeinfo' MKDIR_P='/ffp/bin/mkdir -p' OBJEXT='' PACKAGE='sshpass' PACKAGE_BUGREPORT='' PACKAGE_NAME='sshpass' PACKAGE_STRING='sshpass 1.06' PACKAGE_TARNAME='sshpass' PACKAGE_URL='' PACKAGE_VERSION='1.06' PATH_SEPARATOR=':' SET_MAKE='' SHELL='/ffp/bin/sh' STRIP='' VERSION='1.06' ac_ct_CC='gcc' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__include='include' am__isrc='' am__leading_dot='.' am__nodep='_no' am__quote='' am__tar='$$ chof - "$$tardir"' am__untar='$$ xf -' bindir='$/bin' build_alias='' datadir='$' datarootdir='$/share' docdir='$/doc/$' dvidir='$' exec_prefix='NONE' host_alias='' htmldir='$' includedir='$/include' infodir='$/info' install_sh='$ /i-data/md0/admin/sshpass-1.06/install-sh' libdir='$/lib' libexecdir='$/libexec' localedir='$/locale' localstatedir='$/var' mandir='$/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='$' prefix='NONE' program_transform_name='s,x,x,' psdir='$' runstatedir='$/run' sbindir='$/sbin' sharedstatedir='$/com' sysconfdir='$/etc' target_alias=''  ## ----------- ## ## confdefs.h. ## ## ----------- ##  /* confdefs.h */ #define PACKAGE_NAME "sshpass" #define PACKAGE_TARNAME "sshpass" #define PACKAGE_VERSION "1.06" #define PACKAGE_STRING "sshpass 1.06" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "sshpass" #define VERSION "1.06"  configure: exit 77 
0
Bitte verbringen Sie etwas Zeit, um Ihren Beitrag lesbar zu machen. Hast du die config.log überprüft? Ihr configure-Befehl schlägt bereits fehl. Seth vor 6 Jahren 0
Laut Fehlerbericht haben Sie "gcc -V" eingegeben. Was Sie wahrscheinlich beabsichtigt haben, ist "gcc -v" (Kleinschreibung "v"). Eine Liste der Optionen finden Sie unter "gcc --help" oder "man gcc". AFH vor 6 Jahren 0
Entschuldigung für den schlecht aussehenden Beitrag - es ist das erste Mal, dass ich hier poste. Jedenfalls habe ich gerade ./configure gemacht - und das ist was ich habe. oscyp vor 6 Jahren 0
Oder vielleicht muss ich es nicht selbst kompilieren - gibt es irgendwelche sshpass-Binärdateien für arch linux, arm architecture? Ich kann es nirgendwo finden ... oscyp vor 6 Jahren 0

1 Antwort auf die Frage

1
David Parsons

Ich hatte ein ähnliches Problem.

Ich habe es gelöst, indem ich die folgenden Befehle in ein Terminal eingegeben habe:

sudo apt-get install --reinstall build-essential

sudo apt-get install --reinstall gcc

Sudo dpkg-Rekonfiguration von Build-Essential

sudo dpkg-reconfigure gcc

Nachdem ich kein Problem hatte.