xtreme8000 / CavEX

Project to recreate your favourite block game for the Wii (Beta 1.7.3)
GNU General Public License v3.0
225 stars 20 forks source link

Can't compile from source. #20

Open EGAMatsu opened 8 months ago

EGAMatsu commented 8 months ago

I try compiling from source and get this:

D:\CavEX>make
chunk.c
In file included from C:/devkitPro/devkitPPC/powerpc-eabi/include/sys/reent.h:15,
                 from C:/devkitPro/devkitPPC/powerpc-eabi/include/math.h:5,
                 from D:/CavEX/source/chunk.c:22:
C:/devkitPro/devkitPPC/powerpc-eabi/include/sys/_types.h:167:5: error: unknown type name 'wint_t'
  167 |     wint_t __wch;
      |     ^~~~~~
In file included from C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-array.h:28,
                 from D:/CavEX/source/graphics/texture_atlas.h:25,
                 from D:/CavEX/source/block/blocks.h:26,
                 from D:/CavEX/source/chunk.c:26:
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2579:31: error: unknown type name 'FILE'
 2579 | m_core_fscan_bool (bool *ptr, FILE *f)
      |                               ^~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:53:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
   52 | # include <stdarg.h>
  +++ |+#include <stdio.h>
   53 | #endif
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2587:31: error: unknown type name 'FILE'
 2587 | m_core_fscan_char (char *ptr, FILE *f)
      |                               ^~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2587:31: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2600:1: error: unknown type name 'FILE'
 2600 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_schar, signed char, "%hhd")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2600:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2601:1: error: unknown type name 'FILE'
 2601 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_uchar, unsigned char, "%hhu")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2601:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2602:1: error: unknown type name 'FILE'
 2602 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_sshort, signed short, "%hd")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2602:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2603:1: error: unknown type name 'FILE'
 2603 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_ushort, unsigned short, "%hu")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2603:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2604:1: error: unknown type name 'FILE'
 2604 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_sint, signed int, "%d")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2604:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2605:1: error: unknown type name 'FILE'
 2605 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_uint, unsigned int, "%u")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2605:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2606:1: error: unknown type name 'FILE'
 2606 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_slong, signed long, "%ld")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2606:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2607:1: error: unknown type name 'FILE'
 2607 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_ulong, unsigned long, "%lu")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2607:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2608:1: error: unknown type name 'FILE'
 2608 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_sllong, signed long long, "%lld")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2608:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2609:1: error: unknown type name 'FILE'
 2609 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_ullong, unsigned long long, "%llu")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2609:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2610:1: error: unknown type name 'FILE'
 2610 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_float, float, "%f")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2610:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2611:1: error: unknown type name 'FILE'
 2611 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_double, double, "%lf")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2611:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2612:1: error: unknown type name 'FILE'
 2612 | M_FSCAN_DEFAULT_TYPE_DEF(m_core_fscan_ldouble, long double, "%Lf")
      | ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:2612:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:3877:20: error: unknown type name 'FILE'
 3877 | m_core_fscan_enum (FILE *f)
      |                    ^~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/m-lib/m-core.h:3877:20: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_set':
D:/CavEX/source/graphics/texture_atlas.h:189:1: error: 'stderr' undeclared (first use in this function)
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:26:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
   25 | #include <m-lib/m-array.h>
  +++ |+#include <stdio.h>
   26 |
D:/CavEX/source/graphics/texture_atlas.h:189:1: note: each undeclared identifier is reported only once for each function it appears in
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_push_raw':
D:/CavEX/source/graphics/texture_atlas.h:189:1: error: 'stderr' undeclared (first use in this function)
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_push_at':
D:/CavEX/source/graphics/texture_atlas.h:189:1: error: 'stderr' undeclared (first use in this function)
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/graphics/texture_atlas.h:189:1: warning: passing argument 1 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
      | |
      | struct texture_entry *
In file included from C:\PSYQ\include/strings.h:23,
                 from C:\PSYQ\include/string.h:20,
                 from D:/CavEX/source/chunk.c:24:
