NSG650 / Polaris

A WIP 64-bit UNIX-like kernel
Apache License 2.0
284 stars 13 forks source link

While trying to build i get error #25

Open BISHER-AL-MASRI opened 2 months ago

BISHER-AL-MASRI commented 2 months ago
Describe the bug when trying to make userspace-full you get rpesented by the following error [Compiling doomgeneric_xlib.c] doomgeneric_xlib.c:16:26: error: initialization of 'Window' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion] 16 static Window s_Window = NULL; ^~~~ doomgeneric_xlib.c: In function 'DG_Init': doomgeneric_xlib.c:109:5: error: implicit declaration of function 'XkbSetDetectableAutoRepeat' [-Wimplicit-function-declaration] 109 XkbSetDetectableAutoRepeat(s_Display, 1, 0); ^~~~~~ doomgeneric_xlib.c: In function 'DG_DrawFrame': doomgeneric_xlib.c:137:17: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] 137 KeySym sym = XKeycodeToKeysym(s_Display, e.xkey.keycode, 0); ^~ In file included from doomgeneric_xlib.c:11: /sysroot/usr/include/X11/Xlib.h:1683:15: note: declared here 1683 extern KeySym XKeycodeToKeysym( ^~~~ doomgeneric_xlib.c:144:17: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] 144 KeySym sym = XKeycodeToKeysym(s_Display, e.xkey.keycode, 0); ^~ /sysroot/usr/include/X11/Xlib.h:1683:15: note: declared here 1683 extern KeySym XKeycodeToKeysym( ^~~~ doomgeneric_xlib.c: In function 'DG_SetWindowTitle': doomgeneric_xlib.c:198:89: warning: pointer targets in passing argument 7 of 'XChangeProperty' differ in signedness [-Wpointer-sign] 198 XChangeProperty(s_Display, s_Window, XA_WM_NAME, XA_STRING, 8, PropModeReplace, title, strlen(title)); ^~~~~
const char *

In file included from /sysroot/usr/include/X11/Xlib.h:47: /sysroot/usr/include/X11/Xlib.h:2085:5: note: expected 'const unsigned char ' but argument is of type 'const char ' 2085 | _Xconst unsigned char / data */, | ^ make: *** [Makefile:50: build/doomgeneric_xlib.o] Error 1

To Reproduce Steps to reproduce the behavior:

  1. git clone the repo with all submodules
  2. run make userspace-full

Expected behavior for it to build without any error

Screenshots image

Environment (please complete the following information):

redmine4404 commented 1 month ago

same thing here, but i have to run make before running make userspace-full in order to make jinx work.

NSG650 commented 1 month ago

The port is broken right now so delete the file under recipes and continue building.