The GNU compiler suite is installed as per the Blastwave package. Currently, version 3.4.2 is installed.
For whatever reason GCC is not configured with the correct CPU architecture. Hence, in order to compile C/C++ code, you must ensure that the {{-mcpu=v9}} option is specified (eg in {{CFLAGS}}).
Note that building 64-bit executables is possible ({{-m64}}) but you will not be able to link against the standard C/C++ libraries, as they are 32-bit only.
Hence for building regular unix tarballs you probably want to use:
{code}
$ CFLAGS=-mcpu=v9 ./configure
{code}
For building with BJam / Boost.Build, you can create a {{~/user-config.jam}} file as follows:
{code}
# Compiler configuration
using gcc
: 3.4.3
: /usr/sfw/bin/g++
: <cflags>"-mcpu=v9"
<cxxflags>"-mcpu=v9"
<linkflags>"-mcpu=v9"
<linker-type>sun
;
{code}
For whatever reason GCC is not configured with the correct CPU architecture. Hence, in order to compile C/C++ code, you must ensure that the {{-mcpu=v9}} option is specified (eg in {{CFLAGS}}).
Note that building 64-bit executables is possible ({{-m64}}) but you will not be able to link against the standard C/C++ libraries, as they are 32-bit only.
Hence for building regular unix tarballs you probably want to use:
{code}
$ CFLAGS=-mcpu=v9 ./configure
{code}
For building with BJam / Boost.Build, you can create a {{~/user-config.jam}} file as follows:
{code}
# Compiler configuration
using gcc
: 3.4.3
: /usr/sfw/bin/g++
: <cflags>"-mcpu=v9"
<cxxflags>"-mcpu=v9"
<linkflags>"-mcpu=v9"
<linker-type>sun
;
{code}