LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Problems after compile 3.5 kernel (http://www.linuxquestions.org/questions/slackware-14/problems-after-compile-3-5-kernel-4175413833/)

zerouno 06-28-2012 08:58 AM

Problems after compile 3.5 kernel
 
I'm trying the very newest kernel (linux-next from git-20120628).

using the config-huge-3.2.21 and removing DLM and GF2 (as who compiled 3.4.4 kernel) it build fine.

after make modules_install, configuring lilo and rebooting, I had some problems:

1) during boot there is a moment in which boot process seem to be stalled:
# dmesg
...
[ 1.438561] tsc: Refined TSC clocksource calibration: 2195.013 MHz
[ 1.438871] Switching to clocksource tsc
[ 20.477961] floppy0: no floppy controllers found
...

2) I use a nvidia graphics card with the proprietary driver but the kernel module do not compile:
# make module
NVIDIA: calling KBUILD...
make -C /lib/modules/3.5.0-rc4-next-20120628+/build \
KBUILD_SRC=/usr/src/linux-next-20120628 \
KBUILD_EXTMOD="/usr/share/nvidia-linux/kernel" -f /usr/src/linux-next-20120628/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /usr/share/nvidia-linux/kernel/.tmp_versions ; rm -f /usr/share/nvidia-linux/kernel/.tmp_versions/*
make -f /usr/src/linux-next-20120628/scripts/Makefile.build obj=/usr/share/nvidia-linux/kernel
cc -Wp,-MD,/usr/share/nvidia-linux/kernel/.nv.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/include -I/usr/src/linux-next-20120628/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-next-20120628/include -include /usr/src/linux-next-20120628/include/linux/kconfig.h -I/usr/share/nvidia-linux/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/usr/share/nvidia-linux/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"295.59\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /usr/share/nvidia-linux/kernel/nv.o /usr/share/nvidia-linux/kernel/nv.c
In file included from include/linux/kernel.h:19:0,
from include/linux/sched.h:55,
from include/linux/utsname.h:35,
from /usr/share/nvidia-linux/kernel/nv-linux.h:38,
from /usr/share/nvidia-linux/kernel/nv.c:13:
include/linux/bitops.h: In function 'hweight_long':
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/linux-next-20120628/arch/x86/include/asm/uaccess.h:586:0,
from include/linux/poll.h:14,
from /usr/share/nvidia-linux/kernel/nv-linux.h:97,
from /usr/share/nvidia-linux/kernel/nv.c:13:
/usr/src/linux-next-20120628/arch/x86/include/asm/uaccess_64.h: In function 'copy_from_user':
/usr/src/linux-next-20120628/arch/x86/include/asm/uaccess_64.h:53:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if [ "-pg" = "-pg" ]; then if [ /usr/share/nvidia-linux/kernel/nv.o != "scripts/mod/empty.o" ]; then /usr/src/linux-next-20120628/scripts/recordmcount "/usr/share/nvidia-linux/kernel/nv.o"; fi; fi;
cc -Wp,-MD,/usr/share/nvidia-linux/kernel/.nv-acpi.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/include -I/usr/src/linux-next-20120628/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-next-20120628/include -include /usr/src/linux-next-20120628/include/linux/kconfig.h -I/usr/share/nvidia-linux/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/usr/share/nvidia-linux/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"295.59\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_acpi)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /usr/share/nvidia-linux/kernel/nv-acpi.o /usr/share/nvidia-linux/kernel/nv-acpi.c
In file included from include/linux/kernel.h:19:0,
from include/linux/sched.h:55,
from include/linux/utsname.h:35,
from /usr/share/nvidia-linux/kernel/nv-linux.h:38,
from /usr/share/nvidia-linux/kernel/nv-acpi.c:15:
include/linux/bitops.h: In function 'hweight_long':
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/linux-next-20120628/arch/x86/include/asm/uaccess.h:586:0,
from include/linux/poll.h:14,
from /usr/share/nvidia-linux/kernel/nv-linux.h:97,
from /usr/share/nvidia-linux/kernel/nv-acpi.c:15:
/usr/src/linux-next-20120628/arch/x86/include/asm/uaccess_64.h: In function 'copy_from_user':
/usr/src/linux-next-20120628/arch/x86/include/asm/uaccess_64.h:53:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/usr/share/nvidia-linux/kernel/nv-acpi.c: In function 'nv_acpi_remove':
/usr/share/nvidia-linux/kernel/nv-acpi.c:303:9: error: too many arguments to function 'acpi_os_wait_events_complete'
In file included from include/acpi/acpi.h:63:0,
from /usr/share/nvidia-linux/kernel/nv-linux.h:269,
from /usr/share/nvidia-linux/kernel/nv-acpi.c:15:
include/acpi/acpiosxf.h:208:6: note: declared here
make[4]: *** [/usr/share/nvidia-linux/kernel/nv-acpi.o] Error 1
make[3]: *** [_module_/usr/share/nvidia-linux/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

so I must to use the nouveau driver



Some solutions?

Didier Spaier 06-28-2012 09:02 AM

May be wait till nVidia's drivers support the 3.5 kernel ;)

zerouno 06-28-2012 09:08 AM

the 3.4.4 kernel is supported?




with the beta drivers (302.07) the error change:

$ make module
NVIDIA: calling KBUILD...
make -C /lib/modules/3.5.0-rc4-next-20120628+/build \
KBUILD_SRC=/usr/src/linux-next-20120628 \
KBUILD_EXTMOD="/home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel" -f /usr/src/linux-next-20120628/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/.tmp_versions ; rm -f /home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/.tmp_versions/*
make -f /usr/src/linux-next-20120628/scripts/Makefile.build obj=/home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel
cc -Wp,-MD,/home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/.nv.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/include -I/usr/src/linux-next-20120628/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-next-20120628/include -include /usr/src/linux-next-20120628/include/linux/kconfig.h -I/home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"302.07\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv.o /home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv.c
In file included from include/linux/kernel.h:19:0,
from include/linux/sched.h:55,
from include/linux/utsname.h:35,
from /home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv-linux.h:38,
from /home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv.c:13:
include/linux/bitops.h: In function 'hweight_long':
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/linux-next-20120628/arch/x86/include/asm/uaccess.h:586:0,
from include/linux/poll.h:14,
from /home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv-linux.h:97,
from /home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv.c:13:
/usr/src/linux-next-20120628/arch/x86/include/asm/uaccess_64.h: In function 'copy_from_user':
/usr/src/linux-next-20120628/arch/x86/include/asm/uaccess_64.h:53:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv.c:13:0:
/home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv-linux.h: At top level:
/home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[4]: *** [/home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel/nv.o] Error 1
make[3]: *** [_module_/home/matteo/Downloads/NVIDIA-Linux-x86_64-302.07/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

ponce 06-28-2012 09:17 AM

3.4.4 is supported by the nvidia drivers.
I just suggest to stay with the long term (295.59) because also the latest 302.x (302.17) caused an hard freeze here when browsing the interwebs (in a simple page, no flash). There are other similar reports on nvidia forums.

the small stall during boot just after clocksource calibration happens also on my work desktop with 3.5-rc4, but I think it's nothing to worry about.

zerouno 06-28-2012 10:38 AM

Well.. if 295 works, yes, I prefer 295.
If 295 does not works AND 302 works, I prefer 302.
But nor 295 nor 302 works :-(

Do you really wait about 20seconds at every boots?

@ponce: see this :-D

zerouno 06-28-2012 10:45 AM

with this patch 295 build fine.
But to try I must to reboot first ;-) (and now I've no time)

ponce 06-28-2012 10:49 AM

which patch? I think you forgot to attach it ;)

I don't care about an handful of seconds at boot, I don't reboot that often.

zerouno 06-28-2012 10:52 AM

yesssssssssssssssssssss it works!!!!



diff -ur kernel-orig//nv-acpi.c kernel/nv-acpi.c
--- kernel-orig//nv-acpi.c 2012-06-07 06:19:46.000000000 +0200
+++ kernel/nv-acpi.c 2012-06-28 17:42:16.899430124 +0200
@@ -300,7 +300,7 @@
if (pNvAcpiObject->notify_handler_installed)
{
// no status returned for this function
- acpi_os_wait_events_complete(NULL);
+ acpi_os_wait_events_complete();

// remove event notifier
status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, nv_acpi_event);

Didier Spaier 06-28-2012 10:53 AM

Anyhow this kernel isn't worth testing anymore. It's too old as it has been tagged 9 looong hours ago ;)

Alchemikos 06-28-2012 03:39 PM

Yesterday I fixed something like this removing the every frame buffers support in kernel menuconfig, to 3.4.4

I read in some that:

Known bugs (nvidia)

nv (xserver-xorg-video-nv) and VESA (xserver-xorg-video-vesa) Xorg driver, and the proprietary 3D driver (nvidia-glx) are incompatible with KMS.
@ http://wiki.debian.org/KernelModesetting

and:

Previously, setting up the video card was the job of the X server. Because of this, it was not easily possible to have fancy graphics in virtual consoles

@ https://wiki.archlinux.org/index.php...l_Mode_Setting


Maybe this is one of some problems, 'cause to me a lot of IRC problemas was showed before disable that. And after all working fine.

:)

Alchemikos

zerouno 06-28-2012 05:13 PM

Quote:

Originally Posted by Didier Spaier (Post 4714237)
Anyhow this kernel isn't worth testing anymore. It's too old as it has been tagged 9 looong hours ago ;)


# more .git/config
url = https://git.kernel.org/pub/scm/linux...linux-next.git

# TZ=GMT date
Thu Jun 28 22:10:11 GMT 2012

# git log
commit c12efe68a826d6a90a44838998fe6943b12a4e66
Author: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu Jun 28 16:20:08 2012 +1000

Add linux-next specific files for 20120628

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>



# git pull
Already up-to-date.



Is the latest (now)

Didier Spaier 06-28-2012 05:23 PM

@zeruno: Dont' take my words too seriously, I was joking.

But, do you really intent to make and install a new kernel as soon as you see a new commit in the log? I can't see the purpose of that :scratch:

zerouno 06-28-2012 05:41 PM

Yes, I had undestood the joking ;-) but I could not resist :-D

And No, I do not intend build a kernel for day. My last kernel compilation was done about some years ago ;-) becouse I do prefer a prebuilt binary (for this reason I ask for 3.4 in /extra, but this is offtopic here).

I think that I return to 3.2.21 in a few days unless I will see a very advantage to use the 3.5 kernel


All times are GMT -5. The time now is 09:28 PM.