From: Павел <rap-kasta@mail.ru> To: ALT Linux Community general discussions <community@lists.altlinux.org> Subject: [Comm] Cmake:ошибка при запуске компилятора c++ Date: Sun, 2 Nov 2008 23:50:44 +0500 Message-ID: <200811022350.44795.rap-kasta@mail.ru> (raw) Здравствуйте, Возникла такая проблема: --------- -- 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]
next reply other threads:[~2008-11-02 18:50 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-02 18:50 Павел [this message] 2008-11-02 19:08 ` Alexey Borisenkov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200811022350.44795.rap-kasta@mail.ru \ --to=rap-kasta@mail.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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