Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error: C++ compiler cannot create executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ColombianJoker
n00b
n00b


Joined: 07 Jul 2003
Posts: 30
Location: Bogotá DC, Colombia, South America

PostPosted: Mon Jul 07, 2003 2:06 pm    Post subject: error: C++ compiler cannot create executables Reply with quote

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
View user's profile Send private message
adrenalin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2002
Posts: 129

PostPosted: Mon Jul 07, 2003 2:13 pm    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Mon Jul 07, 2003 2:41 pm    Post subject: Reply with quote

You can allways Search aswell...
_________________
a.k.a port001
Found a bug? Please report it: Gentoo Bugzilla
Back to top
View user's profile Send private message
ColombianJoker
n00b
n00b


Joined: 07 Jul 2003
Posts: 30
Location: Bogotá DC, Colombia, South America

PostPosted: Tue Jul 08, 2003 4:03 pm    Post subject: It's a big file... but Reply with quote

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
View user's profile Send private message
relyt
Apprentice
Apprentice


Joined: 29 Aug 2002
Posts: 238
Location: Massachusetts

PostPosted: Tue Jul 08, 2003 8:27 pm    Post subject: Reply with quote

what is your CXXFLAGS set to?
Back to top
View user's profile Send private message
ColombianJoker
n00b
n00b


Joined: 07 Jul 2003
Posts: 30
Location: Bogotá DC, Colombia, South America

PostPosted: Wed Jul 09, 2003 12:01 am    Post subject: Commented! Reply with quote

Code:
#CXXFLAGS="${CFLAGS}"

and,
Code:
CFLAGS="-march=athlon -O3 -pipe"

is the another variable.
Back to top
View user's profile Send private message
ColombianJoker
n00b
n00b


Joined: 07 Jul 2003
Posts: 30
Location: Bogotá DC, Colombia, South America

PostPosted: Wed Jul 09, 2003 12:06 am    Post subject: How do I know if I have a C++ compiler Reply with quote

How do I know that?
Back to top
View user's profile Send private message
adrenalin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2002
Posts: 129

PostPosted: Wed Jul 09, 2003 7:47 am    Post subject: Reply with quote

in general there should be a c++ - compiler on your box unless you unmerged or deleted it. for me the output of
Code:
set|grep 'CXX'
is
Code:
CXX='ccache g++'
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
View user's profile Send private message
relyt
Apprentice
Apprentice


Joined: 29 Aug 2002
Posts: 238
Location: Massachusetts

PostPosted: Wed Jul 09, 2003 2:54 pm    Post subject: Re: Commented! Reply with quote

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
View user's profile Send private message
pants
n00b
n00b


Joined: 05 Nov 2002
Posts: 3

PostPosted: Thu Jul 10, 2003 9:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum