LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2013, 09:11 PM   #1
Nmeumonic
LQ Newbie
 
Registered: Sep 2013
Posts: 8

Rep: Reputation: Disabled
Compiling new kernal in Slackware 14


Hello all. I was trying to compile a kernal in Slackware 14 this evening, following the write up found http://blog.tpa.me.uk/slackware-kernel-compile-guide/ there. I get to the "make -j7" part, it begins to work then...
Code:
/usr/src/linux-3.2.29/scripts/gcc-version.sh: line 25: -DarkStargcc: command not found
/usr/src/linux-3.2.29/scripts/gcc-version.sh: line 26: -DarkStargcc: command not found
/usr/src/linux-3.2.29/arch/x86/Makefile:81: stack protector enabled but no compiler support
make: -DarkStargcc: Command not found
make[1]: Nothing to be done for `relocs'.
  CHK     include/linux/version.h
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/empty.o
/bin/sh: -DarkStargcc: command not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[2]: *** Waiting for unfinished jobs....
  CHK     include/generated/utsrelease.h
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC      kernel/bounds.s
/bin/sh: -DarkStargcc: command not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
What am i missing?
 
Old 09-24-2013, 09:19 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Can you post the exact command you typed please? It looks like the default hostname (darkstar) was pasted in somewhere. Have you changed any environment variables or config file values (apart from the make menuconfig part)?
 
Old 09-24-2013, 09:25 PM   #3
Nmeumonic
LQ Newbie
 
Registered: Sep 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
I used the default DarkStar name here
Code:
cp .config /boot/config-generic-smp-$(uname -r)-<LocalVersion>
in place of <LocalVersion> in that line. "where <LocalVersion> is the string you added in the kernel config LocalVersion option." Excerpt from the site I referenced. Did I use the wrong syntax in something?
 
Old 09-24-2013, 11:49 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
That looks fine - if you've re-run the commands and gotten the same error I'd have a look in /usr/src/linux-3.2.29/scripts/gcc-version.sh and see what lines 25 & 26 are doing. The inputs it uses might give a clue as to what has happened.
 
Old 09-25-2013, 12:24 AM   #5
Nmeumonic
LQ Newbie
 
Registered: Sep 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Well, I didn't download any new source for the kernal or anything, just using what i had. I'll compile a new 3.11 kernal and go from there. Will post results. Thanks for reading!
 
Old 09-25-2013, 04:28 AM   #6
Nmeumonic
LQ Newbie
 
Registered: Sep 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Now, downloaded the new source. Compiled, and failed to get it to boot. Lol. Figured that out, recompiled, now it won't load my wireless card module, and in Menuconfig, I can't seem to find what I'm looking for. Wireless loads just fine when I boot from the emergency usb stick i made, thank god. But my new kernel doesn't seem to find my wireless card now. The results from
lspci -nn -s 03:00.0
returns
03:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection [8086:4227] (rev 02)

Is it possible to insert this as a module, without having to compile the kernel (again)?

Also, when loading the default kernel (3.2.29) I see that the Fuse module loads without a problem. On my new kernel (3.11.1), I see Fuse module fails to load. I didn't see an option in Menuconfig when I compiled to enable this or the wireless module. What am I doing wrong? This is an older IBM Lenovo R61 that I'm using, so a smaller, faster kernel with as many modules compiled in would be best (not changing hardware and such). Any help at all would be great. If anything, just tell me how to get the information you need to help (logs, error messages and such).

Used this site this time for my kernel info

Last edited by Nmeumonic; 09-25-2013 at 05:00 AM. Reason: added fuse module error/added writeup I'm using
 
Old 09-25-2013, 10:51 AM   #7
Nmeumonic
LQ Newbie
 
Registered: Sep 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Bump
 
Old 09-25-2013, 08:47 PM   #8
Nmeumonic
LQ Newbie
 
Registered: Sep 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Ok, so kernel compiled, wifi issue solved, bluetooth is not currently working. Not a big issue, won't be much use to me. Now, my cd/rw drive won't burn any cd's unless i'm root. Not so much that it won't burn, as k3d doesn't even recognize that i have a cd burner. Now, i use Xfce window manager. When i put a cd in the drive on the root account, it automatically shows up on the desktop and in the file manager. That's all good. When mounted as a regular user, tho, it pops up 2 icons on the desktop and filemanager, and is mounted in /run/media it think, not /mnt/cdrom. This is the point when, when starting K3B, is says there is no optical drives installed. It seems to me that it sees my cdrom as a usb drive, not optical, when using the normal user account.
Thanks for your help in advance. Maybe i'll get it figured out before i come back

Oh, btw, is there any way to probe ALL my hardware so I can get a list and compile this kernel one more time without missing anything?
 
Old 09-27-2013, 05:34 AM   #9
Nmeumonic
LQ Newbie
 
Registered: Sep 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Bump
 
Old 11-21-2013, 09:13 PM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware has beern Main OpSys for decades while testing others to keep up
Posts: 1,265

Rep: Reputation: 1117Reputation: 1117Reputation: 1117Reputation: 1117Reputation: 1117Reputation: 1117Reputation: 1117Reputation: 1117Reputation: 1117
Adding to the list

Greetings
I can't help you with any answers yet. All I can do is add to the list of complainers about K3B. Mine worked fine originally and seemed to no longer recognize my Plextor SATA DVD burner after upgrading to kernel version 3.12. I don't know with any level of certainty that these are related as I don't burn that often and don't upgrade kernel more than around 3 times per year.

FWIW I used "make oldconfig" first employing zcat or running config and only accepted a few new items, mostly as modules. So far I can't see how adding on would break K3B but I do want to find out, and one way or another, I will. Google so far returns many "not recognize" issues with K3B across many distros and kernels. Hmmmmm
 
Old 11-22-2013, 08:54 AM   #11
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
You might check the dvd device and be sure it can be written to. Sometimes udev (or whatever you are using to create /dev) will get the access mask incorrect, and k3b can't write to it.
 
  


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
Compiling Kernal aphesia Linux - Newbie 1 03-14-2013 09:01 PM
Compiling a kernal(first time) sergeantroach Linux - Software 6 02-11-2004 02:10 AM
kernal compiling nuhn123 Linux - Newbie 5 09-06-2003 04:53 PM
compiling kernal ronss Slackware 6 06-02-2002 04:50 PM
Compiling the Kernal AMDPwred Linux - General 5 03-12-2002 09:19 AM


All times are GMT -5. The time now is 11:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration