Linux configuration gnu error

Debugging the error «gcc: error: x86_64-linux-gnu-gcc: No such file or directory»

x86_64-linux-gnu-gcc definitely exists in /usr/bin (It’s a symlink) and the target definitely exists as well. It looks to me like the Makefile wasn’t generated correctly, perhaps there is a flag that should be passed before specifying x86_64-linux-gnu-gcc? I am unsure as well what specifying x86_64-linux-gnu-gcc is supposed to accomplish. Finally, this makefile was generated by configure, so once we narrow down the cause of the error, I’ll have to figure out what files to modify in order to fix this. (I’m a CMake kind of guy myself, but of course I didn’t choose the build system for this project.) My OS is Debian. I’ve tried building this branch as well: https://github.com/kanzure/nanoengineer/branches/kirka-updates If you can try getting this to build on your system, I would greatly appreciate it! Thanks!

How did you invoke the configure script? It looks like you added garbage to CXXFLAGS or something. Where does x86_64-linux-gnu-gcc appear inside the Makefile ?

Yes, python-dev is installed. I invoked configure with «./configure». I greped the entire 449MB (!) source tree for x86_64-linux-gnu-gcc but no results. I also tried building on a different machine, and I ended up with the exact same error. I appreciate the help. Thanks!!

cat pants, please, run the gcc command with -v option added and post its output. Actually the error in the posted command is gcc . options. x86_64-linux-gnu-gcc ..options.. and gcc trys to use x86_64-linux-gnu-gcc as input file, which is wrong. So, you should debug the Makefile.

@AndyG That’s where the error is coming from — the command being run is gcc . x86_64-linux-gnu-gcc . — gcc doesn’t see the x86_64-linux-gnu-gcc argument as an option/flag/etc, so assumes it is a file that it is supposed to compile. Since it has no path attached, it assumes that the file should be in the current directory, doesn’t find it, and produces the error message. Why that command line is what it is, though is an issue with configure or how it was run, or with the Makefile — the command as listed does not make sense.

Читайте также:  Kali linux debian 32 bit

Источник

unixforum.org

Проблема в следующем:
Скачал тему для KDE, тема в исходниках. Разархивировал. Начал делать: ./configure Вот что получилось:

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 for -p flag to install. yes checking whether build environment is sane. yes checking for gawk. gawk checking whether make sets $(MAKE). yes checking for style of include used by make. GNU checking for gcc. gcc checking for C compiler default output file name. configure: error: C compiler cannot create executables

