LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2004, 04:17 PM   #1
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Rep: Reputation: 15
Compiler cannot create executables?


I am running a newly installed Debian sid system. I am trying to compile a window decoration since the deb package isn't for 64bit. Here is what I get after doing ./configure on the sources......

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... no
checking for mawk... mawk
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
See `config.log' for more details.


Here is the top portion of the config.log....not all of it since it is lengthy....
## ----------- ##
## 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:1809: checking for gawk
configure:1838: result: no
configure:1809: checking for mawk
configure:1825: found /usr/bin/mawk
configure:1835: result: mawk
configure:1845: checking whether make sets $(MAKE)
configure:1865: result: yes
configure:2071: checking for style of include used by make
configure:2099: result: GNU
configure:2246: checking for gcc
configure:2262: found /usr/bin/gcc
configure:2272: result: gcc
configure:2516: checking for C compiler version
configure:2519: gcc --version </dev/null >&5
gcc (GCC) 3.3.5 (Debian 1:3.3.5-2)
Copyright (C) 2003 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:2522: $? = 0
configure:2524: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/x86_64-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc --disable-multilib x86_64-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-2)
configure:2527: $? = 0
configure:2529: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2532: $? = 1
configure:2555: checking for C compiler default output file name
configure:2558: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2561: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "crystal"
| #define VERSION "0.7"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2600: error: C compiler cannot create executables
See `config.log' for more details.


OK what's missing, or what's wrong here?
 
Old 11-24-2004, 06:47 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"OK what's missing, or what's wrong here?"

The important error message is:
"/usr/bin/ld: crt1.o: No such file: No such file or directory"

On my system crt1.0 is in /usr/lib. Debian may be different. You can use the find command to look for crt1.o

find /usr -iname "*crt1.o*"
find /lib -iname "*crt1.o*"

On my system /usr/lib/crt1.o is provided by a package called glibc-devel. Debian probably provides a package with a similar name.

-----------------------------
Steve Stites

Last edited by jailbait; 11-24-2004 at 06:49 PM.
 
Old 11-24-2004, 11:11 PM   #3
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Original Poster
Rep: Reputation: 15
I installed libc6-dev and it fixed the problem. Thanks for pointing me in the right direction. Now I'm working on fixing other dependencies so I can compile...
 
Old 11-25-2004, 01:17 AM   #4
kcgan
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
i'm installing zebra and face problem executing it with error message:

"can't open configuration file [/usr/local/etc/zebra.conf]"

and when i check through the intall.txt i found there is a problem when i issue command CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
and here is the error message:

"checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details."

anybody pls me help solving this problem. thanks
 
Old 11-25-2004, 10:29 AM   #5
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Original Poster
Rep: Reputation: 15
You may be missing a c library or something. For Debian I installed libc6-dev, but whatever distro jailbait is running calls the package glibc-devel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ compiler cannot create executables eomerek Linux - Newbie 28 12-13-2010 09:14 AM
C compiler cannot create executables packets Linux - Security 3 05-03-2010 05:30 PM
C++ compiler cannot create executables notmatt Linux - Newbie 4 09-30-2004 07:59 AM
C compiler cannot create executables w0lv3rin3 Linux - Software 4 08-07-2004 10:44 AM
C compiler cannot create executables londonboi Debian 2 09-23-2003 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration