embeded2021. 1. 8. 17:59

아래의 옵션을 추천해서 적용해 보았는데

-mthumb -O3 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mvectorize-with-neon-quad -mfloat-abi=softfp

[링크 : https://stackoverflow.com/questions/14962447/gcc-options-for-a-freescale-imx6q-arm-processor]

[링크 : https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html]

 

에러가 나서 mfloat-abi=softfp 에서 hard로 변경

In file included from /usr/include/features.h:448,
                 from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:25,
                 from include/darknet.h:12,
                 from ./src/activations.h:3,
                 from ./src/gemm.h:3,
                 from ./src/gemm.c:1:
/usr/include/arm-linux-gnueabihf/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
           ^~~~~~~~~~~~~~~~~~
compilation terminated.

[링크 : https://stackoverflow.com/questions/49139125/fatal-error-gnu-stubs-soft-h-no-such-file-or-directory]

 

아무튼 빌드는 되지만 아래와 같은 경고가 뜬다. march와 mcpu가 충돌난다라.. 어느걸 살려야 할까?

cc1: warning: switch -mcpu=cortex-a9 conflicts with -march=armv7-a switch

 

 

+

2021.01.12

[링크 : https://developer.arm.com/documentation/dui0472/i/using-the-neon-vectorizing-compiler/generating-neon-instructions-from-c-or-c---code]

 

'embeded' 카테고리의 다른 글

arm-none-eabi는 -pthread 미지원  (0) 2021.01.11
orange pi r1+  (0) 2021.01.08
i.mx6 solo 비디오 성능 문제?  (0) 2020.10.19
간만에 부품 지름  (2) 2020.03.04
solidrun CuBox-i2w  (0) 2019.03.10
Posted by 구차니