C:\PSYQ\include/memory.h:26:22: note: expected 'unsigned char *' but argument is of type 'struct texture_entry *'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                      ^~~~~~~~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: warning: passing argument 2 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
      | |
      | struct texture_entry *
C:\PSYQ\include/memory.h:26:39: note: expected 'const unsigned char *' but argument is of type 'struct texture_entry *'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_resize':
D:/CavEX/source/graphics/texture_atlas.h:189:1: error: 'stderr' undeclared (first use in this function)
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_reserve':
D:/CavEX/source/graphics/texture_atlas.h:189:1: error: 'stderr' undeclared (first use in this function)
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_safe_get':
D:/CavEX/source/graphics/texture_atlas.h:189:1: error: 'stderr' undeclared (first use in this function)
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_pop_at':
D:/CavEX/source/graphics/texture_atlas.h:189:1: warning: passing argument 1 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
      | |
      | struct texture_entry *
C:\PSYQ\include/memory.h:26:22: note: expected 'unsigned char *' but argument is of type 'struct texture_entry *'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                      ^~~~~~~~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: warning: passing argument 2 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
      | |
      | struct texture_entry *
C:\PSYQ\include/memory.h:26:39: note: expected 'const unsigned char *' but argument is of type 'struct texture_entry *'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_insert_v':
D:/CavEX/source/graphics/texture_atlas.h:189:1: error: 'stderr' undeclared (first use in this function)
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/graphics/texture_atlas.h:189:1: warning: passing argument 1 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
      | |
      | struct texture_entry *
C:\PSYQ\include/memory.h:26:22: note: expected 'unsigned char *' but argument is of type 'struct texture_entry *'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                      ^~~~~~~~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: warning: passing argument 2 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
      | |
      | struct texture_entry *
C:\PSYQ\include/memory.h:26:39: note: expected 'const unsigned char *' but argument is of type 'struct texture_entry *'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_remove_v':
D:/CavEX/source/graphics/texture_atlas.h:189:1: warning: passing argument 1 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
      | |
      | struct texture_entry *
C:\PSYQ\include/memory.h:26:22: note: expected 'unsigned char *' but argument is of type 'struct texture_entry *'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                      ^~~~~~~~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: warning: passing argument 2 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
      | |
      | struct texture_entry *
C:\PSYQ\include/memory.h:26:39: note: expected 'const unsigned char *' but argument is of type 'struct texture_entry *'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_special_stable_sort':
D:/CavEX/source/graphics/texture_atlas.h:189:1: error: 'stderr' undeclared (first use in this function)
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/graphics/texture_atlas.h: In function 'dict_atlas_src_splice':
D:/CavEX/source/graphics/texture_atlas.h:189:1: error: 'stderr' undeclared (first use in this function)
  189 | ARRAY_DEF(dict_atlas_src, struct texture_entry, M_POD_OPLIST)
      | ^~~~~~~~~
D:/CavEX/source/graphics/texture_atlas.h:189:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/chunk.h: In function 'ilist_chunks_reset':
D:/CavEX/source/chunk.h:68:25: error: expected expression before 'struct'
   68 | ILIST_DEF(ilist_chunks, struct chunk, M_POD_OPLIST)
      |                         ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks_back':
D:/CavEX/source/chunk.h:68:25: error: expected expression before 'struct'
   68 | ILIST_DEF(ilist_chunks, struct chunk, M_POD_OPLIST)
      |                         ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks_front':
D:/CavEX/source/chunk.h:68:25: error: expected expression before 'struct'
   68 | ILIST_DEF(ilist_chunks, struct chunk, M_POD_OPLIST)
      |                         ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks_next_obj':
D:/CavEX/source/chunk.h:68:25: error: expected expression before 'struct'
   68 | ILIST_DEF(ilist_chunks, struct chunk, M_POD_OPLIST)
      |                         ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks_previous_obj':
D:/CavEX/source/chunk.h:68:25: error: expected expression before 'struct'
   68 | ILIST_DEF(ilist_chunks, struct chunk, M_POD_OPLIST)
      |                         ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks_ref':
