cheribuild icon indicating copy to clipboard operation
cheribuild copied to clipboard

Need purecap emulation enviroment with a C-compiler in it ?

Open bsdphk opened this issue 3 years ago • 2 comments

I've been wanting to try out Varnish Cache under CHERI since Robert first told me about the idea.

To do that I need a purecap emulation environment with a C-compiler in it.

How can I build that ?

bsdphk avatar Apr 11 '22 08:04 bsdphk

Build the llvm-riscv64-hybrid-for-purecap-rootfs or morello-llvm-morello-hybrid-for-purecap-rootfs targets as appropriate before the disk-image-foo target, though life will be much less painful if you cross-build rather than run a compiler under CHERI QEMU

jrtc27 avatar Apr 11 '22 09:04 jrtc27

Morello image (e.g., one built and run with cheribuild {cheribsd,disk-image,run}-morello-purecap), run pkg64 install llvm-base to get a /usr/bin/cc that produces native binaries.

If you're running qemu on FreeBSD, you may need to use an external DNS server with something like echo nameserver 8.8.8.8 > /etc/resolv.conf.

brooksdavis avatar Aug 19 '22 19:08 brooksdavis

Various options exist for this

jrtc27 avatar Mar 04 '23 05:03 jrtc27