You are not logged in.

#1 2021-09-21 23:38:48

impactor
Member
Registered: 2019-11-23
Posts: 1

How to compile a kernel

I am trying to compile a linux-ck kernel from AUR, but I encounter an issue:

...
  UPD     include/generated/uapi/linux/version.h
  UPD     include/generated/utsrelease.h
  CC      scripts/mod/empty.o
cc1: error: code model 'kernel' not supported in the 32 bit mode
cc1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [scripts/Makefile.build:271: scripts/mod/empty.o] Error 1
make: *** [Makefile:1218: prepare0] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Is there a way to compile a kernel on a 32bit machine? And while I am at it - what would be the optimal one for a Pentium M?

Offline

#2 2021-09-22 06:14:50

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: How to compile a kernel

Certainly it used to be easy; just download the source, cd into it and make.  But those cc errors don't look like the normal gcc errors I expeirience, so without loking at the build rule for linux-ck I can't say.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#3 2021-09-22 10:09:43

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 985
Website

Re: How to compile a kernel

Isn't Linux-CK strictly only for 64-bit Intel/AMD CPUs?

And cross-compiling from 32-bit IA-32 to 64-bit x86_64 is not supported..

Offline

#4 2021-09-22 15:40:46

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: How to compile a kernel

Certainly it wouldn't surprise me if some of the patches provided speedups by using x86-64 instructions, but I have no positive evidence of that.  Maybe those errors are indicating as much though, I'm not sure.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

Board footer

Powered by FluxBB