Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cortex-A9 fails to build cmsis due to missing core_ca.h #49814

Closed
yroeht opened this issue Sep 1, 2022 · 0 comments
Closed

Cortex-A9 fails to build cmsis due to missing core_ca.h #49814

yroeht opened this issue Sep 1, 2022 · 0 comments
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@yroeht
Copy link
Contributor

yroeht commented Sep 1, 2022

Describe the bug
I wanted to check out the Cortex-A9 support, so I tried building the hello_world sample. This issue seems unrelated to the specific sample though. It is also probably unrelated to the the target and entirely due to user error wrt. modules.

The build fails due to a missing header file, which I believe is located in cmsis module (modules/hal/cmsis) at ./hal/cmsis/CMSIS/Core_A/Include/core_ca.h

I have no experience with Zephyr modules, so I may be doing something wrong here. I tried using -DZEPHYR_MODULES and -DZEPHYR_EXTRA_MODULES to no avail.

To Reproduce
Steps to reproduce the behavior:

  1. west init -m https://github.com/zephyrproject-rtos/zephyr --mr v3.1.0 zephyrproject
  2. cd zephyrproject
  3. west update
  4. west build -b qemu_cortex_a9 -- -DZEPHYR_TOOLCHAIN_VARIANT=arm-none-eabi
  5. See error

Expected behavior
I expect a successful compilation of the hello_world sample

Impact
This is stopping me (blocker) from implementing support for another Cortex-A aarch32 soc for my work.

Logs and console output

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world
-- Cache files will be written to: /home/tranquet/.cache/zephyr
-- Zephyr version: 3.1.0 (/home/tranquet/zephyr)
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: qemu_cortex_a9
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/tranquet/zephyr/boards/arm/qemu_cortex_a9/qemu_cortex_a9.dts
-- Generated zephyr.dts: /home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/zephyr.dts                                                                                             
-- Generated devicetree_unfixed.h: /home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/include/generated/devicetree_unfixed.h                                                       
-- Generated device_extern.h: /home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/include/generated/device_extern.h                                                                 
-- Including generated dts.cmake file: /home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/dts.cmake                                                                                
/home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/zephyr.dts:127.4-11: Warning (ranges_format): /soc/gpio@e000a000:ranges: empty "ranges" property but its #size-cells (0) differs
from /soc (1)
Parsing /home/tranquet/zephyr/Kconfig
Loaded configuration '/home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/.config'                                                                                                  
No change to configuration in '/home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/.config'                                                                                         
No change to Kconfig header in '/home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/include/generated/autoconf.h'                                                                   
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build                                                                                                   
-- west build: building application
[2/134] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
FAILED: zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
/opt/soft/toolchains64/arm-none-eabi/bin/arm-none-eabi-gcc -DKERNEL -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -I/home/tranquet/zephyr/kernel/include -I/home/tranquet/zephyr/arch/arm/include -I/home/tranquet/zephyr/include/zephyr -I/home/tranquet/zephyr/include -I/home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/include/generated -I/home/tranquet/zephyr/soc/arm/xilinx_zynq7000/xc7zxxxs -isystem
/home/tranquet/zephyr/lib/libc/minimal/include -isystem /opt/soft/toolchains64/timestamped/gcc-arm-10.2-2020.11-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.2.1/include -isystem /opt/soft/toolchains64/timestamped/gcc-arm-10.2-2020.11-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.2.1/include-fixed -Os -imacros /home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-a9 -mabi=aapcs -mfp16-format=ieee -imacros /home/tranquet/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/tranquet/nobackup/GIT/zephyrproject/zephyr/samples/hello_world=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/tranquet/zephyr=ZEPHYR_BASE -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -MF zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -c /home/tranquet/zephyr/arch/arm/core/offsets/offsets.c
In file included from /home/tranquet/zephyr/include/zephyr/arch/arm/aarch32/cortex_a_r/sys_io.h:19,
                 from /home/tranquet/zephyr/include/zephyr/arch/arm/aarch32/arch.h:42,
                 from /home/tranquet/zephyr/include/zephyr/arch/cpu.h:19,
                 from /home/tranquet/zephyr/include/zephyr/kernel_includes.h:33,
                 from /home/tranquet/zephyr/include/zephyr/kernel.h:17,
                 from /home/tranquet/zephyr/arch/arm/core/offsets/offsets_aarch32.c:28,
                 from /home/tranquet/zephyr/arch/arm/core/offsets/offsets.c:9:
/home/tranquet/zephyr/include/zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h:59:10: fatal error: core_ca.h: No such file or directory                                                                                 
   59 | #include <core_ca.h>
      |          ^~~~~~~~~~~
compilation terminated.

Environment:

  • OS: GNU/Linux Debian 10
  • Toolchain arm-none-eabi
  • v3.1.0

Thank you for your time and sorry for the inconvenience.

@yroeht yroeht added the bug The issue is a bug, or the PR is fixing a bug label Sep 1, 2022
@zephyrproject-rtos zephyrproject-rtos locked and limited conversation to collaborators Sep 1, 2022
@stephanosio stephanosio converted this issue into discussion #49815 Sep 1, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

1 participant