C compiler cannot create executables See `config.log' for more details
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
C compiler cannot create executables See `config.log' for more details
I just Installed kubuntu 7.10 and updated the kde with ´sudo apt-get install kde´ and now I want to install an application but I get this error
¨ C compiler cannot create executables See `config.log' for more details¨
I am a newbie... can someone tell me the solution in a step by step procedure ... thanks .... I was searching for the solution in the forums but couldnt get it much ... but as I found out it has something to do with gcc congif .... I dont know anything ......... thank you so much for your help ............
I am trying to install aquamarine-0.2.1 package that I think is the newest vesion for beryl(desktop features), I get this error when I run ´./configure´ (that I think its for compiling the code) and I ran the ´which gcc´ and it showed me ´/usr/bin/gcc´ after I cat config.log ..... the out put is quite long anyway I post it here ..... do you think the problem is because of KDE installed on ubuntu (KUBUNTU) ???or if you think I should update the gcc how should I do that ???
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = ubuntu
uname -m = i686
uname -r = 2.6.22-14-generic
uname -s = Linux
uname -v = #1 SMP Sun Oct 14 23:05:12 GMT 2007
configure:2161: checking build system type
configure:2179: result: i686-pc-linux-gnu
configure:2201: checking host system type
configure:2216: result: i686-pc-linux-gnu
configure:2238: checking target system type
configure:2253: result: i686-pc-linux-gnu
configure:2314: checking for a BSD-compatible install
configure:2370: result: /usr/bin/install -c
configure:2385: checking for -p flag to install
configure:2398: result: yes
configure:2409: checking whether build environment is sane
configure:2452: result: yes
configure:2504: checking for gawk
configure:2534: result: no
configure:2504: checking for mawk
configure:2520: found /usr/bin/mawk
configure:2531: result: mawk
configure:2542: checking whether make sets $(MAKE)
configure:2563: result: yes
configure:2765: checking for kde-config
configure:2827: result: /usr/bin/kde-config
configure:2922: checking where to install
configure:2926: result: /usr (as returned by kde-config)
configure:2981: checking for style of include used by make
configure:3009: result: GNU
configure:3159: checking for gcc
configure:3175: found /usr/bin/gcc
configure:3186: result: gcc
configure:3424: checking for C compiler version
configure:3431: gcc --version >&5
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Copyright (C) 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:3434: $? = 0
configure:3441: gcc -v >&5
Using built-in specs.
Target: i486-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 --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:3444: $? = 0
configure:3451: gcc -V >&5
gcc: '-V' option must have argument
configure:3454: $? = 1
configure:3477: checking for C compiler default output file name
configure:3504: gcc conftest.c >&5
configure:3507: $? = 0
configure:3545: result: a.out
configure:3562: checking whether the C compiler works
configure:3572: ./a.out
configure:3575: $? = 0
configure:3592: result: yes
configure:3599: checking whether we are cross compiling
configure:3601: result: no
configure:3604: checking for suffix of executables
configure:3611: gcc -o conftest conftest.c >&5
configure:3614: $? = 0
configure:3638: result:
configure:3644: checking for suffix of object files
configure:3670: gcc -c conftest.c >&5
configure:3673: $? = 0
configure:3696: result: o
configure:3700: checking whether we are using the GNU C compiler
configure:3729: gcc -c conftest.c >&5
configure:3735: $? = 0
configure:3752: result: yes
configure:3757: checking whether gcc accepts -g
configure:3787: gcc -c -g conftest.c >&5
configure:3793: $? = 0
configure:3892: result: yes
configure:3909: checking for gcc option to accept ISO C89
configure:3983: gcc -c conftest.c >&5
configure:3989: $? = 0
configure:4012: result: none needed
configure:4032: checking dependency style of gcc
configure:4122: result: gcc3
configure:4145: checking how to run the C preprocessor
configure:4185: gcc -E conftest.c
configure:4191: $? = 0
configure:4222: gcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:4228: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4261: result: gcc -E
configure:4290: gcc -E conftest.c
configure:4296: $? = 0
configure:4327: gcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:4333: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4457: checking for g++
configure:4487: result: no
configure:4457: checking for c++
configure:4487: result: no
configure:4457: checking for gpp
configure:4487: result: no
configure:4457: checking for aCC
configure:4487: result: no
configure:4457: checking for CC
configure:4487: result: no
configure:4457: checking for cxx
configure:4487: result: no
configure:4457: checking for cc++
configure:4487: result: no
configure:4457: checking for cl.exe
configure:4487: result: no
configure:4457: checking for FCC
configure:4487: result: no
configure:4457: checking for KCC
configure:4487: result: no
configure:4457: checking for RCC
configure:4487: result: no
configure:4457: checking for xlC_r
configure:4487: result: no
configure:4457: checking for xlC
configure:4487: result: no
configure:4515: checking for C++ compiler version
configure:4522: g++ --version >&5
./configure: line 4523: g++: command not found
configure:4525: $? = 127
configure:4532: g++ -v >&5
./configure: line 4533: g++: command not found
configure:4535: $? = 127
configure:4542: g++ -V >&5
./configure: line 4543: g++: command not found
configure:4545: $? = 127
configure:4548: checking whether we are using the GNU C++ compiler
configure:4577: g++ -c conftest.cpp >&5
./configure: line 4578: g++: command not found
configure:4583: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
|
| int
| main ()
| {
| #ifndef __GNUC__
| choke me
| #endif
|
| ;
| return 0;
| }
configure:4600: result: no
configure:4605: checking whether g++ accepts -g
configure:4635: g++ -c -g conftest.cpp >&5
./configure: line 4636: g++: command not found
configure:4641: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4673: g++ -c conftest.cpp >&5
./configure: line 4674: g++: command not found
configure:4679: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4712: g++ -c -g conftest.cpp >&5
./configure: line 4713: g++: command not found
configure:4718: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4740: result: no
configure:4765: checking dependency style of g++
configure:4855: result: none
configure:4874: checking whether gcc is blacklisted
configure:4905: gcc -c -O2 conftest.c >&5
configure:4911: $? = 0
configure:4927: result: no
configure:5255: checking whether g++ supports -Wmissing-format-attribute
configure:5295: rm -rf SunWS_cache; g++ -o conftest -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wmissing-format-attribute conftest.cpp 1>&5
./configure: line 5296: g++: command not found
configure:5301: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
|
| int
| main ()
| {
| return 0;
| ;
| return 0;
| }
configure:5333: result: no
configure:5340: checking whether gcc supports -Wmissing-format-attribute
configure:5377: gcc -o conftest -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wmissing-format-attribute conftest.c >&5
configure:5383: $? = 0
configure:5410: result: yes
configure:5424: checking whether g++ supports -Wundef
configure:5464: rm -rf SunWS_cache; g++ -o conftest -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wundef conftest.cpp 1>&5
./configure: line 5465: g++: command not found
configure:5470: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
|
| int
| main ()
| {
| return 0;
| ;
| return 0;
| }
configure:5502: result: no
configure:5509: checking whether g++ supports -Wno-long-long
configure:5549: rm -rf SunWS_cache; g++ -o conftest -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-long-long conftest.cpp 1>&5
./configure: line 5550: g++: command not found
configure:5555: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
|
| int
| main ()
| {
| return 0;
| ;
| return 0;
| }
configure:5587: result: no
configure:5594: checking whether g++ supports -Wno-non-virtual-dtor
configure:5634: rm -rf SunWS_cache; g++ -o conftest -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor conftest.cpp 1>&5
./configure: line 5635: g++: command not found
configure:5640: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
|
| int
| main ()
| {
| return 0;
| ;
| return 0;
| }
configure:5672: result: no
configure:6865: checking how to run the C++ preprocessor
configure:6901: g++ -E conftest.cpp
./configure: line 6902: g++: command not found
configure:6907: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:6901: g++ -E conftest.cpp
./configure: line 6902: g++: command not found
configure:6907: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:6901: /lib/cpp conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:6907: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:6901: /lib/cpp conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:6907: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:6977: result: /lib/cpp
configure:7006: /lib/cpp conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:7012: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:7006: /lib/cpp conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:7012: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aquamarine"
| #define VERSION "0.3.0-svn"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:7074: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
All right, I guess I asked for it... if you put code tags around your output, it takes up less space.
Quote:
I am trying to install aquamarine-0.2.1 package that I think is the newest version for beryl(desktop features),
Hmmm... OK, aquamarine is a window decorator from the beryl project.
Quote:
I get this error when I run ´./configure´ (that I think its for compiling the code)
the config file is there to prepare your system for compiling. The "make" command does the actual work. A failed config means you do not have the required tools to attempt compiling the program.
I've separated out the bits that went wrong:
Code:
configure:2520: found /usr/bin/mawk
configure:3175: found /usr/bin/gcc
[...]
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
[fine, you have mawk and gcc installed...]
configure:4145: checking how to run the C preprocessor
configure:4185: gcc -E conftest.c
configure:4191: $? = 0
configure:4222: gcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:4228: $? = 1
configure: failed program was:
| /* confdefs.h. */
configure:4327: gcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
./configure: line 4523: g++: command not found
./configure: line 4533: g++: command not found
./configure: line 4543: g++: command not found
configure:4548: checking whether we are using the GNU C++ compiler
configure:4577: g++ -c conftest.cpp >&5
./configure: line 4578: g++: command not found
./configure: line 4636: g++: command not found
configure:4673: g++ -c conftest.cpp >&5
./configure: line 4674: g++: command not found
configure:4712: g++ -c -g conftest.cpp >&5
./configure: line 4713: g++: command not found
configure:6901: /lib/cpp conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:6901: /lib/cpp conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:7006: /lib/cpp conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
(etc)
configure:7074: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
All this suggests you do not have a preprocessor installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.