Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
6450 | minor | always | 11-23-21 15:42 | 10-30-23 02:27 | |
|
|||||
Reporter: | nam | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | 4.0.65 | ||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0006450: unable to compile on M1 Mac with missing jni_md.h include | ||||
Description: |
(rep by L. Vivono) The version that I’mm trying to compile is: 4.0.61 And this is the error: make[1]: Entering directory '/resin-4.0.61/modules/c/src' for dir in common resin_os ; do (cd $dir; make); done make[2]: Entering directory '/resin-4.0.61/modules/c/src/common' gcc -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic stream.c stream.c: In function ‘select_host’: stream.c:1595:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1595 | srand(65521 * time(0) + getpid() + (int) cluster); | ^ gcc -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic config.c gcc -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic memory.c memory.c: In function ‘cse_free_pool’: memory.c:126:5: warning: implicit declaration of function ‘cse_free’; did you mean ‘cse_write’? [-Wimplicit-function-declaration] 126 | cse_free(ptr->buffer); | ^~~~~~~~ | cse_write /resin-4.0.61/libtool --silent --mode=compile gcc -o stream.lo -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic stream.c stream.c: In function ‘select_host’: stream.c:1595:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1595 | srand(65521 * time(0) + getpid() + (int) cluster); | ^ /resin-4.0.61/libtool --silent --mode=compile gcc -o config.lo -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic config.c /resin-4.0.61/libtool --silent --mode=compile gcc -o memory.lo -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic memory.c memory.c: In function ‘cse_free_pool’: memory.c:126:5: warning: implicit declaration of function ‘cse_free’; did you mean ‘cse_write’? [-Wimplicit-function-declaration] 126 | cse_free(ptr->buffer); | ^~~~~~~~ | cse_write make[2]: Leaving directory '/resin-4.0.61/modules/c/src/common' make[2]: Entering directory '/resin-4.0.61/modules/c/src/resin_os' gcc -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/share/resin\" -I/usr/include -I/usr/local/openjdk-11/include -I../common -DCPU=\"arm\" -DOS= -c -o boot.o boot.c In file included from boot.c:32: /usr/local/openjdk-11/include/jni.h:45:10: fatal error: jni_md.h: No such file or directory 45 | #include "jni_md.h" | ^~~~~~~~~~ compilation terminated. make[2]: *** [<builtin>: boot.o] Error 1 make[2]: Leaving directory '/resin-4.0.61/modules/c/src/resin_os' make[1]: *** [Makefile:9: plugins] Error 2 make[1]: Leaving directory '/resin-4.0.61/modules/c/src' make: *** [Makefile:716: all] Error 2 |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |