Compilation of seL4 kernel 5.2.0
Hello,
I want to compile just the seL4 kernel (5.2.0) and tried it by invoking:
alex@max:~/sel4.git$ ARCH=x86 PLAT=pc99 SEL4_ARCH=ia32 make
but the compile fails (attached below). Do I need to setup/configure
something beforehand ? It seems some defines are not set. The host is a
64bit Ubuntu 16.04 LTS.
Thanks,
Alex.
alex@max:~/sel4.git$ git log
commit 3695232f9603af60d56f97072082d90f30e98b0e
Author: Kent McLeod
On 13.06.2017 11:08, Alexander Boettcher wrote:
alex@max:~/sel4.git$ ARCH=x86 PLAT=pc99 SEL4_ARCH=ia32 make
it seems a ia32 only issue, using x86_64 succeeds. release SEL4_ARCH=ia32/x86_64 ------------------- 3.2.0 - ok/ok 4.0.0 - fails/ok 5.0.0 - fails/ok 5.1.0 - fails/ok 5.2.0 - fails/ok -- Alexander Boettcher Genode Labs http://www.genode-labs.com - http://www.genode.org Genode Labs GmbH - Amtsgericht Dresden - HRB 28424 - Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Hi Alexander, Building the kernel standalone is not really supported at the moment except for the few configurations where the kernel has been or is intending to be verified. x86-64 is a verification target, and so has a working standalone build, ia32 is not. In particular the standalone build will use a premade autoconf.h file for the platform, for pc99 it is https://github.com/seL4/seL4/blob/master/configs/pc99/autoconf.h, which explicitly declares various x86-64 related configuration settings. If you really want to do standalone ia32 builds the easiest way is to probably just overwrite this file with your own. This currently situation of configuring and building the kernel is undesirable for various reasons (even for us internally that typically build the kernel through our greater project build system). Whilst this doesn't help you right now we have been developing some additions to the build system (both for the kernel and projects) that will fix all this standalone vs project build/configuration frustration. Although they may not land for a month or two. Until then your best options are * Build the kernel (via 'make kernel_elf') from a configured project directory ala sel4test * Build x86-64 * Overwrite the autoconf.h Adrian On Tue 13-Jun-2017 7:31 PM, Alexander Boettcher wrote: On 13.06.2017 11:08, Alexander Boettcher wrote: alex@max:~/sel4.git$mailto:alex@max:~/sel4.git$ ARCH=x86 PLAT=pc99 SEL4_ARCH=ia32 make it seems a ia32 only issue, using x86_64 succeeds. release SEL4_ARCH=ia32/x86_64 ------------------- 3.2.0 - ok/ok 4.0.0 - fails/ok 5.0.0 - fails/ok 5.1.0 - fails/ok 5.2.0 - fails/ok
participants (2)
-
Adrian.Danis@data61.csiro.au
-
Alexander Boettcher