D:/CavEX/source/chunk.h:68:25: error: expected expression before 'struct'
   68 | ILIST_DEF(ilist_chunks, struct chunk, M_POD_OPLIST)
      |                         ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks_remove':
D:/CavEX/source/chunk.h:68:25: error: expected expression before 'struct'
   68 | ILIST_DEF(ilist_chunks, struct chunk, M_POD_OPLIST)
      |                         ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks2_reset':
D:/CavEX/source/chunk.h:69:26: error: expected expression before 'struct'
   69 | ILIST_DEF(ilist_chunks2, struct chunk, M_POD_OPLIST)
      |                          ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks2_back':
D:/CavEX/source/chunk.h:69:26: error: expected expression before 'struct'
   69 | ILIST_DEF(ilist_chunks2, struct chunk, M_POD_OPLIST)
      |                          ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks2_front':
D:/CavEX/source/chunk.h:69:26: error: expected expression before 'struct'
   69 | ILIST_DEF(ilist_chunks2, struct chunk, M_POD_OPLIST)
      |                          ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks2_next_obj':
D:/CavEX/source/chunk.h:69:26: error: expected expression before 'struct'
   69 | ILIST_DEF(ilist_chunks2, struct chunk, M_POD_OPLIST)
      |                          ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks2_previous_obj':
D:/CavEX/source/chunk.h:69:26: error: expected expression before 'struct'
   69 | ILIST_DEF(ilist_chunks2, struct chunk, M_POD_OPLIST)
      |                          ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks2_ref':
D:/CavEX/source/chunk.h:69:26: error: expected expression before 'struct'
   69 | ILIST_DEF(ilist_chunks2, struct chunk, M_POD_OPLIST)
      |                          ^~~~~~
D:/CavEX/source/chunk.h: In function 'ilist_chunks2_remove':
D:/CavEX/source/chunk.h:69:26: error: expected expression before 'struct'
   69 | ILIST_DEF(ilist_chunks2, struct chunk, M_POD_OPLIST)
      |                          ^~~~~~
D:/CavEX/source/world.h: In function 'dict_wsection_list_pair_push_raw':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
In file included from D:/CavEX/source/block/blocks.h:29:
D:/CavEX/source/world.h:43:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
   42 | #include "util.h"
  +++ |+#include <stdio.h>
   43 |
D:/CavEX/source/world.h: In function 'dict_wsection_list_pair_insert':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h: In function 'dict_wsection_list_pair_init_set':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_set':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_push_raw':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_push_at':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h:53:1: warning: passing argument 1 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
      | |
      | struct dict_wsection_list_pair_s * (*)[1]
C:\PSYQ\include/memory.h:26:22: note: expected 'unsigned char *' but argument is of type 'struct dict_wsection_list_pair_s * (*)[1]'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                      ^~~~~~~~~~~~~~~
D:/CavEX/source/world.h:53:1: warning: passing argument 2 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
      | |
      | struct dict_wsection_list_pair_s * (*)[1]
C:\PSYQ\include/memory.h:26:39: note: expected 'const unsigned char *' but argument is of type 'struct dict_wsection_list_pair_s * (*)[1]'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_resize':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_reserve':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_safe_get':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_pop_at':
D:/CavEX/source/world.h:53:1: warning: passing argument 1 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
      | |
      | struct dict_wsection_list_pair_s * (*)[1]
C:\PSYQ\include/memory.h:26:22: note: expected 'unsigned char *' but argument is of type 'struct dict_wsection_list_pair_s * (*)[1]'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                      ^~~~~~~~~~~~~~~
D:/CavEX/source/world.h:53:1: warning: passing argument 2 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
      | |
      | struct dict_wsection_list_pair_s * (*)[1]
C:\PSYQ\include/memory.h:26:39: note: expected 'const unsigned char *' but argument is of type 'struct dict_wsection_list_pair_s * (*)[1]'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_insert_v':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h:53:1: warning: passing argument 1 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
      | |
      | struct dict_wsection_list_pair_s * (*)[1]
C:\PSYQ\include/memory.h:26:22: note: expected 'unsigned char *' but argument is of type 'struct dict_wsection_list_pair_s * (*)[1]'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                      ^~~~~~~~~~~~~~~
D:/CavEX/source/world.h:53:1: warning: passing argument 2 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
      | |
      | struct dict_wsection_list_pair_s * (*)[1]
C:\PSYQ\include/memory.h:26:39: note: expected 'const unsigned char *' but argument is of type 'struct dict_wsection_list_pair_s * (*)[1]'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_remove_v':
D:/CavEX/source/world.h:53:1: warning: passing argument 1 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
      | |
      | struct dict_wsection_list_pair_s * (*)[1]
C:\PSYQ\include/memory.h:26:22: note: expected 'unsigned char *' but argument is of type 'struct dict_wsection_list_pair_s * (*)[1]'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                      ^~~~~~~~~~~~~~~
D:/CavEX/source/world.h:53:1: warning: passing argument 2 of 'memmove' from incompatible pointer type [-Wincompatible-pointer-types]
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
      | |
      | struct dict_wsection_list_pair_s * (*)[1]
C:\PSYQ\include/memory.h:26:39: note: expected 'const unsigned char *' but argument is of type 'struct dict_wsection_list_pair_s * (*)[1]'
   26 | extern void *memmove(unsigned char *, const unsigned char *, int);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
