WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can't compile linux-3.8.13-patched  (Read 2883 times)

Offline virtualbox

  • Newbie
  • *
  • Posts: 21
Can't compile linux-3.8.13-patched
« on: February 06, 2014, 03:52:31 PM »
Hi all.

I want to compile kernel to add reiser4 support. I have compiled successfully a custom kernel before (RAID), but I can't manage to get it work this time (under fresh TC 5.1 install; I tried also under 5.2).

I downloaded linux-3.8.13-patched.txz and config, untared and cd to top. Then executed 'make mrproper' to clean it up before the real work, but it failed :( And I don't understand related error messages.

It said...
/opt/linux-3.8.13-patched/scripts/link-vmlinux.sh: trap: line 105: ERR: invalid signal specification
...but please can somebody lead me to right direction what I'm doing wrong.

Code: [Select]
tc@box:/opt/linux-3.8.13-patched$ make -d mrproper
...
Updating makefiles....
 Considering target file `/opt/linux-3.8.13-patched/arch/x86/tools/Makefile'.
  Looking for an implicit rule for `/opt/linux-3.8.13-patched/arch/x86/tools/Makefile'.
  No implicit rule found for `/opt/linux-3.8.13-patched/arch/x86/tools/Makefile'.
  Finished prerequisites of target file `/opt/linux-3.8.13-patched/arch/x86/tools/Makefile'.
 No need to remake target `/opt/linux-3.8.13-patched/arch/x86/tools/Makefile'.
 Considering target file `scripts/Makefile.clean'.
  Looking for an implicit rule for `scripts/Makefile.clean'.
  No implicit rule found for `scripts/Makefile.clean'.
  Finished prerequisites of target file `scripts/Makefile.clean'.
 No need to remake target `scripts/Makefile.clean'.
Updating goal targets....
Considering target file `__clean'.
 File `__clean' does not exist.
 Finished prerequisites of target file `__clean'.
Must remake target `__clean'.
Invoking recipe from scripts/Makefile.clean:82 to update target `__clean'.
Successfully remade target file `__clean'.
Reaping winning child 0x909b068 PID 13637
Removing child 0x909b068 PID 13637 from chain.
    Successfully remade target file `archclean'.
    Considering target file `vmlinuxclean'.
     File `vmlinuxclean' does not exist.
     Finished prerequisites of target file `vmlinuxclean'.
    Must remake target `vmlinuxclean'.
Invoking recipe from Makefile:1035 to update target `vmlinuxclean'.
Putting child 0x909a890 (vmlinuxclean) PID 13649 on the chain.
Live child 0x909a890 (vmlinuxclean) PID 13649
/opt/linux-3.8.13-patched/scripts/link-vmlinux.sh: trap: line 105: ERR: invalid signal specification
Reaping losing child 0x909a890 PID 13649
make: *** [vmlinuxclean] Error 1
Removing child 0x909a890 PID 13649 from chain.

I have installed:
- compiletc.tcz
- kmaps.tcz
- perl5.tcz
- ncurses-dev.tcz

Code: [Select]
tc@box:/opt$ uname -a
Linux box 3.8.13-tinycore #2511 SMP Fri Oct 18 14:41:31 UTC 2013 i686 GNU/Linu

Code: [Select]
tc@box:/opt$ version
5.1

Thanks!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Can't compile linux-3.8.13-patched
« Reply #1 on: February 06, 2014, 04:02:49 PM »
Not your fault, that script is buggy in that it uses bash features but declares /bin/sh. You can load bash and edit the script header to use bin/bash.
The only barriers that can stop you are the ones you create yourself.

Offline virtualbox

  • Newbie
  • *
  • Posts: 21
Re: Can't compile linux-3.8.13-patched
« Reply #2 on: February 07, 2014, 12:56:38 AM »
Thanks Curaga, it worked!

I really appreciate your help.