LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-07-2009, 10:25 AM   #1
acedillo
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
Can't compile c++ app *** Exited with status: 77 ***


Hi!
I'm trying to compile a c++ application in KDevelop in Ubuntu 8.10. I get this error on Distclean:

aclocal
autoheader
automake
autoconf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
*** Exited with status: 77 ***


The config.log file:


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.61. Invocation command line was

$ /usr/src/project/server/configure

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

hostname = acedillo
uname -m = i686
uname -r = 2.6.27-9-generic
uname -s = Linux
uname -v = #1 SMP Thu Nov 20 21:57:00 UTC 2008

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

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/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/games


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

configure:1971: checking for a BSD-compatible install
configure:2027: result: /usr/bin/install -c
configure:2038: checking whether build environment is sane
configure:2081: result: yes
configure:2109: checking for a thread-safe mkdir -p
configure:2148: result: /bin/mkdir -p
configure:2161: checking for gawk
configure:2191: result: no
configure:2161: checking for mawk
configure:2177: found /usr/bin/mawk
configure:2188: result: mawk
configure:2199: checking whether make sets $(MAKE)
configure:2220: result: yes
configure:2473: checking for g++
configure:2503: result: no
configure:2473: checking for c++
configure:2503: result: no
configure:2473: checking for gpp
configure:2503: result: no
configure:2473: checking for aCC
configure:2503: result: no
configure:2473: checking for CC
configure:2503: result: no
configure:2473: checking for cxx
configure:2503: result: no
configure:2473: checking for cc++
configure:2503: result: no
configure:2473: checking for cl.exe
configure:2503: result: no
configure:2473: checking for FCC
configure:2503: result: no
configure:2473: checking for KCC
configure:2503: result: no
configure:2473: checking for RCC
configure:2503: result: no
configure:2473: checking for xlC_r
configure:2503: result: no
configure:2473: checking for xlC
configure:2503: result: no
configure:2531: checking for C++ compiler version
configure:2538: g++ --version >&5
/usr/src/project/server/configure: line 2539: g++: command not found
configure:2541: $? = 127
configure:2548: g++ -v >&5
/usr/src/project/server/configure: line 2549: g++: command not found
configure:2551: $? = 127
configure:2558: g++ -V >&5
/usr/src/project/server/configure: line 2559: g++: command not found
configure:2561: $? = 127
configure:2584: checking for C++ compiler default output file name
configure:2611: g++ -Wall -O3 -march=pentium2 -DLINUX_OS -DPROJECT_SERVER -Wl,--strip-all conftest.cpp >&5
/usr/src/project/server/configure: line 2612: g++: command not found
configure:2614: $? = 127
configure:2652: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "server"
| #define VERSION "0.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2659: error: C++ compiler cannot create executables
See `config.log' for more details.

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

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
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=set
ac_cv_env_CPPFLAGS_value='-DLINUX_OS -DPROJECT_SERVER'
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=set
ac_cv_env_CXXFLAGS_value='-Wall -O3 -march=pentium2'
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=set
ac_cv_env_LDFLAGS_value=-Wl,--strip-all
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /usr/src/project/server/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/src/project/server/missing --run tar'
AR=''
AUTOCONF='${SHELL} /usr/src/project/server/missing --run autoconf'
AUTOHEADER='${SHELL} /usr/src/project/server/missing --run autoheader'
AUTOMAKE='${SHELL} /usr/src/project/server/missing --run automake-1.10'
AWK='mawk'
CC=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS='-DLINUX_OS -DPROJECT_SERVER'
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-Wall -O3 -march=pentium2'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-Wl,--strip-all'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /usr/src/project/server/missing --run makeinfo'
NMEDIT=''
OBJEXT=''
PACKAGE='server'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='0.1'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /usr/src/project/server/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "server"
#define VERSION "0.1"

configure: exit 77



Thanx!
 
Old 01-07-2009, 10:42 AM   #2
fantas
Member
 
Registered: Jun 2007
Location: Bavaria
Distribution: slackware, xubuntu
Posts: 143

Rep: Reputation: 22
Do you have a compiler/toolchain installed ? Ubuntu doesn't include any build tools by default.
 
Old 01-09-2009, 02:25 AM   #3
acedillo
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fantas View Post
Do you have a compiler/toolchain installed ? Ubuntu doesn't include any build tools by default.
I have libtool 2.2.4
 
Old 01-09-2009, 02:38 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
It looks like you need to install the C++ compiler (g++) and probably other things as well. I believe doing a "sudo apt-get install build-essential" will install most of the packages you'll need.
 
Old 01-09-2009, 02:48 AM   #5
acedillo
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
It looks like you need to install the C++ compiler (g++) and probably other things as well. I believe doing a "sudo apt-get install build-essential" will install most of the packages you'll need.
Thank you , you've saved my life.
:- )
 
  


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
kdevelop: Cannot compile simple app, Exited with status 77 rquin Programming 3 08-25-2008 02:13 PM
cupsd: Child exited with status 98! hussar Slackware 17 02-19-2008 02:59 PM
Sendmail exited...unknown status - What does this mean? Sender1000 Linux - Server 2 01-05-2007 08:41 AM
KDevelop - Exited with status: 2 cornleader Programming 3 02-28-2005 12:19 PM
child process -1 exited with status 1 ashfaq Linux - Software 3 04-09-2004 04:08 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration