LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-31-2015, 01:30 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Kernel crash: Whassup?


Code:
root@RoseViolet:/usr/src/linux-stable# make
arch/xroot@RoseViolet:/usr/src/linux-stable# make
arch/x86/Makefile:114: stack-protector enabled but compiler support broken
arch/x86/Makefile:129: CONFIG_X86_X32 enabled but no binutils support
Makefile:656: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
kernel/bounds.c:1:0: error: code model 'kernel' not supported in the 32 bit mode
 /*
 ^
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
86/Makefile:114: stack-protector enabled but compiler support broken
arch/x86/Makefile:129: CONFIG_X86_X32 enabled but no binutils support
Makefile:656: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
kernel/bounds.c:1:0: error: code model 'kernel' not supported in the 32 bit mode
 /*
 ^
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
The system is slackware-current as of 09/14. A similar kernel built on another box with an identical install works fine. This box pukes as above, ergo something is wrong with my PC.

The kernel is the linux-stable git as of today. Gcc is the standard (very reliable) slackware gcc-4.8.3 with Alien Bob's multilib packages. I am not cross compiling.

gcc -dumpspecs is here: http://pastebin.com/M4ruCkKW
 
Old 01-31-2015, 06:54 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

These links might help.-

http://stackoverflow.com/questions/1...ernel-with-gcc
https://www.kernel.org/pub/linux/ker...angeLog-3.14.4
http://forums.gentoo.org/viewtopic-p-5742365.html
 
Old 02-01-2015, 01:27 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Thanks, but no.

I don't have a 32 bit kernel, or userland. The system built the kernel I am running on, and more since. This is 64 bit throughout. Stable and working. Now this starts. I will try booting a different distro kernel though.
 
Old 02-01-2015, 02:39 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Your Welcome.

Maybe like you said; booting another version of the kernel will work.

If your having performance or hardware issue's a newer version kernel should solve the issue.
https://www.kernel.org/

http://www.linuxquestions.org/questi...nsense-921719/

Sorry those links didn't help.
Gave it my best to try to help. Good luck.:-
 
1 members found this post helpful.
Old 02-02-2015, 05:05 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Well, I tried on the same setup with the original slackware kernel release - same error.
I took out the install cd, and reinstalled the GCC suite of packages. Slackware has this 'upgradepkg --reinstall' option which allows "upgrading" with the same version. That gave me this
Code:
root@RoseViolet:/mnt/cdrom/slackware64/d# cd /usr/src/linux-stable/
root@RoseViolet:/usr/src/linux-stable# time make -j2
arch/x86/Makefile:114: stack-protector enabled but compiler support broken
arch/x86/Makefile:129: CONFIG_X86_X32 enabled but no binutils support
Makefile:659: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../../x86_64-slackware-linux/bin/ld: skipping
incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.8.3/libgcc.a when searching for -lgcc
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../../x86_64-slackware-linux/bin/ld: skipping
incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
make[2root@RoseViolet:/mnt/cdrom/slackware64/d# cd /usr/src/linux-stable/
root@RoseViolet:/usr/src/linux-stable# time make -j2
arch/x86/Makefile:114: stack-protector enabled but compiler support broken
arch/x86/Makefile:129: CONFIG_X86_X32 enabled but no binutils support
Makefile:659: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../../x86_64-slackware-linux/bin/ld: skipping
incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.8.3/libgcc.a when searching for -lgcc
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../../x86_64-slackware-linux/bin/ld: skipping
incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/kconfig/conf] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.
Stop.
make: *** Waiting for unfinished jobs....

real    0m4.872s
user    0m3.621s
sys     0m1.044s


]: *** [scripts/kconfig/conf] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.
Stop.
make: *** Waiting for unfinished jobs....

real    0m4.872s
user    0m3.621s
sys     0m1.044s

Some investigations . . .
root@RoseViolet:/usr/src/linux-stable# file /usr/lib64/gcc/x86_64-slackware-linux/4.8.3/libgcc.a
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/libgcc.a: current ar archive
root@RoseViolet:/usr/src/linux-stable# file /usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../libgcc_s.so
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../libgcc_s.so: symbolic link to `libgcc_s.so.1'
root@RoseViolet:/usr/src/linux-stable# file
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../libgcc_s.so.1
/usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../libgcc_s.so.1: ELF 64-bit LSB  shared object, x86-64,
version 1 (SYSV), dynamically linked, stripped
root@RoseViolet:/usr/src/linux-stable# ls -lh /usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../libgcc_s.so.1
-rwxr-xr-x 1 root root 87K May 29  2014 /usr/lib64/gcc/x86_64-slackware-linux/4.8.3/../../../libgcc_s.so.1*
Which, to my mind, is worse again. I have no reason to suspect the dvdrom. After I installed this box, I installed the other one from the same dvd and that works fine.

So, not for the first time, I am retiring in defeat. I will boot on the DVD and thoroughly check the disk, reinstall once more, and diff with the backup. That might sort it.
 
Old 02-02-2015, 05:54 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Ztcoracat, you're a star! What search did you pull to find that?

That link you sent about 32dev.sh proved to be the thing!

What a crazy M$ like gotcha to trip over! Why didn't I trip over it last September when I installed here? It's churning away here kernel building.

I suppose that's part of Alien Bob's package to allow you to build 32 bit code. The only 32 bit thing I ever build is wine. It's also on a box that builds away without trouble. But it's close enough to a solution for me to stop messing.
 
Old 02-02-2015, 05:56 AM   #7
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
Code:
Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
What is your gcc version? You need gcc 4.2 for that option. From the help page in make menuconfig:

Code:
CONFIG_CC_STACKPROTECTOR_REGULAR:

Functions will have the stack-protector canary logic added if they have an 8-byte or larger character array on the stack.
                                                                                                                        
This feature requires gcc version 4.2 or above, or a distribution
gcc with the feature backported ("-fstack-protector").
                                                                                                                        
On an x86 "defconfig" build, this feature adds canary checks to
about 3% of all kernel functions, which increases kernel code size
by about 0.3%.
 
Old 02-02-2015, 05:57 AM   #8
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
haha you beat me by 2 minutes. Grats that it is solved.

Last edited by cepheus11; 02-02-2015 at 05:57 AM. Reason: typo
 
Old 02-02-2015, 08:09 AM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by business_kid View Post
Ztcoracat, you're a star! What search did you pull to find that?

That link you sent about 32dev.sh proved to be the thing!

What a crazy M$ like gotcha to trip over! Why didn't I trip over it last September when I installed here? It's churning away here kernel building.

I suppose that's part of Alien Bob's package to allow you to build 32 bit code. The only 32 bit thing I ever build is wine. It's also on a box that builds away without trouble. But it's close enough to a solution for me to stop messing.
Thank You business_kid-

Glad that link was just the right thing.

-:-Looking up error codes can be a real gem. Persistance is the key alongside a dose of good fortune.-:-
Code:
kernel/bounds.c:1:0: error: code model 'kernel' not supported in the 32 bit mode
Cheers!
 
  


Reply



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
kernel crash after running a stable kernel from kernel.org Saptarshi4031 Linux - Newbie 1 06-05-2013 08:39 AM
[SOLVED] Slackware's grub - whassup? business_kid Slackware 1 12-06-2012 10:36 AM
[SOLVED] Skype Symbol Lookup error - Whassup? business_kid Slackware 8 08-06-2012 12:08 PM
[SOLVED] Netlink sockets in kernel and ethernet driver. Kernel crash. Squier Programming 2 05-08-2011 12:57 PM
[SOLVED] whassup w/ this package...? Alexvader General 1 09-23-2010 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration