Open concon opened 2 years ago
Unfortunately, this time it gives these errors.
Arduino:1.8.19 (Mac OS X), Kart:"Sipeed Maixduino Board, Default, 400MHz CPU Clock Frequency, 1.5 Mbps, Default"
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/Fonts/glcdfont.c:10:28: warning: 'font' defined but not used [-Wunused-const-variable=]
static const unsigned char font[] PROGMEM = {
^~~~
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/tjpgd.c: In function 'jd_prepare':
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/tjpgd.c:772:13: warning: assignment to 'uint16_t ()(JDEC , uint8_t , uint16_t)' {aka 'short unsigned int ()(struct JDEC , unsigned char , short unsigned int)'} from incompatible pointer type 'uint32_t ()(JDEC , uint8_t , uint32_t)' {aka 'unsigned int ()(struct JDEC , unsigned char , unsigned int)'} [-Wincompatible-pointer-types]
jd->infunc = infunc; / Stream input function /
^
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/tjpgd.c: In function 'jd_decomp':
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/tjpgd.c:963:24: warning: passing argument 2 of 'mcu_output' from incompatible pointer type [-Wincompatible-pointer-types]
rc = mcu_output(jd, outfunc, x, y); / Output the MCU (color space conversion, scaling and output) /
^~~
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/tjpgd.c:551:13: note: expected 'uint16_t ()(JDEC , void , JRECT )' {aka 'short unsigned int ()(struct JDEC , void , struct
In file included from /Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/bsp/include/bsp.h:4,
from /Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/drivers/include/i2s.h:23,
from /Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/Speaker.cpp:7:
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/bsp/include/entry.h: In function 'void init_tls()':
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/bsp/include/entry.h:73:27: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
memset(thread_pointer + tdata_size, 0, tbss_size);
~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/rom/tjpgd.c: In function 'jd_prepare':
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/rom/tjpgd.c:772:13: warning: assignment to 'uint16_t (*)(JDEC *, uint8_t *, uint16_t)' {aka 'short unsigned int (*)(struct JDEC *, unsigned char *, short unsigned int)'} from incompatible pointer type 'uint32_t (*)(JDEC *, uint8_t *, uint32_t)' {aka 'unsigned int (*)(struct JDEC *, unsigned char *, unsigned int)'} [-Wincompatible-pointer-types]
jd->infunc = infunc; /* Stream input function */
^
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/rom/tjpgd.c: In function 'jd_decomp':
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/rom/tjpgd.c:963:24: warning: passing argument 2 of 'mcu_output' from incompatible pointer type [-Wincompatible-pointer-types]
rc = mcu_output(jd, outfunc, x, y); /* Output the MCU (color space conversion, scaling and output) */
^~~~~~~
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/rom/tjpgd.c:551:13: note: expected 'uint16_t (*)(JDEC *, void *, JRECT *)' {aka 'short unsigned int (*)(struct JDEC *, void *, struct <anonymous> *)'} but argument is of type 'uint32_t (*)(JDEC *, void *, JRECT *)' {aka 'unsigned int (*)(struct JDEC *, void *, struct <anonymous> *)'}
uint16_t (*outfunc)(JDEC*, void*, JRECT*), /* RGB output function */
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/SD/src/File.cpp: In member function 'long int SDLib::File::read(void*, uint32_t)':
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/SD/src/File.cpp:106:36: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
ret = (uint16_t)_file->read(buf+(nbyte-bytesToRead), readBytesOnece);
~~~^~~~~~~~~~~~~~~~~~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/NS2009/src/tscal.c: In function 'cairo_draw_string':
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/NS2009/src/tscal.c:163:27: warning: passing argument 3 of 'lcd_draw_string' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
lcd_draw_string(x, y, title, WHITE);
^~~~~
In file included from /Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/NS2009/src/tscal.c:5:
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/Sipeed_ST7789/src/lcd.h:85:52: note: expected 'char *' but argument is of type 'const char *'
void lcd_draw_string(uint16_t x, uint16_t y, char *str, uint16_t color);
~~~~~~^~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/NS2009/src/tscal.c: In function 'do_tscal':
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/NS2009/src/tscal.c:169:15: warning: unused variable 'lcd_ctl' [-Wunused-variable]
lcd_ctl_t lcd_ctl;
^~~~~~~
At top level:
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/NS2009/src/tscal.c:161:13: warning: 'cairo_draw_string' defined but not used [-Wunused-function]
static void cairo_draw_string(int x, int y, const char *title)
^~~~~~~~~~~~~~~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/libraries/Adafruit-GFX-Library/glcdfont.c:18:28: warning: 'font' defined but not used [-Wunused-const-variable=]
static const unsigned char font[] PROGMEM = {
^~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/wiring_analog.c: In function 'analogRead':
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/wiring_analog.c:104:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c: In function 'vAddNewTaskToCurrentReadyList':
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:1111:26: warning: assignment to 'UBaseType_t' {aka 'long unsigned int'} from 'UBaseType_t *' {aka 'long unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
pxNewTCB->uxTCBNumber = uxTaskNumber;
^
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c: In function 'uxTaskGetSystemState':
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:2483:20: warning: comparison between pointer and integer
if( uxArraySize >= uxCurrentNumberOfTasks )
^~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:2490:80: warning: passing argument 2 of 'prvListTasksWithinSingleList' from incompatible pointer type [-Wincompatible-pointer-types]
uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), &( pxReadyTasksLists[ uxQueue ] ), eReady );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:505:92: note: expected 'List_t *' {aka 'struct xLIST *'} but argument is of type 'List_t (*)[5]' {aka 'struct xLIST (*)[5]'}
static UBaseType_t prvListTasksWithinSingleList( TaskStatus_t *pxTaskStatusArray, List_t *pxList, eTaskState eState ) PRIVILEGED_FUNCTION;
~~~~~~~~^~~~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:2503:80: warning: passing argument 2 of 'prvListTasksWithinSingleList' from incompatible pointer type [-Wincompatible-pointer-types]
uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), &xTasksWaitingTermination, eDeleted );
^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:505:92: note: expected 'List_t *' {aka 'struct xLIST *'} but argument is of type 'List_t (*)[2]' {aka 'struct xLIST (*)[2]'}
static UBaseType_t prvListTasksWithinSingleList( TaskStatus_t *pxTaskStatusArray, List_t *pxList, eTaskState eState ) PRIVILEGED_FUNCTION;
~~~~~~~~^~~~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:2511:80: warning: passing argument 2 of 'prvListTasksWithinSingleList' from incompatible pointer type [-Wincompatible-pointer-types]
uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), &xSuspendedTaskList, eSuspended );
^~~~~~~~~~~~~~~~~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:505:92: note: expected 'List_t *' {aka 'struct xLIST *'} but argument is of type 'List_t (*)[2]' {aka 'struct xLIST (*)[2]'}
static UBaseType_t prvListTasksWithinSingleList( TaskStatus_t *pxTaskStatusArray, List_t *pxList, eTaskState eState ) PRIVILEGED_FUNCTION;
~~~~~~~~^~~~~~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c: In function 'vTaskGetInfo':
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:3626:14: warning: comparison of distinct pointer types lacks a cast
if( pxTCB == pxCurrentTCB )
^~
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c: In function 'vTaskList':
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/hardware/k210/0.3.11/cores/arduino/kendryte-standalone-sdk/lib/freertos/tasks.c:4292:15: warning: assignment to 'UBaseType_t' {aka 'volatile long unsigned int'} from 'volatile UBaseType_t *' {aka 'volatile long unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
uxArraySize = uxCurrentNumberOfTasks;
^
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/tools/riscv64-unknown-elf-gcc/8.2.0_20190409/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld: libraries/Maixduino_M5Compat-master/utility/rom/tjpgd.c.o: in function `jd_prepare':
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/rom/tjpgd.c:760: multiple definition of `jd_prepare'; libraries/Maixduino_M5Compat-master/utility/tjpgd.c.o:/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/tjpgd.c:760: first defined here
/Users/lemicaglibektas/Library/Arduino15/packages/Maixduino/tools/riscv64-unknown-elf-gcc/8.2.0_20190409/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld: libraries/Maixduino_M5Compat-master/utility/rom/tjpgd.c.o: in function `jd_decomp':
/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/rom/tjpgd.c:945: multiple definition of `jd_decomp'; libraries/Maixduino_M5Compat-master/utility/tjpgd.c.o:/Users/lemicaglibektas/Documents/Arduino/libraries/Maixduino_M5Compat-master/src/utility/tjpgd.c:945: first defined here
collect2: error: ld returned 1 exit status
exit status 1
Sipeed Maixduino Board kartı için derleme hatası.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi,
i am getting error with this,
c:/users/salon/documents/arduinodata/packages/maixduino/tools/riscv64-unknown-elf-gcc/8.2.0_20190409/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: libraries\Maixduino_M5Compat-master\utility\rom\tjpgd.c.o: in function
jd_prepare': C:\Users\salon\Documents\Arduino\libraries\Maixduino_M5Compat-master\src\utility\rom/tjpgd.c:760: multiple definition of
jd_prepare'; libraries\Maixduino_M5Compat-master\utility\tjpgd.c.o:C:\Users\salon\Documents\Arduino\libraries\Maixduino_M5Compat-master\src\utility/tjpgd.c:760: first defined here c:/users/salon/documents/arduinodata/packages/maixduino/tools/riscv64-unknown-elf-gcc/8.2.0_20190409/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: libraries\Maixduino_M5Compat-master\utility\rom\tjpgd.c.o: in functionjd_decomp': C:\Users\salon\Documents\Arduino\libraries\Maixduino_M5Compat-master\src\utility\rom/tjpgd.c:945: multiple definition of
jd_decomp'; libraries\Maixduino_M5Compat-master\utility\tjpgd.c.o:C:\Users\salon\Documents\Arduino\libraries\Maixduino_M5Compat-master\src\utility/tjpgd.c:945: first defined here collect2.exe: error: ld returned 1 exit status