Problem solved - had to do a make proper and not just a make clean.  Obviously some old intermediary files from a previous install in my source code... :}



On 31 August 2011 12:34, Richard Good <richgood2005@gmail.com> wrote:
Hi,

I'm having some strange compile problems with the malloc_test and tm module.

The core compiles correctly but when I do make modules I get:
CC (gcc) [M malloc_test.so]             malloc_test.o
/var/tmp//cc2iaGsC.s: Assembler messages:
/var/tmp//cc2iaGsC.s:1280: Error: suffix or operands invalid for `xadd'
/var/tmp//cc2iaGsC.s:1813: Error: suffix or operands invalid for `xadd'
/var/tmp//cc2iaGsC.s:2331: Error: suffix or operands invalid for `xadd'
make[1]: *** [malloc_test.o] Error 1

If I remove the malloc_test module from compliation (As I am not using it) when I do make modules I get:
CC (gcc) [M tm.so]              t_cancel.o
/var/tmp//ccWeaWKH.s: Assembler messages:
/var/tmp//ccWeaWKH.s:105: Error: suffix or operands invalid for `cmpxchg'
/var/tmp//ccWeaWKH.s:155: Error: suffix or operands invalid for `cmpxchg'
/var/tmp//ccWeaWKH.s:241: Error: suffix or operands invalid for `cmpxchg'
/var/tmp//ccWeaWKH.s:259: Error: suffix or operands invalid for `cmpxchg'
/var/tmp//ccWeaWKH.s:570: Error: suffix or operands invalid for `cmpxchg'
make[1]: *** [t_cancel.o] Error 1

My machine is: SunOS HOST_NAME 5.11 snv_151a i86pc i386 i86pc Solaris and my gcc version is gcc version 3.4.3 (csl-sol210-3_4-20050802)

I have successfully compiled and run this on an identical Solaris setup with the same Makefile configuration.

Has anyone had a similar problem?

Regards
Richard.