PDOG4X4_at_aol.com
Date: Wed Aug 21 2002 - 21:59:20 CEST
Date: Wed, 21 Aug 2002 15:59:20 -0400 From: PDOG4X4@aol.com Message-ID: <16024D0A.0F31332C.00173B6E@aol.com> Subject: Re: [suse-sparc] Kernel Module building problem
Murray,
I have had the same exact problem on a Sun Blade 100. I found that the problem lie somewhere in the gcc commands... Finally I just copied the flags directly from "make modules" ... The result works :)
Anyhow, this Makefile compiles them just fine. I also modified the include directories in mine to be friendlier to new kernel's... As per Linus' recommendation.
Include: Makefile
==================
::BEGIN::
CC=sparc64-linux-gcc
VERSIONINFO=$(shell uname -r)
CFLAGS := -D__KERNEL__ -I/lib/modules/$(VERSIONINFO)/build/include \
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
-fno-strict-aliasing -fno-common -fomit-frame-pointer \
-m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
-ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare \
-Wa,--undeclared-regs -DMODULE -DMODVERSIONS \
-include /usr/src/linux-2.4.19/include/linux/modversions.h \
-nostdinc -I /usr/lib/gcc-lib/sparc64-suse-linux/egcs-2.92.11/include
testmodule.o: testmodule.c
$(CC) $(CFLAGS) -c -o testmodule.o testmodule.c
::END::
-- To unsubscribe, e-mail: suse-sparc-unsubscribe@suse.com For additional commands, e-mail: suse-sparc-help@suse.com
This archive was generated by hypermail 2.1.4 : Wed Aug 21 2002 - 21:59:35 CEST