-
Notifications
You must be signed in to change notification settings - Fork 7
Description
when I put make linux
make -C ./pimpmobile_r1 lib/libpimpmobile.a
make[1] : on entre dans le répertoire « /home/ludovic/Bureau/dragonbasic-master/pimpmobile_r1 »
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/opt/devkitpro/devkitARM/include -I/opt/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_gba.c -o src/pimp_gba.o -MMD -MP -MF src/pimp_gba.d
In file included from src/pimp_module.h:9,
from src/pimp_mod_context.h:10,
from src/pimp_render.h:10,
from src/pimp_gba.c:9:
src/pimp_instrument.h: In function 'get_sample':
src/pimp_instrument.h:45:40: error: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types]
45 | return &((pimp_sample*)get_ptr(&instr->sample_ptr))[i];
| ^~~~~~~~~~~~~~~~~~
| |
| const u32 * {aka const long unsigned int *}
In file included from src/pimp_render.h:9:
src/pimp_internal.h:12:49: note: expected 'const unsigned int *' but argument is of type 'const u32 *' {aka 'const long unsigned int *'}
12 | static INLINE void *get_ptr(const unsigned int offset)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
src/pimp_instrument.h: In function 'get_vol_env':
src/pimp_instrument.h:51:74: error: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types]
51 | n (pimp_envelope)(instr->vol_env_ptr == 0 ? NULL : get_ptr(&instr->vol_env_ptr));
| ^~~~~~~~~~~~~~~~~~~
| |
| const u32 * {aka const long unsigned int *}
src/pimp_internal.h:12:49: note: expected 'const unsigned int *' but argument is of type 'const u32 *' {aka 'const long unsigned int *'}
12 | static INLINE void *get_ptr(const unsigned int offset)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
src/pimp_module.h: In function 'get_pattern_data':
src/pimp_module.h:59:45: error: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types]
59 | return (pimp_pattern_entry)get_ptr(&pat->data_ptr);
| ^~~~~~~~~~~~~~
| |
| const u32 * {aka const long unsigned int *}
src/pimp_internal.h:12:49: note: expected 'const unsigned int *' but argument is of type 'const u32 *' {aka 'const long unsigned int *'}
12 | static INLINE void *get_ptr(const unsigned int offset)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
src/pimp_module.h: In function '__pimp_module_get_order':
src/pimp_module.h:65:32: error: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types]
65 | return ((char)get_ptr(&mod->order_ptr))[i];
| ^~~~~~~~~~~~~~~
| |
| const u32 * {aka const long unsigned int *}
src/pimp_internal.h:12:49: note: expected 'const unsigned int *' but argument is of type 'const u32 *' {aka 'const long unsigned int *'}
12 | static INLINE void *get_ptr(const unsigned int offset)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
src/pimp_module.h: In function '__pimp_module_get_pattern':
src/pimp_module.h:71:41: error: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types]
71 | return &((pimp_pattern)get_ptr(&mod->pattern_ptr))[i];
| ^~~~~~~~~~~~~~~~~
| |
| const u32 * {aka const long unsigned int *}
src/pimp_internal.h:12:49: note: expected 'const unsigned int *' but argument is of type 'const u32 *' {aka 'const long unsigned int *'}
12 | static INLINE void *get_ptr(const unsigned int offset)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
src/pimp_module.h: In function '__pimp_module_get_channel':
src/pimp_module.h:77:41: error: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types]
77 | return &((pimp_channel)get_ptr(&mod->channel_ptr))[i];
| ^~~~~~~~~~~~~~~~~
| |
| const u32 * {aka const long unsigned int *}
src/pimp_internal.h:12:49: note: expected 'const unsigned int *' but argument is of type 'const u32 *' {aka 'const long unsigned int *'}
12 | static INLINE void *get_ptr(const unsigned int offset)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
src/pimp_module.h: In function '__pimp_module_get_instrument':
src/pimp_module.h:83:44: error: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types]
83 | return &((pimp_instrument)get_ptr(&mod->instrument_ptr))[i];
| ^~~~~~~~~~~~~~~~~~~~
| |
| const u32 * {aka const long unsigned int *}
src/pimp_internal.h:12:49: note: expected 'const unsigned int *' but argument is of type 'const u32 *' {aka 'const long unsigned int *'}
12 | static INLINE void *get_ptr(const unsigned int *offset)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
src/pimp_gba.c: At top level:
src/pimp_gba.c:27:1: warning: variably modified '__pimp_sound_buffers' at file scope
27 | static s8 __pimp_sound_buffers[2][SOUND_BUFFER_SIZE] IWRAM_DATA;
| ^~~~~~
src/pimp_gba.c:29:1: warning: variably modified '__pimp_mix_buffer' at file scope
29 | s32 __pimp_mix_buffer[SOUND_BUFFER_SIZE] IWRAM_DATA;
| ^~~
make[1]: *** [Makefile:91 : src/pimp_gba.o] Erreur 1
make[1] : on quitte le répertoire « /home/ludovic/Bureau/dragonbasic-master/pimpmobile_r1 »
make: *** [Makefile:103 : pimpmobile_r1/lib/libpimpmobile.a] Erreur 2
`
error 2 in pimpmobile_r1
please help me
thanks