LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 02-23-2005, 11:54 PM   #1
abirami
Member
 
Registered: Aug 2004
Posts: 47

Rep: Reputation: 15
Unhappy configure: error: installation or configuration problem: C++ compiler cannot create e


hi all

i am trying to configure ecos in my system
i am doing this with the tar file ecos-latest.tar.gz
when i configure with the command

../configure --prefix=/opt/ecos-tools

i get the follwing error

checking whether the C++ compiler (g++ ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
configure: error: ../../../../../../../../packages/hal/synth/arch/current/host/configure failed for packages/hal/synth/arch/current/host

but g++ and gcc is installed in my system


can any one give me some idea about the error

thanx in advance
 
Old 02-24-2005, 04:42 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
inside your source directory ( the one your running configure from) it made a file called config.log. gonna need to see that. gcc and g++ are not all the pieces you need to create an executable. Most likely, your missing a couple packages from your development environment.
 
Old 02-24-2005, 04:53 AM   #3
abirami
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
Not much details in config.log

i went through the config.log
it contains only these contents, with i couldn't find anything


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:554: checking host system type
configure:586: checking for a BSD compatible install
configure:639: checking whether build environment is sane
configure:696: checking whether make sets ${MAKE}
configure:735: checking for working aclocal
configure:748: checking for working autoconf
configure:761: checking for working automake
configure:774: checking for working autoheader
configure:787: checking for working makeinfo
configure:801: checking whether to enable maintainer-specific portions of Makefiles
configure:825: checking that a separate build tree is being used
 
Old 02-24-2005, 05:17 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
that is the entire contents of the file? there are no "failed program was" statements? what distro is this by the way?
 
Old 02-24-2005, 05:33 AM   #5
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Indeed, you need more than just gcc and g++ to create executables . Make sure libc and libstdc++ is installed as well. It is quite a common known problem.

grtz,
elluva
 
Old 02-24-2005, 05:35 AM   #6
abirami
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
trying to configure ecos to my system

i am trying to configure ecos to my system
i actually need redboot bootloader for hitachi sh7751 processor
i came to know that only if we install ecos we can get redboot binary image
but the initial stage itself i have a problem
that is the whole of config.log
there is nothing else in this file

is there any other way to get redboot bootloader

thanx in advance
 
Old 02-24-2005, 05:38 AM   #7
abirami
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
C++ compiler cannot create executables

ya both libc and libstdc++ is installed in the system
 
Old 02-24-2005, 05:41 AM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
binutils? ( you'll definitely need this one)
libtool ( shouldn't cause your problem but you'll probably need it before long) ?

what distro is this?
 
Old 02-24-2005, 05:45 AM   #9
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Re: C++ compiler cannot create executables

Quote:
Originally posted by abirami
ya both libc and libstdc++ is installed in the system
--> Apart from this and automake, autoconf and libtool (which are according to your config.log are in place), I don't think you need anything else, so that's strange.

--> You still did not tell us what distro you are using.
 
Old 02-24-2005, 05:52 AM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
as far as what's needed, it completely depends on what the package wants to use. binutils is essential, without it no executables can be created. depending on the package, m4, make ( which is required for nearly everything), flex, gawk, sed, perl, and others might be needed.
 
Old 02-24-2005, 05:53 AM   #11
abirami
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
trying to configure ecos

this is the tar file used

ecos-latest.tar.gz
 
Old 02-24-2005, 06:00 AM   #12
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Re: trying to configure ecos

first thing you need to tell us: what distro are you running.

next, do the following commands so we can see where your problem is.

Code:
echo 'main(){}' >> test.cpp
Code:
g++ -v test.cpp
where does the error occur?
 
Old 02-24-2005, 06:03 AM   #13
abirami
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
the gcc version in my system is
gcc version 3.0.1
 
Old 02-24-2005, 06:05 AM   #14
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
try 'g++ -o test test.cpp'
 
Old 02-24-2005, 06:07 AM   #15
abirami
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
oh , u guessed it right im getting an error
this is output , i got
i guess there is some link problem
but how to overcome this

Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
Configured with: ../gcc-3.0.1/configure
Thread model: single
gcc version 3.0.1
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=1 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ test.cpp -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase test.cpp -version -o /tmp/ccufxNli.s
GNU CPP version 3.0.1 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0.1 (i686-pc-linux-gnu)
compiled by GNU C version 3.2.2 20030222 (Red Hat Linux 3.2.2-5).
ignoring nonexistent directory "/usr/local/include/g++-v3"
ignoring nonexistent directory "/usr/local/include/g++-v3/i686-pc-linux-gnu"
ignoring nonexistent directory "/usr/local/include/g++-v3/backward"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include
/usr/include
End of search list.
as -V -Qy -o /tmp/ccqwQckt.o /tmp/ccufxNli.s
GNU assembler version 2.13.90.0.18 (i386-redhat-linux) using BFD version 2.13.90.0.18 20030206
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/crtbegin.o -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/../../.. /tmp/ccqwQckt.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/crtend.o /usr/lib/crtn.o
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: C++ compiler cannot create executables dicou Linux - Newbie 15 12-22-2012 01:00 PM
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
configure: error: C compiler cannot create executables watashiwaotaku7 Linux - General 7 10-22-2009 09:40 AM
configure: error: C compiler cannot create executables strimp099 Linux - Software 2 07-11-2005 07:23 PM
Problem with gcc: configure: error: C compiler cannot create executable abefroman Suse/Novell 4 05-11-2005 06:12 PM


All times are GMT -5. The time now is 07:55 PM.

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