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.
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=’$
Подскажите пожалуйста, как это можно решить?
registered as user #420294 with the Linux Counter