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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-24-2004, 04:17 PM
|
#1
|
Member
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134
Rep:
|
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?
|
|
|
11-24-2004, 06:47 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
"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.
|
|
|
11-24-2004, 11:11 PM
|
#3
|
Member
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134
Original Poster
Rep:
|
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...
|
|
|
11-25-2004, 01:17 AM
|
#4
|
LQ Newbie
Registered: Jul 2004
Posts: 1
Rep:
|
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
|
|
|
11-25-2004, 10:29 AM
|
#5
|
Member
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 04:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|