You are not logged in.

#1 2005-01-06 14:10:55

craw
Member
Registered: 2005-01-06
Posts: 29

cannot compile ARCH kernel

Hi there!
I'm new to AL, so this might also be a newbie question, but noone could help me so far.

to get to the point, everytime i try to compile an ARCH kernel with:

            "make && make modules modules_install"

i get an error concerning the Makefile:
           
[root@portdemonia linux]# make && make modules modules_install
  CHK     include/linux/version.h
  CHK     include/asm-i386/asm_offsets.h
scripts/Makefile.build:13: init/Makefile: No such file or directory
make[1]: *** No rule to make target `init/Makefile'.  Stop.
make: *** [init] Error 2

I'd be very glad if anyone could help me out there  roll

Offline

#2 2005-01-06 14:17:55

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: cannot compile ARCH kernel

Have you tried using ABS ...??? or even srcpac ???


Mr Green

Offline

#3 2005-01-06 15:31:45

craw
Member
Registered: 2005-01-06
Posts: 29

Re: cannot compile ARCH kernel

no i actually didn't, i expected that binary package to work...

and i believe i definitly should be able to compile a kernel if i just use that package... or am i wrong?

installing a custom kernel isn't what i want, only 2.6.10-ARCH would be quite nice...

do u think this might work using abs??

Offline

#4 2005-01-06 15:55:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: cannot compile ARCH kernel

errm if you just want a stock kernel then

pacman -S kernel26

HTH


Mr Green

Offline

#5 2005-01-06 16:00:43

craw
Member
Registered: 2005-01-06
Posts: 29

Re: cannot compile ARCH kernel

that is my problem!

if i do "pacman -S kernel26' i get a dir /usr/src/linux-BLA
then i do 'make menuconfig' and edit my modules... but THEN if i want to compile the bzImage i get the error described above...  lol

Offline

#6 2005-01-06 16:12:12

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: cannot compile ARCH kernel

working fine here ....

have you done a

pacman -Syu

...

first ?


Mr Green

Offline

#7 2005-01-06 16:18:12

craw
Member
Registered: 2005-01-06
Posts: 29

Re: cannot compile ARCH kernel

yep i did...

Offline

#8 2005-01-06 16:31:33

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: cannot compile ARCH kernel

using

pacman -S kernel26

package should load & install itself ...

other than updating grub (if required) or running lilo as root ... you should be able to boot into 2.6.10 ...

Can you load any other packages without any problems ?


Mr Green

Offline

#9 2005-01-06 16:39:32

craw
Member
Registered: 2005-01-06
Posts: 29

Re: cannot compile ARCH kernel

so the stock kernel is built by

 pacman -S kernel26 

but i want to adapt it, there's millions off modules that nobody really needs. so i do

 
cd /usr/src/linux-2.6.10-ARCH/
make menuconfig
make && make modules modules_install

can't i do that?
the package kernel26 installs just fine, just like anything else
the error occurs when i want to compile the kernel

Offline

#10 2005-01-06 16:46:55

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: cannot compile ARCH kernel

The kernel source is not installed in /usr/src/linux-2.6.10-ARCH when you install the kernel with pacman. Those are just the header files. You need to download the kernel source from www.kernel.org


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#11 2005-01-06 16:50:18

craw
Member
Registered: 2005-01-06
Posts: 29

Re: cannot compile ARCH kernel

Then this should be changed:

[root@portdemonia linux-2.6.10-ARCH]# pacman -Ss kernel26
current/kernel26 2.6.10-1
    The Linux Kernel and modules (IDE support)

:twisted:

Offline

#12 2005-01-06 16:59:30

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: cannot compile ARCH kernel

:cry: ....

Read up about ABS look in Wiki (search for kernels) ...

If you must build you kernel from scratch grab sources first ..... lol

Good Luck


Mr Green

Offline

#13 2005-01-06 17:41:41

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: cannot compile ARCH kernel

@craw
Believe me, you don't want to build the kernel the old fashioned way.
It's messy, really messy (IMO).

"pacman -S kernel26" grabs the latest kernel (as the description says: kernel and modules) binaries.

I suggest you try using ABS.
As root run "abs".
It will grab the latest PKGBUILDs & additional files for all the packages from the repositories.

1, go to "/var/abs/kernels".
2. copy "kernel26" directory to /var/abs/local/kernel26-myversion (or whatever you want to call it).
3. Modify the PKGBUILD inside: replace "yes "" | make config" line to be more precise with something within your likes, such as "make xconfig"/"make menuconfig" or even "make oldconfig", to use as base the ArchLinux "config" file there.
4. save the PKGBUILD
5. modify the "config" file in that directory, this line to be more precise: CONFIG_LOCALVERSION="-ARCH" / replace ARCH with something else (I don't know how effective this is when you start a new config)
6. run "makepkg" in that directory
7. during the build process, you'll be shown the interface to choose what/how to install
8. in the end you'll have a brand new ArchLinux package with your kernel. You'll be able to install it using "pacman -A whatever_your_pkg_is_named.pkg.tar.gz"

This way, if you choose to remove it/update it, your system will stay clean because the files in the pkg are kept in pacman's DB.

But.. the best thing is to read about ABS first. Good luck.

Enjoy afterwards.

Offline

#14 2005-01-06 17:56:30

craw
Member
Registered: 2005-01-06
Posts: 29

Re: cannot compile ARCH kernel

thx a lot guys!
real nice community.

i know i have to get rid of my "gentooistic" behavior.

roll i'm starting with getting used to binaries  roll

Offline

#15 2005-01-06 20:33:13

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: cannot compile ARCH kernel

You might have a look over srcpac (search the forums), a tool which automatically customizes the default PKGBUILDs, builds the packages and installs them automatically when you update.

srcpac is actually a pacman wrapper, incapsulating all the pacman's cmd line params, with added functionality of compiling on the spot packages which are "marked" with "compile this one, changing these lines in the PKGBUILD" - the rest are downloaded from the repositories.

Offline

Board footer

Powered by FluxBB