LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Kernel crash: Whassup? (https://www.linuxquestions.org/questions/linux-kernel-70/kernel-crash-whassup-4175532629/)

business_kid 01-31-2015 01:30 PM

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

Ztcoracat 01-31-2015 06:54 PM

Hi:

These links might help.-:D

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

business_kid 02-01-2015 01:27 PM

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.

Ztcoracat 02-01-2015 02:39 PM

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.:-

business_kid 02-02-2015 05:05 AM

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.

business_kid 02-02-2015 05:54 AM

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.

cepheus11 02-02-2015 05:56 AM

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%.


cepheus11 02-02-2015 05:57 AM

haha you beat me by 2 minutes. Grats that it is solved.

Ztcoracat 02-02-2015 08:09 AM

Quote:

Originally Posted by business_kid (Post 5310477)
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!


All times are GMT -5. The time now is 06:05 PM.