* [Comm] Cmake:ошибка при запуске компилятора c++
@ 2008-11-02 18:50 Павел
2008-11-02 19:08 ` Alexey Borisenkov
0 siblings, 1 reply; 2+ messages in thread
From: Павел @ 2008-11-02 18:50 UTC (permalink / raw)
To: ALT Linux Community general discussions
Здравствуйте,
Возникла такая проблема:
---------
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- broken
CMake Error: The C++ compiler "/usr/bin/c++" is not able to compile a simple
test program.
It fails with the following output:
gmake[1]: Entering directory `/home/rap-
kasta/download/phpqt/phpqt/CMakeFiles/CMakeTmp'
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
gmake[2]: Entering directory `/home/rap-
kasta/download/phpqt/phpqt/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/rap-
kasta/download/phpqt/phpqt/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o
/usr/bin/c++ -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o -c
/home/rap-kasta/download/phpqt/phpqt/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
/usr/bin/i586-alt-linux-g++: No such file or directory
gmake[2]: *** [CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o] Ошибка 1
gmake[2]: Leaving directory `/home/rap-
kasta/download/phpqt/phpqt/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec/fast] Ошибка 2
gmake[1]: Leaving directory `/home/rap-
kasta/download/phpqt/phpqt/CMakeFiles/CMakeTmp'
CMake will not be able to correctly generate this project.
-- Configuring done
---------
Посмотрем что и как и откуда взялся в этом багтраке /usr/bin/i586-alt-linux-
g++ и ужаснулся...
-----
[root@localhost phpqt]# ls -alh /usr/bin |grep c++
lrwxrwxrwx 1 root root 3 Окт 17 21:19 c++ -> g++
-rwxr-xr-x 1 root root 63K Мар 3 2008 c++filt
[root@localhost phpqt]# ls -alh /usr/bin |grep g++
lrwxrwxrwx 1 root root 3 Окт 17 21:19 c++ -> g++
lrwxrwxrwx 1 root root 3 Окт 17 21:19 g++ -> gcc
[root@localhost phpqt]# ls -alh /usr/bin |grep gcc
lrwxrwxrwx 1 root root 3 Окт 17 21:19 cc -> gcc
lrwxrwxrwx 1 root root 3 Окт 17 21:19 cpp -> gcc
lrwxrwxrwx 1 root root 3 Окт 17 21:19 g++ -> gcc
lrwxrwxrwx 1 root root 36 Фев 23 2008 gcc ->
/etc/alternatives/links/|usr|bin|gcc
lrwxrwxrwx 1 root root 22 Окт 17 21:19 gcc-4.1 -> i586-alt-linux-
gcc-4.1
lrwxrwxrwx 1 root root 21 Окт 17 21:19 gccbug -> i586-alt-linux-gccbug
-rwxr-xr-x 1 root root 2,0K Янв 17 2006 gccmakedep
-rwxr-xr-x 1 root root 4,2K Июн 8 04:57 gcc_wrapper
lrwxrwxrwx 1 root root 3 Окт 17 21:19 gcov -> gcc
lrwxrwxrwx 1 root root 51 Фев 23 2008 i586-alt-linux-gcc ->
/etc/alternatives/links/|usr|bin|i586-alt-linux-gcc
-rwxr-xr-x 1 root root 192K Мар 3 2008 i586-alt-linux-gcc-4.1
-rwxr-xr-x 1 root root 15K Июн 8 04:57 i586-alt-linux-gccbug
lrwxrwxrwx 1 root root 3 Окт 17 21:19 protoize -> gcc
-rwxr-xr-x 1 root root 50K Авг 28 06:30 sbigccd
lrwxrwxrwx 1 root root 3 Окт 17 21:19 unprotoize -> gcc
-----
Честно говоря я даже запутался в ссылках. Помогите разобраться - как таки
запустить cmake, чтобы он воспользовался нормальным компилятором (gcc ведь
работает) а не шёл по странному пути упирающемуся в красный кирпич...
С уважением, Павел aka [R-K]
mailto:rap-kasta@mail.ru
--
===============
А ещё говорят так:
Очень многих я видел на своем веку, которые были доведены до совершенной
тупости
неумеренной жаждой знания.
-- Монтень
[fortune]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-02 19:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-02 18:50 [Comm] Cmake:ошибка при запуске компилятора c++ Павел
2008-11-02 19:08 ` Alexey Borisenkov
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git