LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   C compiler cannot create executables (https://www.linuxquestions.org/questions/linux-software-2/c-compiler-cannot-create-executables-237641/)

martincho 10-01-2004 03:32 PM

C compiler cannot create executables
 
Oi Caras, (Hey Mates)

I'm having problem when install programs, Krusader and Snort,

Seems to be that the problem are not the programs....

Any idea?

From Snort I receive the following answer:
[root@conect snort-2.2.0]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
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... configure: error: C compiler cannot create executables

and its "config.log" says:
his 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.53. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = conect.localdomain
uname -m = i686
uname -r = 2.6.5-63077cl
uname -s = Linux
uname -v = #1 Thu Jun 17 21:29:07 BRT 2004

/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/lib/kde3/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/local/bin
PATH: /usr/bin/X11
PATH: /usr/games
PATH: /usr/lib/java2/bin
PATH: /usr/lib/java2/jre/bin
PATH: /usr/lib/qt3/bin


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

configure:1260: checking for a BSD-compatible install
configure:1314: result: /usr/bin/install -c
configure:1325: checking whether build environment is sane
configure:1368: result: yes
configure:1401: checking for gawk
configure:1417: found /bin/gawk
configure:1427: result: gawk
configure:1437: checking whether make sets ${MAKE}
configure:1457: result: yes
configure:1622: checking for style of include used by make
configure:1650: result: GNU
configure:1721: checking for gcc
configure:1737: found /usr/bin/gcc
configure:1747: result: gcc
configure:1991: checking for C compiler version
configure:1994: gcc --version </dev/null >&5
gcc (GCC) 3.3.3 (release)
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:1997: $? = 0
configure:1999: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-conectiva-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --enable-shared --disable-checking --enable-long-long --enable-__cxa_atexit --enable-threads=posix --disable-libunwind-exceptions --enable-libgcj --enable-languages=c,c++,f77,objc,java --with-system-zlib --host=i386-conectiva-linux --target=i386-conectiva-linux --with-gxx_include_dir=/usr/include/c++/3.3.3
Thread model: posix
gcc version 3.3.3 (release)
configure:2002: $? = 0
configure:2004: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2007: $? = 1
configure:2033: checking for C compiler default output
configure:2036: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2039: $? = 1
configure: failed program was:
#line 2010 "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

;
return 0;
}
configure:2066: error: C compiler cannot create executables

## ---------------- ##
## Cache variables. ##
## ---------------- ##

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_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_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

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "snort"
#define VERSION "2.2.0"

configure: exit 77
----------------------------------------------------------------------
And from Krusader the following:

root@conect krusader]# cd krusader-1.40
[root@conect krusader-1.40]# ./configure
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
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
See `config.log' for more details.

And its "config.log" says:

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 = conect.localdomain
uname -m = i686
uname -r = 2.6.5-63077cl
uname -s = Linux
uname -v = #1 Thu Jun 17 21:29:07 BRT 2004

/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/lib/kde3/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/local/bin
PATH: /usr/bin/X11
PATH: /usr/games
PATH: /usr/lib/java2/bin
PATH: /usr/lib/java2/jre/bin
PATH: /usr/lib/qt3/bin


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

configure:1561: checking build system type
configure:1579: result: i686-pc-linux-gnulibc1
configure:1587: checking host system type
configure:1601: result: i686-pc-linux-gnulibc1
configure:1609: checking target system type
configure:1623: result: i686-pc-linux-gnulibc1
configure:1670: checking for a BSD-compatible install
configure:1725: result: /usr/bin/install -c
configure:1740: checking for -p flag to install
configure:1753: result: yes
configure:1764: checking whether build environment is sane
configure:1807: result: yes
configure:1827: checking for gawk
configure:1843: found /bin/gawk
configure:1853: result: gawk
configure:1863: checking whether make sets $(MAKE)
configure:1883: result: yes
configure:2089: checking for style of include used by make
configure:2117: result: GNU
configure:2264: checking for gcc
configure:2280: found /usr/bin/gcc
configure:2290: result: gcc
configure:2534: checking for C compiler version
configure:2537: gcc --version </dev/null >&5
gcc (GCC) 3.3.3 (release)
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:2540: $? = 0
configure:2542: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-conectiva-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --enable-shared --disable-checking --enable-long-long --enable-__cxa_atexit --enable-threads=posix --disable-libunwind-exceptions --enable-libgcj --enable-languages=c,c++,f77,objc,java --with-system-zlib --host=i386-conectiva-linux --target=i386-conectiva-linux --with-gxx_include_dir=/usr/include/c++/3.3.3
Thread model: posix
gcc version 3.3.3 (release)
configure:2545: $? = 0
configure:2547: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2550: $? = 1
configure:2573: checking for C compiler default output file name
configure:2576: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2579: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "krusader"
| #define VERSION "1.40"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2618: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnulibc1
ac_cv_build_alias=i686-pc-linux-gnulibc1
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_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_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=i686-pc-linux-gnulibc1
ac_cv_host_alias=i686-pc-linux-gnulibc1
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=i686-pc-linux-gnulibc1
ac_cv_target_alias=i686-pc-linux-gnulibc1

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/software/krusader/krusader-1.40/admin/missing --run aclocal-1.6'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/software/krusader/krusader-1.40/admin/missing --run tar'
AR=''
ARTSCCONFIG=''
AUTOCONF='${SHELL} /home/software/krusader/krusader-1.40/admin/missing --run autoconf'
AUTODIRS=''
AUTOHEADER='${SHELL} /home/software/krusader/krusader-1.40/admin/missing --run autoheader'
AUTOMAKE='${SHELL} /home/software/krusader/krusader-1.40/admin/missing --run automake-1.6'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=' '
CONF_FILES=' $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
DCOPIDL2CPP=''
DCOPIDL=''
DCOPIDLNG=''
DCOP_DEPENDENCIES=''
DEFS=''
DEPDIR='.deps'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
FRAMEWORK_COREAUDIO=''
GMSGFMT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
KCFG_DEPENDENCIES=''
KCONFIG_COMPILER=''
KDECONFIG=''
KDE_EXTRA_RPATH=''
KDE_INCLUDES=''
KDE_LDFLAGS=''
KDE_MT_LDFLAGS=''
KDE_MT_LIBS=''
KDE_NO_UNDEFINED=''
KDE_PLUGIN=''
KDE_RPATH=''
KDE_USE_CLOSURE_FALSE=''
KDE_USE_CLOSURE_TRUE=''
KDE_USE_FINAL_FALSE=''
KDE_USE_FINAL_TRUE=''
KDE_USE_NMCHECK_FALSE=''
KDE_USE_NMCHECK_TRUE=''
KDE_XSL_STYLESHEET=''
LDFLAGS=''
LIBCOMPAT=''
LIBCRYPT=''
LIBDL=''
LIBJPEG=''
LIBOBJS=''
LIBPNG=''
LIBPTHREAD=''
LIBRESOLV=''
LIBS=''
LIBSM=''
LIBSOCKET=''
LIBTOOL=''
LIBUCB=''
LIBUTIL=''
LIBZ=''
LIB_KAB=''
LIB_KABC=''
LIB_KDECORE=''
LIB_KDEPIM=''
LIB_KDEPRINT=''
LIB_KDEUI=''
LIB_KFILE=''
LIB_KFM=''
LIB_KHTML=''
LIB_KIO=''
LIB_KPARTS=''
LIB_KSPELL=''
LIB_KSYCOCA=''
LIB_KUTILS=''
LIB_POLL=''
LIB_QPE=''
LIB_QT=''
LIB_SMB=''
LIB_X11=''
LIB_XEXT=''
LIB_XRENDER=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/software/krusader/krusader-1.40/admin/missing --run makeinfo'
MCOPIDL=''
MEINPROC=''
MOC=''
MSGFMT=''
NOOPT_CFLAGS=''
NOOPT_CXXFLAGS=''
OBJEXT=''
PACKAGE='krusader'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL=''
QTE_NORTTI=''
QT_INCLUDES=''
QT_LDFLAGS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
TOPSUBDIRS=''
UIC=''
UIC_TR=''
USER_INCLUDES=''
USER_LDFLAGS=''
USE_EXCEPTIONS=''
USE_RTTI=''
USE_THREADS=''
VERSION='1.40'
WOVERLOADED_VIRTUAL=''
XGETTEXT=''
XMLLINT=''
X_EXTRA_LIBS=''
X_INCLUDES=''
X_LDFLAGS=''
X_PRE_LIBS=''
X_RPATH=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
all_includes=''
all_libraries=''
am__include='include'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnulibc1'
build_alias=''
build_cpu='i686'
build_os='linux-gnulibc1'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnulibc1'
host_alias=''
host_cpu='i686'
host_os='linux-gnulibc1'
host_vendor='pc'
include_ARTS_FALSE=''
include_ARTS_TRUE=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/software/krusader/krusader-1.40/admin/install-sh'
kde_appsdir=''
kde_bindir=''
kde_confdir=''
kde_datadir=''
kde_htmldir=''
kde_icondir=''
kde_includes=''
kde_kcfgdir=''
kde_libraries=''
kde_libs_htmldir=''
kde_libs_prefix=''
kde_locale=''
kde_mimedir=''
kde_moduledir=''
kde_qtver=''
kde_servicesdir=''
kde_servicetypesdir=''
kde_sounddir=''
kde_styledir=''
kde_templatesdir=''
kde_wallpaperdir=''
kde_widgetdir=''
kdeinitdir=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/lib/kde3'
program_transform_name='s,x,x,'
qt_includes=''
qt_libraries=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnulibc1'
target_alias=''
target_cpu='i686'
target_os='linux-gnulibc1'
target_vendor='pc'
x_includes='NONE'
x_libraries='NONE'
xdg_appsdir=''
xdg_directorydir=''
xdg_menudir=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "krusader"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "1.40"

configure: exit 77
---------------------------------------

Regards
Martin

Krugger 10-01-2004 03:57 PM

Not really sure, but you could check if you have binutils.

From this line
/usr/bin/ld: crt1.o: No such file: No such file or directory

I conclude that either something is wrong with the generation of the .o or there is no ld which is part of the binutils.

Tinkster 10-01-2004 04:59 PM

Have a search here on LQ mate ... there's a
few possibilities, they've all been covered in
the past here ...



Cheers,
Tink

martincho 10-01-2004 07:04 PM

Thanks a lot for the responses.

Something was missing....
I re-installed (or updated)....with "developer" packages
(Someone who wants to install a simple program: Must be a developer?)

Regards
Martin (messing with Brazilian pengüins)


All times are GMT -5. The time now is 07:52 AM.