# Feels like build tutorial is broken

**URL:** <https://sel4.discourse.group/t/feels-like-build-tutorial-is-broken/589>\
**Category:** seL4 kernel\
**Created:** [September 13, 2022, 8:00pm UTC](https://sel4.discourse.group/t/feels-like-build-tutorial-is-broken/589 "2022-09-13T20:00:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mincheolsung](https://yyz2.discourse-cdn.com/free1/user_avatar/sel4.discourse.group/mincheolsung/32/187_2.png) [@mincheolsung](https://sel4.discourse.group/u/mincheolsung)\
**Post date:** [September 13, 2022, 8:00pm UTC](https://sel4.discourse.group/t/feels-like-build-tutorial-is-broken/589/1 "2022-09-13T20:00:38Z")

</div>

Hi,

I am trying to build seL4 and run on a bare-metal machine.  
I followed the tutorial “[Getting Started | seL4 docs](https://docs.sel4.systems/GettingStarted)” but failed to build with errors below:

```auto
CMake Error at CMakeLists.txt:9 (include):
  include could not find load file:

    settings.cmake

-- The C compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
CMake Error at seL4/configs/seL4Config.cmake:172 (message):
  Variable 'KernelArch' is not set.
Call Stack (most recent call first):
  seL4/CMakeLists.txt:10 (include)

-- Configuring incomplete, errors occurred!
See also "/home/mincheol/mnt/awesome_system/build/CMakeFiles/CMakeOutput.log".

```

I admit that I am not familiar with cmake. How can I fix this? where can I set KernelArch variable? Where can I get the settings.cmake file? The tutorial is so confusing to me.

---

<div class="post-metadata">

**Author:** ![axel](https://yyz2.discourse-cdn.com/free1/user_avatar/sel4.discourse.group/axel/32/43_2.png) [@axel](https://sel4.discourse.group/u/axel)\
**Post date:** [September 21, 2022, 9:11am UTC](https://sel4.discourse.group/t/feels-like-build-tutorial-is-broken/589/2 "2022-09-21T09:11:14Z")

</div>

related to [Where can I set "KernelArch" variable to build seL4? · Issue #908 · seL4/seL4 · GitHub](https://github.com/seL4/seL4/issues/908), seems this resolved by now.
