Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gcc после перекомпиляции не работает
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
progLamer
n00b
n00b


Joined: 04 Mar 2008
Posts: 4

PostPosted: Tue Mar 04, 2008 4:24 pm    Post subject: Gcc после перекомпиляции не работает Reply with quote

после команды emerge на этапе конфигурации выдет следующее:

Code:
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.


в config.log написанно следующее:

Code:
configure:2598: checking for x86_64-pc-linux-gnu-g++
configure:2614: found /usr/bin/x86_64-pc-linux-gnu-g++
configure:2625: result: x86_64-pc-linux-gnu-g++
configure:2700: checking for C++ compiler version
configure:2707: x86_64-pc-linux-gnu-g++ --version >&5
gcc-config error: Could not run/locate "x86_64-pc-linux-gnu-g++"
configure:2710: $? = 1
configure:2717: x86_64-pc-linux-gnu-g++ -v >&5
gcc-config error: Could not run/locate "x86_64-pc-linux-gnu-g++"
configure:2720: $? = 1
configure:2727: x86_64-pc-linux-gnu-g++ -V >&5
gcc-config error: Could not run/locate "x86_64-pc-linux-gnu-g++"
configure:2730: $? = 1
configure:2753: checking for C++ compiler default output file name
configure:2780: x86_64-pc-linux-gnu-g++ -O2 -pipe -march=k8   conftest.cpp  >&5
gcc-config error: Could not run/locate "x86_64-pc-linux-gnu-g++"
configure:2783: $? = 1
configure:2821: result:


как заставить компилятор работать нормально?
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Tue Mar 04, 2008 9:33 pm    Post subject: Reply with quote

Code:
env-update
source /etc/profile
не помогает?

что говорит
Code:
gcc-config -l
?
Back to top
View user's profile Send private message
progLamer
n00b
n00b


Joined: 04 Mar 2008
Posts: 4

PostPosted: Wed Mar 05, 2008 2:14 am    Post subject: Reply with quote

ba wrote:
Code:
env-update
source /etc/profile
не помогает?

Это первое что я сделал... :(

Code:
# gcc-config -l
 * gcc-config: Active gcc profile is invalid!
 [1] x86_64-pc-linux-gnu-4.1.2
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Wed Mar 05, 2008 6:33 am    Post subject: Reply with quote

Code:
etc-update
делал?

покажи
Code:
equery l gcc
или
Code:
emerge -pC gcc
Back to top
View user's profile Send private message
progLamer
n00b
n00b


Joined: 04 Mar 2008
Posts: 4

PostPosted: Wed Mar 05, 2008 3:31 pm    Post subject: Reply with quote

etc-update никаких файлов конфигурации связанных с GCC не показывает.

Code:
# equery l gcc
[ Searching for package 'gcc' in all categories among: ]
 * installed packages
[I--] [ -] sys-devel/gcc-4.1.2 (x86_64-pc-linux-gnu-4.1.2)
[I--] [  ] sys-devel/gcc-config-1.3.16 (0)
[I--] [  ] x11-misc/gccmakedep-1.0.2 (0)


Code:
# emerge -pC gcc

>>> These are the packages that would be unmerged:


!!! 'sys-devel/gcc' is part of your system profile.
!!! Unmerging it may be damaging to your system.


 sys-devel/gcc
    selected: 4.1.2
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Wed Mar 05, 2008 3:38 pm    Post subject: Reply with quote

Code:
gcc-config 1
env-update
source /etc/profile
Back to top
View user's profile Send private message
progLamer
n00b
n00b


Joined: 04 Mar 2008
Posts: 4

PostPosted: Wed Mar 05, 2008 3:48 pm    Post subject: Reply with quote

Большое спасибо, GCC заработал.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian 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