LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-28-2012, 09:58 AM   #1
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 272

Rep: Reputation: 82
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?
 
Old 06-28-2012, 10:02 AM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,534

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
May be wait till nVidia's drivers support the 3.5 kernel
 
Old 06-28-2012, 10:08 AM   #3
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 272

Original Poster
Rep: Reputation: 82
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
 
Old 06-28-2012, 10:17 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,483

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
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.

Last edited by ponce; 06-28-2012 at 10:27 AM.
 
Old 06-28-2012, 11:38 AM   #5
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 272

Original Poster
Rep: Reputation: 82
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
 
Old 06-28-2012, 11:45 AM   #6
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 272

Original Poster
Rep: Reputation: 82
with this patch 295 build fine.
But to try I must to reboot first ;-) (and now I've no time)
 
Old 06-28-2012, 11:49 AM   #7
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,483

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
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.

Last edited by ponce; 06-28-2012 at 11:53 AM.
 
Old 06-28-2012, 11:52 AM   #8
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 272

Original Poster
Rep: Reputation: 82
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);
 
Old 06-28-2012, 11:53 AM   #9
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,534

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Anyhow this kernel isn't worth testing anymore. It's too old as it has been tagged 9 looong hours ago
 
Old 06-28-2012, 04:39 PM   #10
Alchemikos
Member
 
Registered: Jun 2012
Location: Porto Alegre-Brazil
Distribution: Slackware- 14, Debian Wheezy, Ubuntu Studio, Tails
Posts: 88

Rep: Reputation: 6
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
 
Old 06-28-2012, 06:13 PM   #11
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 272

Original Poster
Rep: Reputation: 82
Quote:
Originally Posted by Didier Spaier View Post
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)
 
Old 06-28-2012, 06:23 PM   #12
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,534

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
@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
 
Old 06-28-2012, 06:41 PM   #13
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 272

Original Poster
Rep: Reputation: 82
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems after kernel compile rangalo Slackware 9 01-27-2006 11:06 AM
kernel compile problems mailbinoy Linux - Newbie 5 06-30-2005 12:13 PM
Problems with kernel compile BNI Debian 3 05-31-2005 04:50 AM
kernel 2.6.10 - compile problems junkredish Linux - Software 2 01-12-2005 02:24 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 07:02 AM


All times are GMT -5. The time now is 08:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration