Skip to content

build fails on raspberry pi - release 0.8.1 with error "fatal error: asm/ldt.h: No such file or directory" #2627

@l00nix

Description

@l00nix

Description
I am following the build instructions in the How to Build instructions. When running the build command or 'make all' the build fails with

make[1]: Leaving directory '/home/arau/elks_compile/elks/image' make -C elksemu PREFIX='/home/arau/elks_compile/elks/cross' elksemu make[1]: Entering directory '/home/arau/elks_compile/elks/elksemu' cc -O -DUSE_PTRACE=1 -c -o elks.o elks.c elks.c:30:10: fatal error: asm/ldt.h: No such file or directory 30 | #include <asm/ldt.h> | ^~~~~~~~~~~ compilation terminated. make[1]: *** [<builtin>: elks.o] Error 1 make[1]: Leaving directory '/home/arau/elks_compile/elks/elksemu' make: *** [Makefile:18: all] Error 2

  • What is expected ?
    Expected behaviour is for the build to complete and create a fd1440 minix image.
  • What is observed ?
    build fails with error message

cc -O -DUSE_PTRACE=1 -c -o elks.o elks.c elks.c:30:10: fatal error: asm/ldt.h: No such file or directory 30 | #include <asm/ldt.h> | ^~~~~~~~~~~ compilation terminated. make[1]: *** [<builtin>: elks.o] Error 1 make[1]: Leaving directory '/home/arau/elks_compile/elks/elksemu' make: *** [Makefile:18: all] Error 2

Configuration

  • Version (commit or release):
    0.8.1
  • Emulator or HW platform:
    Raspberry pi - Debian GNU/Linux 12

How to reproduce ?

  • Does the problem always happen ?
    yes
  • List the steps to reproduce the problem.
  1. git clone https://github.com/ghaerr/elks.git
  2. cd elks
  3. ./build.sh

Raw data

  • Screenshot(s):
Image

Tried googeling to no avail.

Thanks

Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefect in the product

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions