Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC: Cannot Run C Compiled Programs [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Acoc
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 189
Location: New Jersey, USA

PostPosted: Tue Mar 29, 2005 3:20 am    Post subject: GCC: Cannot Run C Compiled Programs [solved] Reply with quote

Hello,

Well, I was trying to upgrade from 2004.3 to 2005.0 using the shell script and it messed up quite a bit of stuff. I got it back to the way it was before, changing a couple of libs back to emul libs and emerging the linux headers. Anyway, when I start the manual upgrade, I can't emerge gcc. I get the following error:

Code:
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.3.20050110-r1 failed.
!!! Function gcc_do_make, Line 1138, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.


I have tried to compile this with 3.4.2 and 3.3.5-r1, with the same result. In both cases I re-emerged binutils, libstdc++-v3, glibc, and gcc-config (all of which have been changed to ~amd64).

Here is a list of some of my libs:
Code:

drwxr-xr-x   8 root root 4296 Mar 29 06:09 lib
lrwxrwxrwx   1 root root   18 Mar 29 06:09 lib32 -> emul/linux/x86/lib
lrwxrwxrwx   1 root root    3 Feb  5 21:00 lib64 -> lib
lrwxrwxrwx    1 root root     25 Mar 29 06:09 lib32 -> ../emul/linux/x86/usr/lib


I think that the problem might be in the fact that /lib is not a symbolic link to emul-linux, but I'm not even sure of that. If anyone thinks that is the problem, please tell me how to change it WITHOUT first moving the /lib and then symbolic linking it. I did that and for a time it wouldn't boot or have any commands working.

I appricate any help,
John
_________________
_There were plenty of times in my century when I was gonna give up, but I never did. Never! Hey, are you even listening to me? Oh, I give up._ Futurama


Last edited by Acoc on Tue Mar 29, 2005 5:49 am; edited 1 time in total
Back to top
View user's profile Send private message
donjuan
l33t
l33t


Joined: 11 May 2004
Posts: 760
Location: At Uni

PostPosted: Tue Mar 29, 2005 4:56 am    Post subject: Reply with quote

Part of the FAQ: https://forums.gentoo.org/viewtopic-t-297935.html
_________________
Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.

The Stage 1 on 3 Install
Back to top
View user's profile Send private message
Acoc
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 189
Location: New Jersey, USA

PostPosted: Tue Mar 29, 2005 5:18 am    Post subject: Reply with quote

Ok thanks,

I had done this when I was trying to solve the problem I had with cpp failing the sanity check, which was one of my earlier problems, but forgot to try it for this.

I wonder why "cannot run C compiled programs" which is the title of the post does not show up in a search. I guess just another php problem.

John
_________________
_There were plenty of times in my century when I was gonna give up, but I never did. Never! Hey, are you even listening to me? Oh, I give up._ Futurama
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Mar 29, 2005 7:03 am    Post subject: Reply with quote

donjuan wrote:
Part of the FAQ: https://forums.gentoo.org/viewtopic-t-297935.html

Moved from Gentoo on AMD64.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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