BlenderУкраина
Главная
Новости
Статьи
Уроки
Файлы
Ссылки
Форум
Галерея
Конкурсы

• Поиск по сайту

Логин:

Пароль:

 Запомнить
Восстановление пароля

Зарегистрироваться

Наше сообщество:

 Форум

 Галерея
       Все работы по рейтингу
       Все новые работы
       Последние комментарии

 Конкурсы
       Ежедневный
       На баннер
       Повтори
       Художественный

 Гостевая

 Радио

RSSНовости Blender
Последние сообщения форума

 Добавить новость
парфюмерияпарфюмерия : Днепропетровск : модели радиомоделирадиомодели модели на радиоуправлении
Сейчас на сайте 36 посетителей:
Indigo, ExeQt0r, Juliya, ZZZubec, Logan, dfm, Dead, fureimu, denis8424, Foma_Kinyaev, Uriy и 25 гостей

Обсуждаемые темы:

Вопросы новичков и ответы (newman)
Вопрос(ы) по созданию игр (O.din13)
Анекдоты (O.din13)
Может коллективно, на конкурсной, основе создадим игру? (O.din13)
Другие 3D редакторы (Иван П.)
Linux (Ruslo)
W.I.P. от Indigo (Indigo)
W.I.P ЖенькиАзарова (ЖенькаАзаров)
WIP suomi (Kausica)
WIP от MageasteR (Kausica)
W.I.P. Uriy (suomi)
Lux Render (SATtva)
Мультфильм "Ничего страшного!" (ExeQt0r)
Ежедневный Конкурс моделирования в Blender (Juliya)
WIP_Alexandr15 (Alexandr15)
Игра "Дом на скале" (Lunorcist)

Работа дня:

Кузнец
Ежедневный конкурс моделирования

Новые работы в галерее:


Автор: ~Rikkudo~

Автор: toSter

Автор: dopeless


Автоматический полив


Лекарственные травы


Прически и стрижки  

Как скомпилировать luxrender (на Intel compiler!)



Главная » Форум » Сложные вопросы » Как скомпилировать luxrender (на Intel compiler!)

Сообщений 12, на страницах: 1
добавить сообщение
brothermechanic
пользователь
brothermechanic
Сообщений: 419
Рейтинг: +14



08 июня 2009 в 16:31Рейтинг: 0    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

В чем проблемма???

Lost_Flint
пингвинятко
Lost_Flint
Сообщений: 248
Рейтинг: +1



09 июня 2009 в 02:41Рейтинг: 0    0    0
#1


локаль не настроена походу:
Catastrophic error: could not set locale "" to allow processing of
multibyte characters

bdancer
активист
bdancer
Сообщений: 148
Рейтинг: +1



09 июня 2009 в 12:14Рейтинг: 0    0    0
#2


//думаю это параметры сборки
//ввожу:
Что значит ввожу? Эти параметры надо в lux/CMakeLists.txt подправить под себя если требуется.

bdancer
активист
bdancer
Сообщений: 148
Рейтинг: +1



09 июня 2009 в 12:18Рейтинг: 0    0    0
#3


А так Lost_Flint прав. Тут решение: http://software.intel.com/en-us/articles/cdiag912/

brothermechanic
пользователь
brothermechanic
Сообщений: 419
Рейтинг: +14



09 июня 2009 в 23:47Рейтинг: 0    0    0
#4


Спасибо, bdacer и Lost_Flint. Дело сдвинулось с мертвой точки.
//закоментировал
# Dade - default compiler options
#ADD_DEFINITIONS(-O3 -msse2 -mfpmath=sse -ftree-vectorize -funroll-loops -Wall -DLUX_USE_OPENGL -DHAVE_PTHREAD_H)
//раскоментировал (оказуется там было:)
# Dade - Intel CC settings (single pass, 64bit)
ADD_DEFINITIONS(-O3 -ip -mtune=core2 .............................

//ввожу
$ rm -rf CMakeCache.txt CMakeFiles
$ export LANG=C
$ export LANG=en_US.UTF-8
$ export |grep LANG
//пишет мне что все ОК
declare -x LANG="en_US.UTF-8"
$ source /opt/intel/Compiler/11.0/083/bin/intel64/iccvars_intel64.sh
$ 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.
...

... Catastrophic error: could not set locale "" to allow processing of
multibyte characters ...

//ввожу
# echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
# /usr/sbin/locale-gen
$ rm -rf CMakeCache.txt CMakeFiles
$ export LANG=C
$ export LANG=en_US.UTF-8
$ export |grep LANG
declare -x LANG="en_US.UTF-8"
$ source /opt/intel/Compiler/11.0/083/bin/intel64/iccvars_intel64.sh
$ 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.
...

... Catastrophic error: could not set locale "" to allow processing of
multibyte characters ...


(((((((((((((((((((((((((((((

bdancer
активист
bdancer
Сообщений: 148
Рейтинг: +1



10 июня 2009 в 00:29Рейтинг: 0    0    0
#5


Попробуй только:
export LANG=C
и больше ничего с локалью не делай, далее сразу:
$ source /opt/intel/Compiler/11.0/083/bin/intel64/iccvars_intel64.sh
ну и далее...

brothermechanic
пользователь
brothermechanic
Сообщений: 419
Рейтинг: +14



10 июня 2009 в 22:09Рейтинг: 0    0    0
#6


BDANCER, ты СУПЕР СУПЕР СУПЕР!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!
а у меня всегда не все гладко, вот

bm@deb1:~/xfs/svn/lux_icc/luxrender-06$ export LANG=C
bm@deb1:~/xfs/svn/lux_icc/luxrender-06$ source /opt/intel/Compiler/11.0/083/bin/intel64/iccvars_intel64.sh
bm@deb1:~/xfs/svn/lux_icc/luxrender-06$ 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 Intel
-- The CXX compiler identification is Intel
-- 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 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/intel/Compiler/11.0/083/bin/intel64/icpc
-- Check for working CXX compiler: /opt/intel/Compiler/11.0/083/bin/intel64/icpc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Building for target x86_64-linux-gnu
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- OpenGL include directory: /usr/include
-- Boost version: 1.34.1
-- Found the following Boost libraries:
-- Boost library directory: /usr/lib
-- Boost include directory: /usr/include
-- Found ZLIB: /usr/lib/libz.so
-- Found PNG: /usr/lib/libpng.so
-- Found TIFF: /usr/lib/libtiff.so
-- Found TIFF: /usr/lib/libtiff.so
-- Found JPEG: /usr/lib/libjpeg.so
-- JPEG include directory: /usr/include
-- Found wxWidgets: TRUE
-- wxWidgets include directory: /usr/lib/wx/include/gtk2-unicode-release-2.8/usr/include/wx-2.8
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bm/xfs/svn/lux_icc/luxrender-06
bm@deb1:~/xfs/svn/lux_icc/luxrender-06$ make
-- Building for target x86_64-linux-gnu
-- OpenGL include directory: /usr/include
-- Boost library directory: /usr/lib
-- Boost include directory: /usr/include
-- Found TIFF: /usr/lib/libtiff.so
-- JPEG include directory: /usr/include
-- wxWidgets include directory: /usr/lib/wx/include/gtk2-unicode-release-2.8/usr/include/wx-2.8
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bm/xfs/svn/lux_icc/luxrender-06
make[2]: Warning: File `lux/core/luxlex.l' has modification time 1.9e+07 s in the future
[ 0%] Generating luxlex.cpp
[ 1%] Generating luxparse.cpp
Scanning dependencies of target lux
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Warning: File `lux/core/luxparse.y' has modification time 2.5e+07 s in the future
[ 1%] Generating luxparse.cpp
[ 1%] Building CXX object CMakeFiles/lux.dir/luxparse.o
/usr/include/c++/4.3.2/x86_64-linux-gnu/bits/c++locale.h(94): error: argument of type "char *" is incompatible with parameter of type "__va_list_tag *"
const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args);
^

/home/bm/xfs/svn/lux_icc/luxrender-06/lux/core/lux.h(44): warning #584: omission of exception specification is incompatible with previous function "expf" (declared at line 101 of "/usr/include/bits/mathcalls.h";)
inline float expf(float a) { return exp(a); }
^

/home/bm/xfs/svn/lux_icc/luxrender-06/lux/core/luxparse.y(163): warning #2215: definition at end of file not followed by a semicolon or a declarator
}
^

compilation aborted for /home/bm/xfs/svn/lux_icc/luxrender-06/luxparse.cpp (code 2)
make[2]: *** [CMakeFiles/lux.dir/luxparse.o] Error 2
make[1]: *** [CMakeFiles/lux.dir/all] Error 2
make: *** [all] Error 2

Ох же нелюблю я этот "char", веет ошибкой кода.
//declared at line 101 of "/usr/include/bits/mathcalls.h"
Вот 97 - 101 (я как всегда в "ауте", мягко говоря)
/* Exponential and logarithmic functions. */

_Mdouble_BEGIN_NAMESPACE
/* Exponential function of X. */
__MATHCALL (exp,, (_Mdouble_ __x));

А так кажется копилятор рабочий, попробую и блендер, че выйдет (а если невыйдет тем более) опишу...

brothermechanic
пользователь
brothermechanic
Сообщений: 419
Рейтинг: +14



12 июня 2009 в 18:30Рейтинг: 0    0    0
#7


СОБРАЛОСЬ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

/usr/include/c++/4.3.2/x86_64-linux-gnu/bits/c++locale.h(94): error: argument of type "char *" is incompatible with parameter of type "__va_list_tag *"
const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args);

!!!!!Оказывается это из-за!!!!!
ADD_DEFINITIONS... ..."-D'__builtin_vsnprintf(__out, __size, __fmt, __args)'='__builtin_vsnprintf(__out, __size, __fmt, (char *) __args)'";)

ТЕСТЫ

luxrender
время 15 мин
одна и та же сэкспортированная сцена (png-картинка аж 2мб, я ее поджал жипегом)

CC TotS/s S/px %
**********************
icc 26883 57 247
gcc 21832 46 241

быстрее на ~10%
Я ожидал большего.
Наверно с флагами надо поэкспериментировать.

ИТОГО (для Lost Flint-овского перевода wiki в раздел "компиляция на icc";)
//скачиваем non commercial Intel® C++ Compiler Professional Edition 11.0 for Linux*
//распаковываем
//переходим в папку l_cproc_p_11.0.083_intel64
//читаем Release_NotesC.pdf
//устанавливаем
sudo apt-get install libstdc++5
./install.sh
//будут некоторые претензии, но не обращаем внимания - если всонце пишет susesfully - значит все ок!
//когда все установилось
source /куда вы установили icc/11.0/083/bin/XXX/iccvars_XXX.sh icpc --version
//где XXX - архитектура (для core2duo - "intel64";)
//переходим в папку где будем компилировать
cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/ecume co lux
//переходим в папку lux
//редактируем CMakeLists.txt на факт "Compiler flags for specific setup", закомментировав
ADD_DEFINITIONS(-O3 -msse2 -mfpmath=sse -ftree-vectorize -funroll-loops -Wall -DLUX_USE_OPENGL -DHAVE_PTHREAD_H)
///
//вот тут помощь нужна мне
вообще какие подходящие параметры для core2duo (это, наверное, залог качества копиляции в целом)?
Вот что пишет мой kinfocenter о процессоре

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
stepping : 11
cpu MHz : 2671.600
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 5346.98
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
stepping : 11
cpu MHz : 2671.600
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 4879.62
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

///
//дальше в папке где lux
rm -rf CMakeCache.txt CMakeFiles
source /куда вы установили icc/11.0/083/bin/архитектура/iccvars_архитект ура.sh
//компилируем (это мои пути)
CC=/opt/intel/Compiler/11.0/083/bin/intel64/icc CXX=/opt/intel/Compiler/11.0/083/bin/intel64/icpc cmake lux
make
//что не так - скорей всего неправильные флаги ADD_DEFINITIONS (читаем внимательно сообщения консоли)
//тестим!


Прикреплено изображение (нажмите, чтобы увеличить):
прикрепленное изображение

brothermechanic
пользователь
brothermechanic
Сообщений: 419
Рейтинг: +14



12 мая 2010 в 08:00Рейтинг: 0    0    0
#8


///////
Доброго времени суток.
Вот вчера выкачал новый компилятор (700М!!!) - icc 11.1
Начал собирать lux а он нехочет (на gcc, опят, - без проблем собирает до 83% (но бинарник появляется))
Думаю дело во флагах
/по тем что в CMakeFiles.txt//
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)'";)


$ make
...........
[ 1%] Building CXX object CMakeFiles/lux.dir/luxparse.o
/build/svn/luxrender-svn/lux/core/lux.h(38): warning #584: omission of exception specification is incompatible with previous function "expf" (declared at line 101 of "/usr/include/bits/mathcalls.h";)
inline float expf(float a) { return exp(a); }

/usr/include/c++/4.4.1/x86_64-linux-gnu/bits/c++locale.h(89): error: argument of type "char *" is incompatible with parameter of type "__va_list_tag *"
const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args);
^

compilation aborted for /build/svn/luxrender-svn/luxparse.cpp (code 2)
make[2]: *** [CMakeFiles/lux.dir/luxparse.o] Error 2
make[1]: *** [CMakeFiles/lux.dir/all] Error 2
make: *** [all] Error 2

ладно, удаляю эти
='__builtin_vsnprintf(__out, __size, __fmt, (char *) __args)'

уже дальше))))))))
$ make
...........
[ 20%] Building CXX object CMakeFiles/lux.dir/core/renderfarm.o
/build/svn/luxrender-svn/lux/core/lux.h(38): warning #584: omission of exception specification is incompatible with previous function "expf" (declared at line 101 of "/usr/include/bits/mathcalls.h";)
inline float expf(float a) { return exp(a); }
^

/usr/include/c++/4.4.1/cmath(500): error: identifier "__builtin_fpclassify" is undefined
return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
^
detected during:
instantiation of "__gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>: :__value, int>::__type std::fpclassify(_Tp) [with _Tp=float]" at line 65 of "/usr/include/boost/functional/hash/detail/hash_float.hpp&q uot;
instantiation of "size_t={unsigned long} boost::hash_detail::float_hash_value(T) [with T=float]" at line 299 of "/usr/include/boost/functional/hash/hash.hpp"

/usr/include/c++/4.4.1/cmath(500): error: identifier "__builtin_fpclassify" is undefined
return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
^
detected during:
instantiation of "__gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>: :__value, int>::__type std::fpclassify(_Tp) [with _Tp=long double]" at line 65 of "/usr/include/boost/functional/hash/detail/hash_float.hpp&q uot;
instantiation of "size_t={unsigned long} boost::hash_detail::float_hash_value(T) [with T=long double]" at line 309 of "/usr/include/boost/functional/hash/hash.hpp"

compilation aborted for /build/svn/luxrender-svn/lux/core/renderfarm.cpp (code 2)
make[2]: *** [CMakeFiles/lux.dir/core/renderfarm.o] Error 2
make[1]: *** [CMakeFiles/lux.dir/all] Error 2
make: *** [all] Error 2

В чем проблемма?

brothermechanic
пользователь
brothermechanic
Сообщений: 419
Рейтинг: +14



13 мая 2010 в 06:19Рейтинг: 0    0    0
#9


Неужели никто не сталкивался??? ?:-|
Вообщем пробовал собирать ramen и kdenlive - та же хрень "__builtin_fpclassify"

SATtva
физически точный
SATtva
Сообщений: 4846
Рейтинг: +450



1

13 мая 2010 в 11:49Рейтинг: 0    0    0
#10


Люди НЕ ИСПОЛЬЗУЙТЕ компилятор ICC для сборки Люкса: его агрессивные оптимизации приводят к некорректным результатам в работе программы. Почемы бы мы отказались от него для официальных сборок?

Плюс ко всему, его преимущества перед GCC с Graphite-расширениями незначительны -- максимум 20%, тогда как в ряде сцен сборки на ICC оказываются даже медленнее сборок на GCC.

brothermechanic
пользователь
brothermechanic
Сообщений: 419
Рейтинг: +14



14 мая 2010 в 08:53Рейтинг: 0    0    0
#11


Здрасте.
Искал решение на просторах нета и наткнулся на статью что
причина - конфликт с gcc-4.4!
Еще прочел как один чувак решил это изменением файла
/usr/include/c++/4.4.1/x86_64-linux-gnu/bits/c++config.h
Пробовал - собрал! Но бинарник сает segmentation falted!

SATtva, ты прав. Тоже прикинул, что оно не стоит того, просто было жалко скачанных 700М)))), хоть попробовал!

Тем более свободное по в несвободной сборке o_0 )))))),

GCC наше все!


Сообщений 12, на страницах: 1
добавить сообщение
© 2007-2012 Юлия Корбут, некоторые права соблюдены.
© 2007-2012 Julia Korbut, some rights reserved.