08 июня 2009 в 16:31Рейтинг: 0
0
0
(на gcc - все ОК)
Скачал я компилятор "l_cproc_p_11.0.083_intel64.tgz", хоть и стоило это ~ 10 ночей скачки
и весь в предвкушении передового чуда копиляции устанавливаю
1)Установка
...
...
Step no: 4 of 7 | Installation configuration - Missing Optional Pre-requisite
---------------------------------------------------------------- ----------------
There is one or more optional unresolved issues. It is highly recommended to fix
it all before you continue the installation. You can fix it without exiting from
the installation and re-check. Or you can quit from the installation, fix it and
run the installation again.
---------------------------------------------------------------- ----------------
Missing optional pre-requisite
-- operating system type is not supported.
-- system glibc or kernel version not supported or not detectable
-- binutils version not supported or not detectable
---------------------------------------------------------------- ----------------
1. Skip missing optional pre-requisites [default]
2. Show the detailed info about issue(s)
3. Re-check the pre-requisites
h. Help
b. Back to the previous menu
q. Quit
---------------------------------------------------------------- ----------------
Please type a selection or press "Enter" to accept default choice [1]: 2
Step no: 4 of 7 | Installation configuration - Missing Optional Pre-requisite
---------------------------------------------------------------- ----------------
Detected operating system is not supported. Supported operating systems for this
release include:
- Asianux* 3.0
- Debian* 4.0
- Fedora* 9
- Red Hat Enterprise Linux* 3, 4, 5
- SGI ProPack* 5 (IA-64 and Intel(R) 64 only)
- SuSE Linux* Enterprise Server* 9, 10
- Turbo Linux* 11
- Ubuntu* 8.04 (IA-32 and Intel(R) 64 only)
---------------------------------------------------------------- ----------------
1. See next issue [default]
2. Back to Pre-requisite summary dialog
h. Help
b. Back to the previous menu
q. Quit
---------------------------------------------------------------- ----------------
Please type a selection or press "Enter" to accept default choice [1]: 1
Step no: 4 of 7 | Installation configuration - Missing Optional Pre-requisite
---------------------------------------------------------------- ----------------
System glibc or kernel version not supported or not detectable.
Supported glibc/kernel versions:
architecture kernel glibc
IA-32 2.4 2.2.93, 2.3.2
IA-32 2.6 2.3, 2.4, 2.5, 2.6
IA-64 2.4 2.3.2
IA-64 2.6 2.3, 2.4
Intel(R) 64 2.4 2.3.2
Intel(R) 64 2.6 2.3, 2.4, 2.5, 2.6
---------------------------------------------------------------- ----------------
1. See next issue [default]
2. Back to Pre-requisite summary dialog
h. Help
b. Back to the previous menu
q. Quit
---------------------------------------------------------------- ----------------
Please type a selection or press "Enter" to accept default choice [1]: 1
Step no: 4 of 7 | Installation configuration - Missing Optional Pre-requisite
---------------------------------------------------------------- ----------------
Binutils version not supported or not detectable.
Supported versions are greater than 2.13.
---------------------------------------------------------------- ----------------
1. Finish with prerequisites and continue installation [default]
2. Back to Pre-requisite summary dialog
h. Help
b. Back to the previous menu
q. Quit
---------------------------------------------------------------- ----------------
Please type a selection or press "Enter" to accept default choice [1]:
Типа поддерживается только то что из дистра Debian 4.0, а Lenny не катит, но можно
...
...
Thank you for installing and for using the
Intel(R) C++ Compiler Professional Edition for Linux* version 11.0.
2)Типа "подготовка" к сборке
Руководствуясь татьей по сборке на офф. сайте LuxRender
$ source /opt/intel/Compiler/11.0/083/bin/intel64/iccvars_intel64.sh
//там предлагают .../bin/iccvars.sh , но тогда невыходит
$ icpc --version
icpc (ICC) 11.0 20090318
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
//Вот вроде все ок!!!!!!!!!!!!!!!!!!
$ cd /home/bm/xfs/svn/lux_icc/luxrender-06/
//там у меня скачанный git-каталог "lux"
//Вот теперь есть некоторые траблы
// Видимо статья на офф. сайте LuxRender подустарела или я профендей, скорее фторое, короче вот
//пишут в статье:
# Dade - default compiler options (single pass, 64bit)
ADD_DEFINITIONS(-O3 -ip -mtune=core2 -xT -unroll -fp-model fast=2 -rcd -no-prec-div -DLUX_USE_OPENGL -DHAVE_PTHREAD_H '-D"__sync_fetch_and_add(ptr,addend)=_InterlockedExchan geAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend)"' -DBOOST_NO_INTRINSIC_INT64_T "-D'__builtin_vsnprintf(__out, __size, __fmt, __args)'='__builtin_vsnprintf(__out, __size, __fmt, (char *) __args)'"

//думаю это параметры сборки
//ввожу:
$ ADD_DEFINITIONS(-O3 -ip -mtune=core2 -xT -unroll -fp-model fast=2 -rcd -no-prec-div -DLUX_USE_OPENGL -DHAVE_PTHREAD_H '-D"__sync_fetch_and_add(ptr,addend)=_InterlockedExchan geAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend)"' -DBOOST_NO_INTRINSIC_INT64_T "-D'__builtin_vsnprintf(__out, __size, __fmt, __args)'='__builtin_vsnprintf(__out, __size, __fmt, (char *) __args)'"

//пишет мне
bash: syntax error near unexpected token `-O3'
//то же происходит при (без -03)
$ ADD_DEFINITIONS(-ip -mtune=core2 -xT -unroll -fp-model fast=2 -rcd -no-prec-div -DLUX_USE_OPENGL -DHAVE_PTHREAD_H '-D"__sync_fetch_and_add(ptr,addend)=_InterlockedExchan geAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend)"' -DBOOST_NO_INTRINSIC_INT64_T "-D'__builtin_vsnprintf(__out, __size, __fmt, __args)'='__builtin_vsnprintf(__out, __size, __fmt, (char *) __args)'"

bash: syntax error near unexpected token `-ip'
//и т.д.
3)Сборка
//собираю с тем что есть
$ source /opt/intel/Compiler/11.0/083/bin/intel64/iccvars_intel64.sh
$ rm -rf CMakeCache.txt CMakeFiles
$ CC=/opt/intel/Compiler/11.0/083/bin/intel64/icc CXX=/opt/intel/Compiler/11.0/083/bin/intel64/icpc cmake lux
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /opt/intel/Compiler/11.0/083/bin/intel64/icc
-- Check for working C compiler: /opt/intel/Compiler/11.0/083/bin/intel64/icc -- broken
CMake Error at /usr/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
The C compiler "/opt/intel/Compiler/11.0/083/bin/intel64/icc" is not able
to compile a simple test program.
It fails with the following output:
Change Dir: /home/bm/xfs/svn/lux_icc/luxrender-06/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory
`/home/bm/xfs/svn/lux_icc/luxrender-06/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/bm/xfs/svn/lux_icc/luxrender-06/CMakeFiles/CMakeTmp/CMakeF iles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o
/opt/intel/Compiler/11.0/083/bin/intel64/icc -o
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
/home/bm/xfs/svn/lux_icc/luxrender-06/CMakeFiles/CMakeTmp/testCC ompiler.c
Catastrophic error: could not set locale "" to allow processing of
multibyte characters
compilation aborted for
/home/bm/xfs/svn/lux_icc/luxrender-06/CMakeFiles/CMakeTmp/testCC ompiler.c
(code 4)
make[1]: Leaving directory
`/home/bm/xfs/svn/lux_icc/luxrender-06/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o]
Ошибка 4
make: *** [cmTryCompileExec/fast] Ошибка 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (PROJECT)
-- Configuring done
В чем проблемма???