D:/CavEX/source/world.h: In function 'dict_wsection_array_list_pair_splice':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
D:/CavEX/source/world.h: In function 'm_d1ct_dict_wsection_resize_up':
D:/CavEX/source/world.h:53:1: error: 'stderr' undeclared (first use in this function)
   53 | DICT_DEF2(dict_wsection, int64_t, M_BASIC_OPLIST, struct world_section,
      | ^~~~~~~~~
D:/CavEX/source/world.h:53:1: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
In file included from C:/devkitPro/devkitPPC/powerpc-eabi/include/sys/signal.h:14,
                 from C:/devkitPro/devkitPPC/powerpc-eabi/include/signal.h:6,
                 from D:/CavEX/source/game/game_state.h:23,
                 from D:/CavEX/source/chunk.c:28:
C:/devkitPro/devkitPPC/powerpc-eabi/include/sys/_timespec.h: At top level:
C:/devkitPro/devkitPPC/powerpc-eabi/include/sys/_timespec.h:42:25: error: conflicting types for 'time_t'; have '__int_least64_t' {aka 'long long int'}
   42 | typedef _TIME_T_        time_t;
      |                         ^~~~~~
In file included from C:/devkitPro/devkitPPC/powerpc-eabi/include/sys/signal.h:12:
C:\PSYQ\include/sys/types.h:72:17: note: previous declaration of 'time_t' with type 'time_t' {aka 'long int'}
   72 | typedef long    time_t;
      |                 ^~~~~~
D:/CavEX/source/item/inventory.h: In function 'ilist_inventory_reset':
D:/CavEX/source/item/inventory.h:54:28: error: expected expression before 'struct'
   54 | ILIST_DEF(ilist_inventory, struct inventory, M_POD_OPLIST)
      |                            ^~~~~~
D:/CavEX/source/item/inventory.h: In function 'ilist_inventory_back':
D:/CavEX/source/item/inventory.h:54:28: error: expected expression before 'struct'
   54 | ILIST_DEF(ilist_inventory, struct inventory, M_POD_OPLIST)
      |                            ^~~~~~
D:/CavEX/source/item/inventory.h: In function 'ilist_inventory_front':
D:/CavEX/source/item/inventory.h:54:28: error: expected expression before 'struct'
   54 | ILIST_DEF(ilist_inventory, struct inventory, M_POD_OPLIST)
      |                            ^~~~~~
D:/CavEX/source/item/inventory.h: In function 'ilist_inventory_next_obj':
D:/CavEX/source/item/inventory.h:54:28: error: expected expression before 'struct'
   54 | ILIST_DEF(ilist_inventory, struct inventory, M_POD_OPLIST)
      |                            ^~~~~~
D:/CavEX/source/item/inventory.h: In function 'ilist_inventory_previous_obj':
D:/CavEX/source/item/inventory.h:54:28: error: expected expression before 'struct'
   54 | ILIST_DEF(ilist_inventory, struct inventory, M_POD_OPLIST)
      |                            ^~~~~~
D:/CavEX/source/item/inventory.h: In function 'ilist_inventory_ref':
D:/CavEX/source/item/inventory.h:54:28: error: expected expression before 'struct'
   54 | ILIST_DEF(ilist_inventory, struct inventory, M_POD_OPLIST)
      |                            ^~~~~~
D:/CavEX/source/item/inventory.h: In function 'ilist_inventory_remove':
D:/CavEX/source/item/inventory.h:54:28: error: expected expression before 'struct'
   54 | ILIST_DEF(ilist_inventory, struct inventory, M_POD_OPLIST)
      |                            ^~~~~~
In file included from C:/devkitPro/libogc/include/ogc/system.h:44,
                 from C:/devkitPro/libogc/include/gccore.h:62,
                 from D:/CavEX/source/platform/texture.h:28,
                 from D:/CavEX/source/platform/gfx.h:27,
                 from D:/CavEX/source/chunk.c:29:
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h: At top level:
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:56:1: error: unknown type name 'clock_t'
   56 | clock_t    clock (void);
      | ^~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:30:1: note: 'clock_t' is defined in header '<time.h>'; did you forget to '#include <time.h>'?
   29 | #include <sys/timespec.h>
  +++ |+#include <time.h>
   30 |
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:166:20: error: unknown type name 'clockid_t'
  166 | int clock_settime (clockid_t clock_id, const struct timespec *tp);
      |                    ^~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:167:20: error: unknown type name 'clockid_t'
  167 | int clock_gettime (clockid_t clock_id, struct timespec *tp);
      |                    ^~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:168:19: error: unknown type name 'clockid_t'
  168 | int clock_getres (clockid_t clock_id, struct timespec *res);
      |                   ^~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:172:19: error: unknown type name 'clockid_t'
  172 | int timer_create (clockid_t clock_id,
      |                   ^~~~~~~~~
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:174:9: error: unknown type name 'timer_t'; did you mean 'time_t'?
  174 |         timer_t *__restrict timerid);
      |         ^~~~~~~
      |         time_t
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:178:19: error: unknown type name 'timer_t'; did you mean 'time_t'?
  178 | int timer_delete (timer_t timerid);
      |                   ^~~~~~~
      |                   time_t
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:182:20: error: unknown type name 'timer_t'; did you mean 'time_t'?
  182 | int timer_settime (timer_t timerid, int flags,
      |                    ^~~~~~~
      |                    time_t
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:185:20: error: unknown type name 'timer_t'; did you mean 'time_t'?
  185 | int timer_gettime (timer_t timerid, struct itimerspec *value);
      |                    ^~~~~~~
      |                    time_t
C:/devkitPro/devkitPPC/powerpc-eabi/include/time.h:186:23: error: unknown type name 'timer_t'; did you mean 'time_t'?
  186 | int timer_getoverrun (timer_t timerid);
      |                       ^~~~~~~
      |                       time_t
In file included from D:/CavEX/source/world.h:40:
D:/CavEX/source/chunk.c: In function 'chunk_init':
D:/CavEX/source/chunk.h:36:20: warning: 'memset' argument 3 type is 'int' where 'unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
   36 | #define CHUNK_SIZE 16
D:/CavEX/source/chunk.c:43:38: note: in expansion of macro 'CHUNK_SIZE'
   43 |         memset(c->blocks, BLOCK_AIR, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 5 / 2);
      |                                      ^~~~~~~~~~
C:\PSYQ\include/memory.h:30:14: note: built-in 'memset' declared here
   30 | extern void *memset (/* unsigned char *, unsigned char, int */);
      |              ^~~~~~
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:21: chunk.o] Error 1
make: *** [Makefile:112: build] Error 2

D:\CavEX>

I verified i had everything installed, did I miss something?

toadragethe5th commented 6 months ago

Why are you doing this across 2 drives

stonedDiscord commented 5 months ago

why is it trying to include psyq