Re: [Bug 337] New: build breakage for module versioning support

Kai Germaschewski (kai@tp1.ruhr-uni-bochum.de)
Tue, 11 Feb 2003 10:12:27 -0600 (CST)


On Tue, 11 Feb 2003, Martin J. Bligh wrote:

> http://bugme.osdl.org/show_bug.cgi?id=337
>
> Summary: build breakage for module versioning support
> Kernel Version: 2.5.60, 2.5.60-bk1
> Status: NEW
> Severity: normal
> Owner: bugme-janitors@lists.osdl.org
> Submitter: john@larvalstage.com
>
>
> Problem Description:
>
> Enabling module versioning support causes build breakage.
>
> gcc -Wp,-MD,arch/i386/kernel/.time.o.d -D__KERNEL__ -Iinclude -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=athlon
> -Iinclude/asm-i386/mach-default -nostdinc -iwithprefix include
> -DKBUILD_BASENAME=time -DKBUILD_MODNAME=time -c -o
> arch/i386/kernel/.tmp_time.o arch/i386/kernel/time.c
> ld:arch/i386/kernel/.tmp_time.ver:1: parse error
> make[1]: *** [arch/i386/kernel/time.o] Error 1
> make: *** [arch/i386/kernel] Error 2

That's caused by a sed incompatibility.
Fix already posted on l-k: (I'll submit it to Linus)

===== scripts/Makefile.build 1.27 vs edited =====
--- 1.27/scripts/Makefile.build Sat Feb 8 14:30:33 2003
+++ edited/scripts/Makefile.build Mon Feb 10 15:25:44 2003
@@ -94,7 +94,7 @@
else \
$(CPP) -D__GENKSYMS__ $(c_flags) $< \
| $(GENKSYMS) -k $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) \
- | sed -n 's/\#define __ver_\(\w*\)\W*\(\w*\)/__crc_\1 = 0x\2 ;/gp' \
+ | sed -n 's/\#define __ver_\([^ ]*\)[ ]*\([^ ]*\)/__crc_\1 = 0x\2 ;/gp' \
> $(@D)/.tmp_$(@F:.o=.ver); \
\
$(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/