2.6.4, nvidia, gcc3.4 i zonk.
Paweł Sikora
pluto w ds14.agh.edu.pl
Wto, 2 Mar 2004, 01:16:51 CET
proba kompilacji kernela...
[root]-[/usr/src/linux] # make bzImage
CC scripts/empty.o
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
HOSTCC scripts/modpost.o
HOSTCC scripts/sumversion.o
HOSTLD scripts/modpost
SPLIT include/linux/autoconf.h -> include/config/*
CC arch/i386/kernel/asm-offsets.s
CHK include/asm-i386/asm_offsets.h
CC init/main.o
CHK include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
LD init/mounts.o
CC init/initramfs.o
LD init/built-in.o
CC arch/i386/kernel/process.o
arch/i386/kernel/process.c:497: error: conflicting types for '__switch_to'
include/asm/system.h:13: error: previous declaration of '__switch_to' was here
arch/i386/kernel/process.c:497: error: conflicting types for '__switch_to'
include/asm/system.h:13: error: previous declaration of '__switch_to' was here
make[1]: *** [arch/i386/kernel/process.o] Błąd 1
make: *** [arch/i386/kernel] Błąd 2
i zonk.
jedna zmiana w konfigu:
-# CONFIG_REGPARM is not set
+CONFIG_REGPARM=y
i sie buduje bez problemu, tylko, ze inny sposob przekazywania
parametrow powoduje wysypke modulu nvidii przy modprobe.
(mysle, ze wszsytkie inne binarne moduly tez poleca na tym).
-mregparm=num (kernel przyjmuje num=3)
Control how many registers are used to pass integer arguments.
By default, no registers are used to pass arguments,
and at most 3 registers can be used. You can control this
behavior for a specific function by using the function attribute
regparm.
Warning: if you use this switch, and num is nonzero,
then you must build all modules with the same value,
including any libraries.
This includes the system libraries and startup modules.
ehh, jak nie urok, to sraczka.
--
If you think of MS-DOS as mono, and Windows as stereo,
then Linux is Dolby Digital and all the music is free...
Więcej informacji o liście dyskusyjnej pld-devel-pl