BuildingGcc
Gijs Molenaar edited this page Feb 13, 2014
·
5 revisions
The gcc-3.3 series is OK too, but I've noticed spurious compiler crashes with some code, so 3.4.x is the recommended version.
We configure it as follows:
configure --prefix=/usr/local/gcc-3.4.3 --enable-threads=posix \
--enable-version-specific-runtime-libs --enable-languages=c,c++,f77
Then build with:
make bootstrap && make install
You may want to then set CC=/usr/local/gcc-3.4.3/bin/gcc
and CXX=/usr/local/gcc-3.4.3/bin/g++
in your environment, so that everything else is built with this compiler (this does matter for some of the packages!)
Specifically, if any two packages use the STL (libstdc++), and are then linked together, they must be built with the same gcc-3.x version. AIPS++ uses STL, so do MeqTrees, and so does HippoDraw (I think).