GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.OpenQBMM - An open-source implementation of quadrature-based moment methods

I had the same problem when using gcc 4.1.2.
I switched to openfoam-1.7.0 and started to compile gcc-4.4.4 with
the system compiler and could not get it to work so before switching
environment from 1.6 to 1.7, compile gcc-4.4.4 with
the compiler from openfoam-1.6.x, which was gcc-4.3.3 for me.

I am not that good in linux commands, so I probably need a detailed cookbook recipe to get OF1.7 to work. Niels did a good job in doing so, but I got stuck. Niklas you also probably give good advise, but I am not able to use it (becuase of my lack of knowledge in linux).

go to the gcc-4.4.4 directory and create a dir called...for instance build with 'mkdir build'
'cd build' and execute the command from there
you should not run the configure script in the gcc-4.4.4 directory