1. Download the stdcxx source in some directory $(TOPDIR):
  cd /usr/src
  svn co http://svn.apache.org/repos/asf/stdcxx/branches/4.2.x stdcxx

2. Build stdcxx (11s, 11d, 15s, 15d build types). The $(BUILDDIR) should be $(BUILD_ROOT)/$(compiler)-$(compiler-ver)/$(buildtype), where $(compiler) is one of gcc, icc, sun.

I.e. for gcc 4.2.1, BUILD_ROOT=/usr/tmp/stdcxx:

  cd /usr/src/stdcxx
  gmake builddir BUILDDIR=/usr/tmp/stdcxx/gcc-4.2.1/11s BUILDTYPE=11s CONFIG=gcc.config
  gmake builddir BUILDDIR=/usr/tmp/stdcxx/gcc-4.2.1/11d BUILDTYPE=11d CONFIG=gcc.config
  gmake builddir BUILDDIR=/usr/tmp/stdcxx/gcc-4.2.1/15s BUILDTYPE=15s CONFIG=gcc.config
  gmake builddir BUILDDIR=/usr/tmp/stdcxx/gcc-4.2.1/15d BUILDTYPE=15d CONFIG=gcc.config
  cd /usr/tmp/stdcxx/gcc-4.2.1/11s/include
  gmake
  cd ../lib
  gmake
  cd /usr/tmp/stdcxx/gcc-4.2.1/11d/include
  gmake
  cd ../lib
  gmake
  cd /usr/tmp/stdcxx/gcc-4.2.1/15s/include
  gmake
  cd ../lib
  gmake
  cd /usr/tmp/stdcxx/gcc-4.2.1/15d/include
  gmake
  cd ../lib
  gmake

3. Download run.py in some directory $(BOOST_TEST_ROOT)

  mkdir /usr/src/boost_test
  cd /usr/src/boost_test
  wget http://svn.boost.org/svn/boost/trunk/tools/regression/src/run.py

4. Extract in $(BOOST_TEST_ROOT) the boost_test.zip

  wget http://people.apache.org/~faridz/boost_test.zip
  unzip boost_test.zip

5. Create $(compiler)-$(compiler-ver).patch file (from this step for intel compiler the $(compiler)=intel, but not icc), copying from one of gcc-4.2.1.patch, intel-10.1.patch, sun-5.9.patch and updating if needed:

  • the compiler version in line "+using $(compiler) : $(compiler_ver)_stdcxx_421 ;"
  • the stdcxx paths in line "+using stdcxx : 4.2.1 : $(TOPDIR) $(BUILD_ROOT) ;"

6. Update runtests.sh changing the --runner= option to personal runner id.

7. Run tests for specified compiler ./runtests.sh $(compiler)-$(compiler-ver)

  ./runtests.sh gcc-4.2.1
  • No labels