Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble switching to gcc v3.4.6 on Interix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
WilliamKF
n00b
n00b


Joined: 26 Apr 2013
Posts: 6

PostPosted: Sun May 05, 2013 12:39 pm    Post subject: Trouble switching to gcc v3.4.6 on Interix Reply with quote

I've successfully built v3.4.6 of gcc for Interix.

Code:
root@h3-xp-pro-sp3 src # gcc-config -l --nocolor
 [1] i586-pc-interix3.5-3.4.6 *
 [2] i586-pc-interix3.5-4.2.4


However, when I try to config with the older compiler:

Code:
root@xp-pro-sp3 src # gcc-config i586-pc-interix3.5-3.4.6 --nocolor
 * Switching native-compiler to i586-pc-interix3.5-3.4.6 ...
 * double insanity with gcc-4.2.4 and //opt/gentoo/usr/i586-pc-interix3.5/gcc-bin/4.2.4/gcc-4.2.4
  [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *  (bash) # . /opt/gentoo/etc/profile
 * or
 *  (tcsh) # source /opt/gentoo/etc/csh.login


(Should I be concerned about the 'double insanity' message?)
After doing above to switch to it, I can do 'gcc --version' fine but 'g++ --version' fails with:

Code:
gcc-config: error: could not run/locate 'g++'


I can switch back to v4.2.4 again and g++ works properly:

Code:
root@xp-pro-sp3 src # gcc-config  i586-pc-interix3.5-4.2.4 --nocolor
 * Switching native-compiler to i586-pc-interix3.5-4.2.4 ...
  [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *  (bash) # . /opt/gentoo/etc/profile
 * or
 *  (tcsh) # source /opt/gentoo/etc/csh.login


I tried adding the `. /opt/gentoo/etc/profile` but the results are unchanged for g++ not located.

How can I get g++ to be located for the older compiler?
Back to top
View user's profile Send private message
WilliamKF
n00b
n00b


Joined: 26 Apr 2013
Posts: 6

PostPosted: Sun May 05, 2013 9:40 pm    Post subject: Reply with quote

It appears our issues with emerge not working correctly are resolved by using the default profile:

Code:
    /opt/gentoo/etc/bash/bashrc


Instead of our custom one.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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