Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente Prochaine révisionLes deux révisions suivantes | ||
boost [2008/07/03 18:23] – créée gerard | boost [2008/07/09 17:29] – gerard | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Compilation ====== | ====== Compilation ====== | ||
+ | ===== Sun Studio 12 ===== | ||
+ | |||
archive boost_1_34_1 dans / | archive boost_1_34_1 dans / | ||
\\ | \\ | ||
Ligne 6: | Ligne 8: | ||
> module load ss12 | > module load ss12 | ||
> setenv PATH ${PATH}:/ | > setenv PATH ${PATH}:/ | ||
+ | > setenv BOOST_JAM_TOOLSET_ROOT / | ||
> cd tools/ | > cd tools/ | ||
- | > ./build.sh sunpro | & tee BUIL.LOG | + | > ./build.sh sunpro | & tee BUILD.LOG |
</ | </ | ||
Pas sur qu'il faille faire la ligne suivante?: | Pas sur qu'il faille faire la ligne suivante?: | ||
Ligne 26: | Ligne 29: | ||
### | ### | ||
</ | </ | ||
- | il y a donc des options qui ont changées... | + | il y a donc des options qui ont changées... |
< | < | ||
- | > find . -name sun.jam | + | bjam --toolset=sun |
- | ./ | + | |
- | > bjam --toolset=sun -j2 -d2 stage | & tee BJAM.LOG | + | |
</ | </ | ||
+ | |||
+ | environ 2 heures de compil! | ||
+ | |||
+ | |||
+ | |||
+ | ===== Tests ===== | ||
+ | avec l' | ||
+ | < | ||
+ | nemo-henry% CC -I / | ||
+ | </ | ||
+ | :!: Ne pas oublier **-library=stlport4** | ||
+ | puis: | ||
+ | < | ||
+ | nemo-henry% ldd example2 | ||
+ | libboost_regex-sw-mt-d-1_34_1.so.1.34.1 => / | ||
+ | libstlport.so.1 => / | ||
+ | librt.so.1 => / | ||
+ | libCrun.so.1 => / | ||
+ | libm.so.2 => / | ||
+ | libc.so.1 => / | ||
+ | libm.so.1 => / | ||
+ | libaio.so.1 => / | ||
+ | libmd.so.1 => / | ||
+ | |||
+ | nemo-henry% ./example2 < jayne.txt | ||
+ | Will Success Spoil Rock Hunter? | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Gcc ===== | ||
+ | * il faut python > 2.3, donc mettre /usr/bin avant / | ||
+ | * il faut utiliser le linker gnu et pas celui de Sun [[http:// | ||
+ | |||
+ | < | ||
+ | > pwd | ||
+ | / | ||
+ | > setenv PATH / | ||
+ | > ./configure --prefix=/ | ||
+ | > vi user-config.jam | ||
+ | > make install | & tee INSTALL.LOG | ||
+ | |||
+ | </ | ||
+ | |||
+ | Ensuite, on teste l' | ||
+ | < | ||
+ | nemo-henry% g++ -I/ | ||
+ | nemo-henry% ./example2 < jayne.txt | ||
+ | Will Success Spoil Rock Hunter? | ||
+ | </ | ||
+ | |||
+ | Dans le INSTALL.LOG, | ||
+ | < | ||
+ | ...failed updating 176 targets... | ||
+ | ...skipped 32 targets... | ||
+ | ...updated 5600 targets... | ||
+ | Not all Boost libraries built properly. | ||
+ | </ | ||
+ | par exemple: | ||
+ | < | ||
+ | gcc.compile.c++ bin.v2/ | ||
+ | .o | ||
+ | In file included from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from libs/ | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | FIXME le problème vient de python, ou de la version du compilateur? | ||
+ | |||
+ | |||
+ | ====== boost 1_35_0 ====== | ||
+ | < | ||
+ | > setenv PATH / | ||
+ | > ./configure --prefix=/ | ||
+ | tools/ | ||
+ | -n Detecting Python version... | ||
+ | 2.5 | ||
+ | -n Detecting Python root... | ||
+ | /opt/csw | ||
+ | -n Unicode/ICU support for Boost.Regex? | ||
+ | /usr | ||
+ | Backing up existing Boost.Build configuration in user-config.jam.2 | ||
+ | Generating Boost.Build configuration in user-config.jam... | ||
+ | Generating Makefile... | ||
+ | > | ||
+ | > make install | & tee INSTALL.LOG | ||
+ | ... | ||
+ | ...failed updating 35 targets... | ||
+ | ...skipped 36 targets... | ||
+ | ...updated 5779 targets... | ||
+ | Not all Boost libraries built properly. | ||
+ | </ | ||
+ | |||
+ | cette fois ci, les erreurs sont de la forme: | ||
+ | < | ||
+ | gcc.link.dll bin.v2/ | ||
+ | ld: fatal: relocation error: file: bin.v2/ | ||
+ | collect2: ld returned 1 exit status | ||
</ | </ | ||
+ | mais comme l' |