Hi

I am not sure if this is the correct place to post this, I am working
towards getting MirageOS [1] working on OpenBSD, The changes to
OpenBSD current have been completed [2], [3], [4] [5], the changes to
solo5 have been completed [6], and the changes in ocaml-freestanding
[7] are done, i think.

But i am getting the following error, and i am at a loss to fix.

In file included from startup.c:24:
   In file included from ../byterun/caml/fail.h:20:
   In file included from
/home/asteen/.opam/system/build/ocaml-freestanding.0.2.3/nolibc/include/setjmp.h:1:
   In file included from
/home/asteen/.opam/system/lib/pkgconfig/../../include/solo5-kernel-ukvm/include/host/signal.h:38:
   In file included from
/home/asteen/.opam/system/lib/pkgconfig/../../include/solo5-kernel-ukvm/include/host/sys/signal.h:107:
 
/home/asteen/.opam/system/lib/pkgconfig/../../include/solo5-kernel-ukvm/include/host/sys/siginfo.h:139:4:
error: unknown type name 'pid_t'
                           pid_t   _pid;           /* process ID */

My understanding is probably wrong, but i thought signal.h includes
sys/types.h which defines pid_t. I think " __BSD_VISIBLE ||
__POSIX_VISIBLE || __XPG_VISIBLE" is not defined for some reason.

steps to reproduce, with ocaml installed.

- need to install pkgconf 1.3.7 [5]
  symbolically link from pkgconf to pkg-config on your path, i install
  it to /home/asteen/.local/bin
  (ln -s  /home/asteen/.local/pkgconf/bin/pkgconf
/home/asteen/.local/bin/pkg-config)

depending on your setup you may need
- opam init -n
- eval `opam config env`
- export OPAMNOASPCUD=1

- export LD=ld.lld
- opam install mirage -y ( if not installed )
- opam pin add solo5-kernel-ukvm git://github.com/adamsteen/solo5 -y
- opam pin add ocaml-freestanding
git://github.com/adamsteen/ocaml-freestanding -y

Cheers
Adam

[1] https://mirage.io/
[2] https://marc.info/?l=openbsd-cvs&m=151192357631681&w=2
[3] https://marc.info/?l=openbsd-cvs&m=151192418831778&w=2
[4] https://marc.info/?l=openbsd-cvs&m=150877329531981&w=2
[5] https://marc.info/?l=openbsd-cvs&m=150729683900949&w=2
[6] https://github.com/adamsteen/solo5
[7] https://github.com/adamsteen/ocaml-freestanding

Reply via email to