well, you have gcc 4.1.2, which is the 4.1.x series, not the 4.0.x series. i really think it has to do something with the 64bit modification. because i were able to run it on all my 32 bit slack linux distros (vector and zenwalk), with both gcc 4.2.3 and 4.1.2. 4.0.x was awfuly, yes, i had it on elive (debian based) 1.0 "gem", i could not compile a single program without a bunch of errors.

why don't you get a 32 bit distibution? something "official" with a great repository backing it up?