rose is a nice tool, suggested when reading the book <The CERT C Secure Coding Standard>
just install the tool on my Fedora 15 node,
1. Fetch the latest source code from official website: 0.9.5a-multiplatform-14791
2. Prepare the packages needed,(I use official Java Bins configured, which can be detected by configure script)
|
yum install boost-devel gcc-gfortran |
3. modify the configure script incase a boost version detect failure.
|
8622c8622 < rose_boost_version=`grep "#define BOOST_VERSION " ${ac_boost_path}/include/boost/version.hpp | cut -d" " -f 3` --- > rose_boost_version=`grep "#define BOOST_VERSION " /usr/include/boost/version.hpp | cut -d" " -f 3` |
**About the path , I use following line to determine, it may also works on RH related platform.
|
$grep BOOST_VERSION `rpm -ql boost-devel| grep version` |
4. configure with setting, for currently fedora.15 using gcc-4.6.0.
|
--disable-gcc-version-check Disable GCC version 4.0.x - 4.4.x verification check |
If you do only need some(not all) languages supported, using
|
--enable-languages=LIST Build specific languages: all,none,binary-analysis,c,c++,cuda,fortran,java,opencl,php (default=all) |
5. make and continue.
Before make do modify the Makefile, or the script shall not fetch the related EDG binaries for version4.6.
|
320c320 < GENERATED_COMPILER_NAME_AND_VERSION_SUFFIX = GNU-4.6 --- > GENERATED_COMPILER_NAME_AND_VERSION_SUFFIX = GNU-4.4 |