LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-19-2006, 09:08 PM   #1
nectron101
Member
 
Registered: Nov 2004
Distribution: SuSE 9.1 Personal
Posts: 41

Rep: Reputation: 15
gcc cannot create executalbles.. HELP


I have installed gcc successfully but when I tried to
Code:
./configure
kismet (and other programs too), I get the error "gcc cannot create executables, see config.log"..

I checked the config.log file, but there's nothing I can deal with at this point.. I'm totally lost.

here's the thing:
Code:
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 = nectron-laptop
uname -m = i686
uname -r = 2.6.15-26-386
uname -s = Linux
uname -v = #1 PREEMPT Fri Sep 8 19:55:17 UTC 2006

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/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
PATH: /usr/games

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1367: checking build system type
configure:1385: result: i686-pc-linux-gnulibc1
configure:1393: checking host system type
configure:1407: result: i686-pc-linux-gnulibc1
configure:1463: checking for gcc
configure:1479: found /usr/bin/gcc
configure:1489: result: gcc
configure:1733: checking for C compiler version
configure:1736: gcc --version </dev/null >&5
gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
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:1739: $? = 0
configure:1741: gcc -v </dev/null >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=pentium4 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
configure:1744: $? = 0
configure:1746: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1749: $? = 1
configure:1772: checking for C compiler default output file name
configure:1775: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:1778: $? = 1
configure: failed program was:
| /* confdefs.h.  */

Thanks in advance..
 
Old 09-20-2006, 01:55 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Have you installed the binutils package however it is called on your distro.

Code:
>$ apt-cache show binutils
Package: binutils
Priority: standard
Section: devel
Installed-Size: 7404
Maintainer: James Troup <james@nocrew.org>
Architecture: amd64
Version: 2.17-2
Provides: elf-binutils
Depends: libc6 (>= 2.3.5-1)
Suggests: binutils-doc (= 2.17-2)
Conflicts: gas, elf-binutils, modutils (<< 2.4.19-1)
Filename: pool/main/b/binutils/binutils_2.17-2_amd64.deb
Size: 2625100
MD5sum: 93fc6262b2c4d99bc3c174d532b2cd67
SHA1: afc49065cf95271783ecefef9c638be1f3d74943
SHA256: 9223bfedf4a12891b0f50faff15d45a211bfe1dcc12ca39248142145c16b912d
Description: The GNU assembler, linker and binary utilities
 The programs in this package are used to assemble, link and manipulate
 binary and object files.  They may be used in conjunction with a compiler
 and various libraries to build programs.
Build-Essential: yes
Tag: devel::machinecode, interface::commandline, role::sw:utility
 
Old 09-20-2006, 07:12 PM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
There are various program which need to be installed before you can start building software. Here are some of them (might not be an exhaustive list):
  • gcc
  • gcc-c++
  • binutils
  • make
  • automake
  • autoconf

Under ubuntu there is a meta-package called "build-essential" which installs the basics. I don't know if there is something similar under SuSE. It's been a while since I installed SuSE, but I seem to remember on installation choosing a role for the machine, and one of the roles being "developer workstation" or something similar. I assume this will ensure all the basics are installed like this. I don't know if it's possible to do this group selection of packages at a later date.

Anyhow, you will also need devemopment versions of libraries which are used by the software you want to build. In SuSE these packages have the same name as the regular library with "-devel" suffixed onto the package name (ubuntu / debian packages have the -dev suffix).

If you get a message in the ./configure stage which says "you need library X" and you already have it installed, make sure you also have the -devel package too.
 
  


Reply



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
gcc cannot create executables?! nectron101 Linux - Software 4 04-23-2006 02:24 AM
gcc gives error C compiler cannot create executables ADD Linux - Newbie 6 01-03-2006 05:43 AM
./configure fails because gcc can't create executables? anachron Linux - Newbie 3 03-01-2005 11:07 PM
gcc can't create executable Aeion Linux - Newbie 1 04-06-2004 12:03 PM
Help me to create a 2nd GCC version... SilverSnake Linux - Software 3 07-11-2002 07:05 PM

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

All times are GMT -5. The time now is 12:50 AM.

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
Open Source Consulting | Domain Registration