gcc problem

Hi,
I just try to solve the problem why one app failing on box1 and runs ok on box2, they have diff gcc version as I see from /proc/version:
box1:: 3.4.1
box2:: 4.1.2

It's RedHat 64b boxes, so I can not run some <make all> command on box1, do you think I need to upgrade (if I'm using right term) to gcc 4.1.2 ???
I also gives me this error like below in output, so maybe somebody can see what else could go wrong, it failed on first

#bash3_alpha$  make all
......
// errror while executing...
g++  -c -D_PLATFORM_NONWIN -m32 -m64  -I. -I/usr/openwin/include -I/usr/dt/include -I/usr/local/include  file01.cpp ...
// is it still in m32 = 32bit mode????? it's 64b machine
.....
/tmp/ccTuWyrA.s:2404: Error: bad register name `%rax)'
/tmp/ccTuWyrA.s:2406: Error: bad register name `%rbp)'
/tmp/ccTuWyrA.s:2407: Error: bad register name `%rbp)'
/tmp/ccTuWyrA.s:2408: Error: bad register name `%rax)'
/tmp/ccTuWyrA.s:2409: Error: bad register name `%rbp)'
.....

I"m bit new to this, so kill me gently please, all links will be much appreciated.

Best
Mario

The error message looks as if the 32 bit assembler was called on a 64 bit assembler source. I would try to avoid having both -m32 and -m64 in the command line. That might confuse gcc 3.x.