On 2025/07/06 19:08, ken.dic...@whidbey.com wrote:
> OpenBSD 7.7 on Raspberry Pi 4
> 
> vvv===vvv===vvv
> ~[>> cat trash1.c
> #include <setjmp.h>
> #include <stdlib.h>
> int main() { jmp_buf trampoline; exit(1); }
> 
> ~[>> make trash1
> cc -O2 -pipe    -o trash1 trash1.c
> trash1.c:3:14: error: use of undeclared identifier 'jmp_buf'
> int main() { jmp_buf trampoline; exit(1); }
>              ^
> 1 error generated.
> *** Error 1 in /home/kend (<sys.mk>:85 'trash1')

Is there anything unusual about how you installed OpenBSD?

I can't replicate this on amd64, aarch64, or i386.

> ~[>> cat trash2.c
> #include "/usr/include/setjmp.h"
> #include <stdlib.h>
> int main() { jmp_buf trampoline; exit(1); }
> 
> ~[>> make trash2
> cc -O2 -pipe    -o trash2 trash2.c
> 
> ~[>>
> ^^^===^^^===^^^
> Note that trash1.c compiles successfully on amd64 OBSD 7.7.
> 
> -E option indicates trash1 is picking up setjmp.h as
>   /sys/arch/arm64/include/setjmp.h
> 
> Happens same with clang or (e)gcc.
> 
> Halp!
> -KenD
> 

Reply via email to