8000
Skip to content

NXP: build failure with IAR iar-arm-build-tools-nightly-linux-9.70.1-alpha.5138: buidl failure #12

Description

@hakehuang

Describe the bug

Zephyr build failure IAR with 'https://github.com/iarsystems/zephyr-iar/releases/download/iar-arm-build-tools-nightly-linux-9.70.1-alpha.5138/iar-arm-build-tools-nightly-linux-9.70.1-alpha.5138.zip'

scripts/twister -p frdm_k64f -j 12 -T samples/hello_world --build-only --inline-logs -M all --force-toolchain --disable-warnings-as-errors -x=CONFIG_CMAKE_LINKER_GENERATOR=y

To Reproduce

install iar as below

wget https://github.com/iarsystems/zephyr-iar/releases/download/iar-arm-build-tools-nightly-linux-9.70.1-alpha.5138/iar-arm-build-tools-nightly-linux-9.70.1-alpha.5138.zip -O iar.zip
mkdir iarsystems
unzip -d ./iarsystems iar.zip

and I can see the folder structure

drwxr-sr-x 8 user user 4.0K Mar  7 12:56 .
drwxr-sr-x 4 user user 4.0K Jun  3 07:49 ..
drwxr-sr-x 2 user user 4.0K Mar  7 12:56 bin
drwxr-sr-x 2 user user 4.0K Mar  7 12:56 config
drwxr-sr-x 2 user user 4.0K Mar  7 12:56 doc
drwxr-sr-x 7 user user 4.0K Mar  7 12:56 inc
drwxr-sr-x 2 user user  20K Mar  7 12:56 lib
drwxr-sr-x 4 user user 4.0K Mar  7 12:56 src

and when I run the build command below

ZEPHYR_GCC_VARIANT=iar
ZEPHYR_BASE=/home/jenkins/agent/workspace/bitbucket_build_platform/zephyr
IAR_TOOLCHAIN_PATH=/home/jenkins/agent/workspace/bitbucket_build_platform/iarsystems/arm
IAR_LMS_BEARER_TOKEN=<my tockens>

and get below log

INFO    - Zephyr version: v4.1.0-5129-g05f71f3874d4
INFO    - Using 'iar' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/twister-out/testplan.json
INFO    - JOBS: 12
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
ERROR   - CMake build failure: /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/samples/hello_world for frdm_k64f/mk64f12
ERROR   - frdm_k64f/mk64f12         samples/hello_world/sample.basic.helloworld        ERROR: CMake build failure
INFO    - /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/twister-out/frdm_k64f_mk64f12/iar/samples/hello_world/sample.basic.helloworld/build.log
ERROR   - Loading Zephyr default modules (Zephyr base).
-- Application: /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/samples/hello_world
-- CMake version: 3.28.3
-- Found Python3: /home/jenkins/agent/workspace/bitbucket_build_platform/.venv/bin/python3 (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: /home/user/.cache/zephyr
-- Zephyr version: 4.1.99 (/home/jenkins/agent/workspace/bitbucket_build_platform/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: frdm_k64f, qualifiers: mk64f12
-- Found toolchain: IAR C/C++ Compiler for Arm (/home/jenkins/agent/workspace/bitbucket_build_platform/iarsystems/arm)
-- Found host-tools: zephyr 0.17.1 (/opt/toolchains/zephyr-sdk-0.17.1-rc4)
-- Found Zephyr SDK at /opt/toolchains/zephyr-sdk-0.17.1-rc4
-- Found Dtc: /opt/toolchains/zephyr-sdk-0.17.1-rc4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.7.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/boards/nxp/frdm_k64f/frdm_k64f.dts
-- Generated zephyr.dts: /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/twister-out/frdm_k64f_mk64f12/iar/samples/hello_world/sample.basic.helloworld/zephyr/zephyr.dts
-- Generated pickled edt: /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/twister-out/frdm_k64f_mk64f12/iar/samples/hello_world/sample.basic.helloworld/zephyr/edt.pickle
-- Generated devicetree_generated.h: /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/twister-out/frdm_k64f_mk64f12/iar/samples/hello_world/sample.basic.helloworld/zephyr/include/generated/zephyr/devicetree_generated.h
Parsing /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/Kconfig
Loaded configuration '/home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/boards/nxp/frdm_k64f/frdm_k64f_defconfig'
Merged configuration '/home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/samples/hello_world/prj.conf'
Merged configuration '/home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/twister-out/frdm_k64f_mk64f12/iar/samples/hello_world/sample.basic.helloworld/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/twister-out/frdm_k64f_mk64f12/iar/samples/hello_world/sample.basic.helloworld/zephyr/.config'
Kconfig header saved to '/home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/twister-out/frdm_k64f_mk64f12/iar/samples/hello_world/sample.basic.helloworld/zephyr/include/generated/zephyr/autoconf.h'
-- Found C Compiler /home/jenkins/agent/workspace/bitbucket_build_platform/iarsystems/arm/bin/iccarm
-- Found assembler /opt/toolchains/zephyr-sdk-0.17.1-rc4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- The C compiler identification is IAR
CMake Error at /usr/share/cmake-3.28/Modules/CMakeFindBinUtils.cmake:146 (message):
  Failed to find linker and librarian for IAR on .
Call Stack (most recent call first):
  /usr/share/cmake-3.28/Modules/CMakeDetermineCCompiler.cmake:196 (include)
  /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/cmake/modules/kernel.cmake:129 (project)
  /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/cmake/modules/zephyr_default.cmake:140 (include)
  /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/jenkins/agent/workspace/bitbucket_build_platform/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!

Expected behavior

build PASS

Impact

IAR toolchain support

Environment (please complete the following information):

  • OS: ubuntu
  • Toolchain (e.g Zephyr SDK, ...): IAR 9.70.1-alpha.5138
  • Commit SHA or Version used: v4.1.0-5129-g05f71f3874d4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

0