Tag Archives: Arm development

[Solved] KEIL Error: keil Error: failed to execute ‘C:\Keil\ARM\ARMCC‘

 

Question:

keil Error: failed to execute ‘C:\Keil\ARM\ARMCC’

Cause of problem:

route:

.\MDK_ARM\ARM

Kiel ARM compiler is missing:

Because the latest version of Keil installation directory does not support ARMCC, that is, version 5 cannot be used

Solution:

1. Download the old version of keil

2. Right click to unzip the file, and put the file into the folder where the new version of ARM is installed

3. Add this folder

[Solved] pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory


ERROR: imx-lib-1_5.8+AUTOINC+3f777974c0-r0 do_compile: oe_runmake failed
ERROR: imx-lib-1_5.8+AUTOINC+3f777974c0-r0 do_compile: Execution of '/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/temp/run.do_compile.612337' failed with exit code 1
ERROR: Logfile of failure stored in: /sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/temp/log.do_compile.612337
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 1 CROSS_COMPILE=arm-fsl-linux-gnueabi- PLATFORM= INCLUDE=-I/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot/usr/include/imx all
| make -C pxp all
| make[1]: Entering directory '/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/git/pxp'
| arm-fsl-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot -D -I/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot/usr/include/imx -Wall -fPIC  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0=/usr/src/debug/imx-lib/1_5.8+AUTOINC+3f777974c0-r0                      -fdebug-prefix-map=/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0=/usr/src/debug/imx-lib/1_5.8+AUTOINC+3f777974c0-r0                      -fdebug-prefix-map=/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot=                      -fdebug-prefix-map=/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot-native=  -c pxp_lib.c -o pxp_lib.o
| <command-line>: error: macro names must be identifiers
| In file included from pxp_lib.c:26:
| pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory
|    19 | #include <linux/pxp_device.h>
|       |          ^~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| make[1]: *** [Makefile:30: pxp_lib.o] Error 1
| make[1]: Leaving directory '/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/git/pxp'
| make: *** [Makefile:17: pxp] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/sd1/jarvis-workspace/build-x11/tmp/work/cortexa7t2hf-neon-mx6ul-fsl-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/temp/run.do_compile.612337' failed with exit code 1

Error resolution:

meta-jarvis/recipes-bsp/imx-lib/imx-lib_git.bbappend



ADD:


PLATFORM_mx6ull = "IMX6UL"

error: unrecognized argument in option ‘-mabi=apcs-gnu‘

This is the problem I encountered when compiling rtl8723du and executing makefile:

aarch64-buildroot-linux-gnu-gcc.br_real: error: unrecognized argument in option '-mabi=apcs-gnu'
aarch64-buildroot-linux-gnu-gcc.br_real: note: valid arguments to '-mabi=' are: ilp32 lp64
aarch64-buildroot-linux-gnu-gcc.br_real: error: unrecognized command line option '-mapcs'
aarch64-buildroot-linux-gnu-gcc.br_real: error: unrecognized command line option '-mno-sched-prolog'
aarch64-buildroot-linux-gnu-gcc.br_real: error: unrecognized command line option '-msoft-float'

Let me say the conclusion first. In fact, this is the problem of conflict between the compilation target architecture. The tool chain I use is aarch64 builderoot Linux GNU GCC, which is the tool chain for compiling arm64 architecture, but the architecture in makefile is arch: = arm. Therefore, my modification is to change the architecture to arm64, that is, arch: = arm64.