View previous topic :: View next topic |
Author |
Message |
ColombianJoker n00b


Joined: 07 Jul 2003 Posts: 30 Location: Bogotá DC, Colombia, South America
|
Posted: Mon Jul 07, 2003 2:06 pm Post subject: error: C++ compiler cannot create executables |
|
|
Trying to emerge transcode I get:
Code: |
checking for C++ compiler default output... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
!!! ERROR: media-video/avifile-0.7.32.20030219 failed.
!!! Function econf, Line 304, Exitcode 77
!!! econf failed
|
What can I do? [/code] |
|
Back to top |
|
 |
adrenalin Tux's lil' helper

Joined: 29 Dec 2002 Posts: 129
|
Posted: Mon Jul 07, 2003 2:13 pm Post subject: |
|
|
emerge transcode wrote: | See `config.log' for more details. |
If that doesnt help you, you could post 'config.log' here. I had such an error once because i had no C++ Compiler installed  |
|
Back to top |
|
 |
idl Retired Dev


Joined: 24 Dec 2002 Posts: 1728 Location: Nottingham, UK
|
Posted: Mon Jul 07, 2003 2:41 pm Post subject: |
|
|
You can allways Search aswell... _________________ a.k.a port001
Found a bug? Please report it: Gentoo Bugzilla |
|
Back to top |
|
 |
ColombianJoker n00b


Joined: 07 Jul 2003 Posts: 30 Location: Bogotá DC, Colombia, South America
|
Posted: Tue Jul 08, 2003 4:03 pm Post subject: It's a big file... but |
|
|
The [tt]config.log[/tt] file is big, but the relevant piece I guess is:
Code: |
configure: failed program was:
| #line 2034 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "avifile0.7"
| #define VERSION "0.7.32"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2100: error: C++ compiler cannot create executables
|
TIA |
|
Back to top |
|
 |
relyt Apprentice

Joined: 29 Aug 2002 Posts: 238 Location: Massachusetts
|
Posted: Tue Jul 08, 2003 8:27 pm Post subject: |
|
|
what is your CXXFLAGS set to? |
|
Back to top |
|
 |
ColombianJoker n00b


Joined: 07 Jul 2003 Posts: 30 Location: Bogotá DC, Colombia, South America
|
Posted: Wed Jul 09, 2003 12:01 am Post subject: Commented! |
|
|
Code: | #CXXFLAGS="${CFLAGS}" |
and,
Code: | CFLAGS="-march=athlon -O3 -pipe" |
is the another variable. |
|
Back to top |
|
 |
ColombianJoker n00b


Joined: 07 Jul 2003 Posts: 30 Location: Bogotá DC, Colombia, South America
|
Posted: Wed Jul 09, 2003 12:06 am Post subject: How do I know if I have a C++ compiler |
|
|
How do I know that? |
|
Back to top |
|
 |
adrenalin Tux's lil' helper

Joined: 29 Dec 2002 Posts: 129
|
Posted: Wed Jul 09, 2003 7:47 am Post subject: |
|
|
in general there should be a c++ - compiler on your box unless you unmerged or deleted it. for me the output of is so my c++ compiler is g++ and will be invoked as 'ccache g++'.
for your special problem: there should be a line in your config.log with the command that 'failed' to execute, i.e. '<detected-c++-compiler> -o conftest conftest.C' or something similar. you could try to execute that command manually. while it probably fails, you may get a hint from it where your problem is.
oh and did you actually search the forums as port001 recommended ? |
|
Back to top |
|
 |
relyt Apprentice

Joined: 29 Aug 2002 Posts: 238 Location: Massachusetts
|
Posted: Wed Jul 09, 2003 2:54 pm Post subject: Re: Commented! |
|
|
ColombianJoker wrote: | Code: | #CXXFLAGS="${CFLAGS}" |
and,
Code: | CFLAGS="-march=athlon -O3 -pipe" |
is the another variable. |
Try uncommenting that CXXFLAGS line and see what happens. |
|
Back to top |
|
 |
pants n00b


Joined: 05 Nov 2002 Posts: 3
|
Posted: Thu Jul 10, 2003 9:55 pm Post subject: |
|
|
I ran into that error on a system where I'd just done a stage3 install. The stage3 gcc was compiled for i586, but my CHOST was set to i686-pc-linux-gnu, so the compiler wrapper couldn't find the right C++ compiler. Solution: re-emerge gcc, all is good. |
|
Back to top |
|
 |
|