А вот содержание config.log

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure ## ——— ## ## Platform. ## ## ——— ## hostname = debian uname -m = x86_64 uname -r = 2.6.18-4-amd64 uname -s = Linux uname -v = #1 SMP Mon Mar 26 11:36:53 CEST 2007 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown 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/bin/X11 ## ———— ## ## Core tests. ## ## ———— ## configure:1543: checking build system type configure:1561: result: x86_64-unknown-linux-gnu configure:1569: checking host system type configure:1583: result: x86_64-unknown-linux-gnu configure:1591: checking target system type configure:1605: result: x86_64-unknown-linux-gnu configure:1652: checking for a BSD-compatible install configure:1707: result: /usr/bin/install -c configure:1722: checking for -p flag to install configure:1735: result: yes configure:1746: checking whether build environment is sane configure:1789: result: yes configure:1841: checking for gawk configure:1857: found /usr/bin/gawk configure:1867: result: gawk configure:1877: checking whether make sets $(MAKE) configure:1897: result: yes configure:2114: checking for style of include used by make configure:2142: result: GNU configure:2289: checking for gcc configure:2305: found /usr/bin/gcc configure:2315: result: gcc configure:2559: checking for C compiler version configure:2562: gcc —version &5 gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Copyright © 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:2565: $? = 0 configure:2567: 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 —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.2 20061115 (prerelease) (Debian 4.1.1-21) configure:2570: $? = 0 configure:2572: gcc -V &5 gcc: ‘-V’ option must have argument configure:2575: $? = 1 configure:2598: checking for C compiler default output file name configure:2601: gcc conftest.c >&5 /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status configure:2604: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME «» | #define PACKAGE_TARNAME «» | #define PACKAGE_VERSION «» | #define PACKAGE_STRING «» | #define PACKAGE_BUGREPORT «» | #define PACKAGE «lipstik» | #define VERSION «0.1» | /* end confdefs.h. */ | | int | main () | < | | ; | return 0; | >configure:2643: error: C compiler cannot create executables See `config.log’ for more details. ## —————- ## ## Cache variables. ## ## —————- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_build_alias=x86_64-unknown-linux-gnu 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_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_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_host_alias=x86_64-unknown-linux-gnu ac_cv_path_install=’/usr/bin/install -c’ 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 ac_cv_target_alias=x86_64-unknown-linux-gnu ## —————— ## ## Output variables. ## ## —————— ## ACLOCAL=’$ /home/kirja/Desktop/lipstik-2.2.2/admin/missing —run aclocal-1.9′ AMDEPBACKSLASH=’\’ AMDEP_FALSE=’#’ AMDEP_TRUE=» AMTAR=’$ /home/kirja/Desktop/lipstik-2.2.2/admin/missing —run tar’ ARTSCCONFIG=» AUTOCONF=’$ /home/kirja/Desktop/lipstik-2.2.2/admin/missing —run autoconf’ AUTODIRS=» AUTOHEADER=’$ /home/kirja/Desktop/lipstik-2.2.2/admin/missing —run autoheader’ AUTOMAKE=’$ /home/kirja/Desktop/lipstik-2.2.2/admin/missing —run automake-1.9′ AWK=’gawk’ BROCKENBORING=» CC=’gcc’ CCDEPMODE=» CFLAGS=’ ‘ CONF_FILES=’ $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in’ CPP=» CPPFLAGS=» CXX=» CXXCPP=» CXXDEPMODE=» CXXFLAGS=» CYGPATH_W=’echo’ DCOPIDL2CPP=» DCOPIDL=» DCOP_DEPENDENCIES=» DEFS=» DEPDIR=’.deps’ ECHO=’echo’ ECHO_C=» ECHO_N=’-n’ ECHO_T=» EGREP=» EXEEXT=» FRAMEWORK_COREAUDIO=» GMSGFMT=» INSTALL_DATA=’$ -m 644′ INSTALL_PROGRAM=’$ $(INSTALL_STRIP_FLAG)’ INSTALL_SCRIPT=’$’ INSTALL_STRIP_PROGRAM=’$ $(install_sh) -c -s’ KDECONFIG=» KDE_EXTRA_RPATH=» KDE_INCLUDES=» KDE_LDFLAGS=» KDE_MT_LDFLAGS=» KDE_MT_LIBS=» KDE_NO_UNDEFINED=» KDE_PLUGIN=» KDE_RPATH=» KDE_USE_CLOSURE_FALSE=» KDE_USE_CLOSURE_TRUE=» KDE_USE_FINAL_FALSE=» KDE_USE_FINAL_TRUE=» KDE_USE_NMCHECK_FALSE=» KDE_USE_NMCHECK_TRUE=» KDE_XSL_STYLESHEET=» LDFLAGS=» LIBCOMPAT=» LIBCRYPT=» LIBDL=» LIBJPEG=» LIBOBJS=» LIBPNG=» LIBPTHREAD=» LIBRESOLV=» LIBS=» LIBSM=» LIBSOCKET=» LIBTOOL=» LIBUCB=» LIBUTIL=» LIBZ=» LIB_KAB=» LIB_KABC=» LIB_KDECORE=» LIB_KDEPRINT=» LIB_KDEUI=» LIB_KFILE=» LIB_KFM=» LIB_KHTML=» LIB_KIO=» LIB_KPARTS=» LIB_KSPELL=» LIB_KSYCOCA=» LIB_POLL=» LIB_QPE=» LIB_QT=» LIB_SMB=» LIB_X11=» LIB_XEXT=» LN_S=» LTLIBOBJS=» MAKEINFO=’$ /home/kirja/Desktop/lipstik-2.2.2/admin/missing —run makeinfo’ MCOPIDL=» MEINPROC=» MOC=» MSGFMT=» NOOPT_CFLAGS=» NOOPT_CXXFLAGS=» OBJEXT=» PACKAGE=’lipstik’ PACKAGE_BUGREPORT=» PACKAGE_NAME=» PACKAGE_STRING=» PACKAGE_TARNAME=» PACKAGE_VERSION=» PATH_SEPARATOR=’:’ QTE_NORTTI=» QT_INCLUDES=» QT_LDFLAGS=» RANLIB=» SET_MAKE=» SHELL=’/bin/sh’ STRIP=» TOPSUBDIRS=» UIC=» UIC_TR=» USER_INCLUDES=» USER_LDFLAGS=» USE_EXCEPTIONS=» USE_RTTI=» USE_THREADS=» VERSION=’0.1′ WOVERLOADED_VIRTUAL=» XGETTEXT=» X_EXTRA_LIBS=» X_INCLUDES=» X_LDFLAGS=» X_PRE_LIBS=» X_RPATH=» ac_ct_CC=’gcc’ ac_ct_CXX=» ac_ct_RANLIB=» ac_ct_STRIP=» all_includes=» all_libraries=» am__fastdepCC_FALSE=» am__fastdepCC_TRUE=» am__fastdepCXX_FALSE=» am__fastdepCXX_TRUE=» am__include=’include’ am__leading_dot=’.’ am__quote=» am__tar=’$ chof — «$$tardir»‘ am__untar=’$ xf -‘ bindir=’$/bin’ build=’x86_64-unknown-linux-gnu’ build_alias=» build_cpu=’x86_64′ build_os=’linux-gnu’ build_vendor=’unknown’ datadir=’$/share’ exec_prefix=’NONE’ host=’x86_64-unknown-linux-gnu’ host_alias=» host_cpu=’x86_64′ host_os=’linux-gnu’ host_vendor=’unknown’ include_ARTS_FALSE=» include_ARTS_TRUE=» includedir=’$/include’ infodir=’$/info’ install_sh=’/home/kirja/Desktop/lipstik-2.2.2/admin/install-sh’ kde_appsdir=» kde_bindir=» kde_confdir=» kde_datadir=» kde_htmldir=» kde_icondir=» kde_includes=» kde_libraries=» kde_libs_htmldir=» kde_libs_prefix=» kde_locale=» kde_mimedir=» kde_moduledir=» kde_qtver=» kde_servicesdir=» kde_servicetypesdir=» kde_sounddir=» kde_styledir=» kde_templatesdir=» kde_wallpaperdir=» kde_widgetdir=» kdeinitdir=» libdir=’$/lib’ libexecdir=’$/libexec’ localstatedir=’$/var’ mandir=’$/man’ mkdir_p=’mkdir -p —‘ oldincludedir=’/usr/include’ prefix=’/usr/local/kde’ program_transform_name=’s,x,x,’ qt_includes=» qt_libraries=» sbindir=’$/sbin’ sharedstatedir=’$/com’ sysconfdir=’$/etc’ target=’x86_64-unknown-linux-gnu’ target_alias=» target_cpu=’x86_64′ target_os=’linux-gnu’ target_vendor=’unknown’ x_includes=’NONE’ x_libraries=’NONE’ xdg_appsdir=» xdg_directorydir=» ## ———— ## ## confdefs.h. ## ## ———— ## #define PACKAGE «lipstik» #define PACKAGE_BUGREPORT «» #define PACKAGE_NAME «» #define PACKAGE_STRING «» #define PACKAGE_TARNAME «» #define PACKAGE_VERSION «» #define VERSION «0.1»

Читайте также:  Add flutter to path linux

Подскажите пожалуйста, как это можно решить?

registered as user #420294 with the Linux Counter

Источник

Оцените статью
Adblock
detector