Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBSD: Inclusion of -DDEBUG_STACK in src/Makefile.in results in error #23

Open
anarchitech opened this issue Nov 15, 2021 · 0 comments

Comments

@anarchitech
Copy link

anarchitech commented Nov 15, 2021

On OpenBSD 7.0 --current GENERIC.MP i386, inclusion of -DDEBUG_STACK in src/Makefile.in results in an undeclared
identifier error:

cc -O2 -Wall -fomit-frame-pointer -Wno-int-to-pointer-cast
-DDEBUG_STACK -DDEBUG_USB_ENUMERATION  -c kernel.c
cc -O2 -Wall -fomit-frame-pointer -Wno-int-to-pointer-cast
-DDEBUG_STACK -DDEBUG_USB_ENUMERATION  -c engine-itc.c
cc -O2 -Wall -fomit-frame-pointer -Wno-int-to-pointer-cast
-DDEBUG_STACK -DDEBUG_USB_ENUMERATION  -c interpret.c
interpret.c:232:38: error: use of undeclared identifier 'uval'
        fprintf(stderr, "  %16llx", (uval)SP[3-i]);
                                                     ^
1 error generated.
*** Error 1 in ~/muforth/src (<sys.mk>:87 'interpret.o')

This error will impact other systems/architectures as well. (Tested and present Archlinux/AMD64 and aarch64, Termux aarch64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant