compilation error on gm-2.0.24_Linux make with kernel 2.6.16.16

"de Almeida, Valmor F." <[email protected]> Tue, 16 May 2006 17:46:28 -0400
Newsgroups gmane.network.myrinet.general
Message-ID <[email protected]>
Hi,

Has anyone seen this error with the linux kernel 2.6.16.16? Would anyone
know what is the latest linux kernel version gm-2.0.24 is know to
compile without problems?

Thanks,

--
Valmor

gcc -m32 -c -Idrivers -Iinclude -I./include -DGM_BUILDING_GM=3D1
-DGM_DEBUG=3D0 -DGM_BUILDING_INTERNALS=3D1 -DGM_SIZEOF_UP_T=3D4 =
-DGM_KERNEL=3D1
-DGM_BUILDING_FIRMWARE=3D0 -Idrivers -I./drivers -Izlib -I./zlib
-Idrivers/linux -I./drivers/linux -Idrivers/linux/gm
-I./drivers/linux/gm -nostdinc -iwithprefix include -DMODULE
-I/lib/modules/2.6.16.16/build/include
-I/lib/modules/2.6.16.16/build/include2 -D__SMP__  -DGM_DEBUG_SETJMP=3D0
-DEXPORT_SYMTAB=3D1 -DMODULE -D__KERNEL__ -DKBUILD_MODNAME=3Dgm
-D__KERNEL__ -I/lib/modules/2.6.16.16/source/include
-I/lib/modules/2.6.16.16/source/include2
-I/lib/modules/2.6.16.16/source/include -include
/lib/modules/2.6.16.16/source/include/linux/autoconf.h -Wall
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float
-mpreferred-stack-boundary=3D2 -fno-unit-at-a-time -march=3Di686
-mtune=3Dpentium4
-I/lib/modules/2.6.16.16/source/include/asm-i386/mach-default
-Wdeclaration-after-statement  -O2 drivers/gm.c.c -o drivers/gm_k.o
In file included from
/lib/modules/2.6.16.16/build/include/linux/rwsem.h:27,
                 from
/lib/modules/2.6.16.16/build/include/asm/semaphore.h:42,
                 from
/lib/modules/2.6.16.16/build/include/linux/sched.h:20,
                 from /lib/modules/2.6.16.16/build/include/linux/mm.h:4,
                 from
/lib/modules/2.6.16.16/build/include/linux/poll.h:11,
                 from ./drivers/linux/gm/gm_arch_linux.h:39,
                 from ./drivers/linux/gm/gm_arch_def.h:6,
                 from ./drivers/linux/gm/gm_arch.h:21,
                 from ./include/gm_debug.h:122,
                 from ./include/gm_call_trace.h:23,
                 from ./drivers/gm.c:14:
/lib/modules/2.6.16.16/build/include/asm/rwsem.h: In function
`__down_read':
/lib/modules/2.6.16.16/build/include/asm/rwsem.h:105: error: syntax
error before "KBUILD_BASENAME"
/lib/modules/2.6.16.16/build/include/asm/rwsem.h: In function
`__down_write':
/lib/modules/2.6.16.16/build/include/asm/rwsem.h:157: error: syntax
error before "KBUILD_BASENAME"
/lib/modules/2.6.16.16/build/include/asm/rwsem.h: In function
`__up_read':
/lib/modules/2.6.16.16/build/include/asm/rwsem.h:194: error: syntax
error before "KBUILD_BASENAME"
/lib/modules/2.6.16.16/build/include/asm/rwsem.h:188: warning: unused
variable `tmp'
/lib/modules/2.6.16.16/build/include/asm/rwsem.h: In function
`__up_write':
/lib/modules/2.6.16.16/build/include/asm/rwsem.h:220: error: syntax
error before "KBUILD_BASENAME"
/lib/modules/2.6.16.16/build/include/asm/rwsem.h: In function
`__downgrade_write':
/lib/modules/2.6.16.16/build/include/asm/rwsem.h:245: error: syntax
error before "KBUILD_BASENAME"
In file included from
/lib/modules/2.6.16.16/build/include/linux/sched.h:20,
                 from /lib/modules/2.6.16.16/build/include/linux/mm.h:4,
                 from
/lib/modules/2.6.16.16/build/include/linux/poll.h:11,
                 from ./drivers/linux/gm/gm_arch_linux.h:39,
                 from ./drivers/linux/gm/gm_arch_def.h:6,
                 from ./drivers/linux/gm/gm_arch.h:21,
                 from ./include/gm_debug.h:122,
                 from ./include/gm_call_trace.h:23,
                 from ./drivers/gm.c:14:
/lib/modules/2.6.16.16/build/include/asm/semaphore.h: In function
`down':
/lib/modules/2.6.16.16/build/include/asm/semaphore.h:105: error: syntax
error before "KBUILD_BASENAME"
/lib/modules/2.6.16.16/build/include/asm/semaphore.h: In function
`down_interruptible':
/lib/modules/2.6.16.16/build/include/asm/semaphore.h:130: error: syntax
error before "KBUILD_BASENAME"
/lib/modules/2.6.16.16/build/include/asm/semaphore.h: In function
`down_trylock':
/lib/modules/2.6.16.16/build/include/asm/semaphore.h:155: error: syntax
error before "KBUILD_BASENAME"
/lib/modules/2.6.16.16/build/include/asm/semaphore.h: In function `up':
/lib/modules/2.6.16.16/build/include/asm/semaphore.h:179: error: syntax
error before "KBUILD_BASENAME"
make: *** [drivers/gm_k.o] Error 1