You are not logged in.

#1 2010-06-14 10:21:14

c0wb0y
Member
Registered: 2010-06-14
Posts: 5

[SOLVED] - Please help a newbie compile a kernel

Hi all,
I tried to compile kernel by simply copying the PKGBUILD and other files into my workspace and issue 'makepkg -s'.
and this is the result:

==> Making package: kernel26-vanilla 2.6.34-2 x86_64 (Mon Jun 14 22:12:10 NZST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found linux-2.6.34.tar.bz2 in build dir
  -> Found config in build dir
  -> Found config.x86_64 in build dir
  -> Found kernel26-vanilla.preset in build dir
==> Validating source files with md5sums...
    linux-2.6.34.tar.bz2 ... Passed
    config ... Passed
    config.x86_64 ... Passed
    kernel26-vanilla.preset ... Passed
==> Extracting Sources...
  -> Extracting linux-2.6.34.tar.bz2 with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
  HOSTCC  scripts/basic/fixdep
/bin/sh: scripts/basic/fixdep: Permission denied
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
Makefile:1452: *** kernelrelease not valid - run 'make prepare' to update it.  Stop.
  HOSTCC  scripts/basic/fixdep
/bin/sh: scripts/basic/fixdep: Permission denied
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
  HOSTCC  scripts/basic/fixdep
/bin/sh: scripts/basic/fixdep: Permission denied
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
  HOSTCC  scripts/basic/fixdep
/bin/sh: scripts/basic/fixdep: Permission denied
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
==> ERROR: Build Failed.
    Aborting...


What do you think is missing? Sorry for newbie question. Thanks heaps!

Last edited by c0wb0y (2010-06-15 17:02:44)

Offline

#2 2010-06-14 10:46:56

bema
Member
Registered: 2010-02-12
Posts: 26

Re: [SOLVED] - Please help a newbie compile a kernel

Did you run the command as root? Since it complains about denied permissions running makepkg as a normal could be problematic.

Offline

#3 2010-06-14 10:57:37

c0wb0y
Member
Registered: 2010-06-14
Posts: 5

Re: [SOLVED] - Please help a newbie compile a kernel

yes i did and it still complain. sad

Offline

#4 2010-06-14 14:51:42

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [SOLVED] - Please help a newbie compile a kernel

Don't run makepkg as root. Copy the PKGBUILD and whatever source files you have to a directory owned by you then run makepkg.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2010-06-14 19:17:47

Caveman85de
Member
Registered: 2010-05-25
Posts: 26

Re: [SOLVED] - Please help a newbie compile a kernel

ngoonee wrote:

Don't run makepkg as root. Copy the PKGBUILD and whatever source files you have to a directory owned by you then run makepkg.

While this is sound advice, it will not clear this error.

Offline

#6 2010-06-14 20:10:20

c0wb0y
Member
Registered: 2010-06-14
Posts: 5

Re: [SOLVED] - Please help a newbie compile a kernel

Caveman85de wrote:
ngoonee wrote:

Don't run makepkg as root. Copy the PKGBUILD and whatever source files you have to a directory owned by you then run makepkg.

While this is sound advice, it will not clear this error.

This is exactly what i did. still no joy. sad

thanks

Offline

#7 2010-06-14 20:22:17

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: [SOLVED] - Please help a newbie compile a kernel

Are you using the official PKGBUILD?

I suggest you extract the sources, then grab them with chown -R c0wb0y:c0wb0y src and then makepkg again with the parameter -e (don't extract archive).


no place like /home
github

Offline

#8 2010-06-15 09:14:02

c0wb0y
Member
Registered: 2010-06-14
Posts: 5

Re: [SOLVED] - Please help a newbie compile a kernel

I already did the above. I used different PKGBUILDS and still the same result

  HOSTCC  scripts/basic/fixdep
/bin/sh: scripts/basic/fixdep: Permission denied
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
==> ERROR: Build Failed.
    Aborting...

Offline

#9 2010-06-15 09:55:44

bema
Member
Registered: 2010-02-12
Posts: 26

Re: [SOLVED] - Please help a newbie compile a kernel

Could you check the file permissions of scripts/basic/fixdep ? Maybe the executing bit is not set.

Offline

#10 2010-06-15 17:04:52

c0wb0y
Member
Registered: 2010-06-14
Posts: 5

Re: [SOLVED] - Please help a newbie compile a kernel

Hi guys,
thanks a lot! i finally found out what's wrong. its my mount options in /home:
          /dev/sda8 on /home type ext4 (rw,noexec,nodev,noatime,nodiratime,commit=600)

i remounted it with defaults options and i was able to 'make menuconfig'
thanks heaps! smile

Last edited by c0wb0y (2010-06-15 17:05:20)

Offline

#11 2010-06-15 17:27:32

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: [SOLVED] - Please help a newbie compile a kernel

c0wb0y wrote:

Hi guys,
thanks a lot! i finally found out what's wrong. its my mount options in /home:
          /dev/sda8 on /home type ext4 (rw,noexec,nodev,noatime,nodiratime,commit=600)

i remounted it with defaults options and i was able to 'make menuconfig'
thanks heaps! smile

Out of curiousity; why did you have those mount options set?

Offline

#12 2010-06-15 23:29:09

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [SOLVED] - Please help a newbie compile a kernel

Yeah, especially noexec..... the rest should be fine.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB