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.
|
 |
|
02-23-2005, 11:54 PM
|
#1
|
Member
Registered: Aug 2004
Posts: 47
Rep:
|
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
|
|
|
02-24-2005, 04:42 AM
|
#2
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
02-24-2005, 04:53 AM
|
#3
|
Member
Registered: Aug 2004
Posts: 47
Original Poster
Rep:
|
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
|
|
|
02-24-2005, 05:17 AM
|
#4
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
that is the entire contents of the file? there are no "failed program was" statements? what distro is this by the way?
|
|
|
02-24-2005, 05:33 AM
|
#5
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Rep:
|
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
|
|
|
02-24-2005, 05:35 AM
|
#6
|
Member
Registered: Aug 2004
Posts: 47
Original Poster
Rep:
|
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
|
|
|
02-24-2005, 05:38 AM
|
#7
|
Member
Registered: Aug 2004
Posts: 47
Original Poster
Rep:
|
C++ compiler cannot create executables
ya both libc and libstdc++ is installed in the system
|
|
|
02-24-2005, 05:41 AM
|
#8
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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?
|
|
|
02-24-2005, 05:45 AM
|
#9
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Rep:
|
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.
|
|
|
02-24-2005, 05:52 AM
|
#10
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
02-24-2005, 05:53 AM
|
#11
|
Member
Registered: Aug 2004
Posts: 47
Original Poster
Rep:
|
trying to configure ecos
this is the tar file used
ecos-latest.tar.gz
|
|
|
02-24-2005, 06:00 AM
|
#12
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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
where does the error occur?
|
|
|
02-24-2005, 06:03 AM
|
#13
|
Member
Registered: Aug 2004
Posts: 47
Original Poster
Rep:
|
the gcc version in my system is
gcc version 3.0.1
|
|
|
02-24-2005, 06:05 AM
|
#14
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Rep:
|
try 'g++ -o test test.cpp'
|
|
|
02-24-2005, 06:07 AM
|
#15
|
Member
Registered: Aug 2004
Posts: 47
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:57 PM.
|
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
|
|