<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Application fails with &amp;quot;&amp;quot;CMakeCCompilerId.c&amp;quot; failed&amp;quot; and &amp;quot;&amp;quot;CMakeCXXCompilerId.cpp&amp;quot; failed&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109716/application-fails-with-cmakeccompilerid-c-failed-and-cmakecxxcompilerid-cpp-failed</link><description>Hi, 
 I am playing with the nRF5340 Audio Application and trying to read several mics and saving these audio files somewhere. There is an issue open for that here . With the cues you gave I could read and listen to the read audio in the same board (some</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Apr 2024 16:03:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109716/application-fails-with-cmakeccompilerid-c-failed-and-cmakecxxcompilerid-cpp-failed" /><item><title>RE: Application fails with ""CMakeCCompilerId.c" failed" and ""CMakeCXXCompilerId.cpp" failed"</title><link>https://devzone.nordicsemi.com/thread/477873?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 16:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50aaf826-9cb9-435a-b80d-12d240b9c1f1</guid><dc:creator>Joao Colombari</dc:creator><description>&lt;p&gt;Hi, Dejans,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll take my time to study this and also walk through my code again, so I&amp;#39;ll close it here and try to get you a more structured question, if needed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jo&amp;atilde;o.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application fails with ""CMakeCCompilerId.c" failed" and ""CMakeCXXCompilerId.cpp" failed"</title><link>https://devzone.nordicsemi.com/thread/477860?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 15:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d970f4bb-ab6c-4da3-ba9e-cf3986f3f95c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&amp;nbsp;You could have a look at the&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/build/dts/troubleshooting.html#troubleshooting-devicetree"&gt;troubleshooting steps&lt;/a&gt;&amp;nbsp;for devicetree error&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/build/dts/troubleshooting.html#undefined-reference-to-device-dts-ord-n"&gt;undefined reference to __device_dts_ord_&amp;lt;N&amp;gt;&lt;/a&gt;&amp;nbsp;in the Zephyr documentation.&lt;br /&gt;&lt;br /&gt;EDIT: You can find this answer: &amp;quot;&lt;span&gt;The&amp;nbsp;&lt;/span&gt;&lt;code&gt;undefined reference to __device...&lt;/code&gt;&lt;span&gt;&amp;nbsp;is a generic problem that happens if you try to get a device pointer from a devicetree node if no such device exists.&lt;/span&gt;&amp;quot; in this reported Zephyr&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/41677"&gt;issue&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application fails with ""CMakeCCompilerId.c" failed" and ""CMakeCXXCompilerId.cpp" failed"</title><link>https://devzone.nordicsemi.com/thread/477684?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 00:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba7ea170-c36a-45d6-b3aa-e9f4a0a6b056</guid><dc:creator>Joao Colombari</dc:creator><description>&lt;p&gt;Dejan,&lt;/p&gt;
&lt;p&gt;My build command was a pristine in VSCode Extension. The full log is:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building microphone_read
west build --build-dir /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read --pristine --board nrf5340_audio_dk_nrf5340_cpuapp --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/Users/joaovitor/my_boards -DCACHED_CONF_FILE=/Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/prj.conf

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/python@3.9/bin/python3.9 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/joaovitor/Library/Caches/zephyr
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr)
-- Found west (found suitable version &amp;quot;1.2.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf5340_audio_dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build/zephyr/dts.cmake

warning: Experimental symbol SAMPLE_RATE_CONVERTER is enabled.

Parsing /opt/nordic/ncs/v2.6.0/zephyr/Kconfig
Loaded configuration &amp;#39;/opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig&amp;#39;
Merged configuration &amp;#39;/Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/prj.conf&amp;#39;
Configuration saved to &amp;#39;/Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /opt/nordic/ncs/v2.6.0/zephyr/CMakeLists.txt:126 (message):
  The environment variable &amp;#39;CPPFLAGS&amp;#39; was set to
  -I/opt/homebrew/opt/llvm/include, but Zephyr ignores flags from the
  environment.  Use &amp;#39;cmake -DEXTRA_CPPFLAGS=-I/opt/homebrew/opt/llvm/include&amp;#39;
  instead.


CMake Warning at /opt/nordic/ncs/v2.6.0/zephyr/CMakeLists.txt:126 (message):
  The environment variable &amp;#39;LDFLAGS&amp;#39; was set to -L/opt/homebrew/opt/llvm/lib,
  but Zephyr ignores flags from the environment.  Use &amp;#39;cmake
  -DEXTRA_LDFLAGS=-L/opt/homebrew/opt/llvm/lib&amp;#39; instead.


-- Using ccache: /opt/nordic/ncs/toolchains/580e4ef81c/bin/ccache
CMake Warning at /opt/nordic/ncs/v2.6.0/zephyr/CMakeLists.txt:1957 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build
-- west build: building application
[1/806] Preparing syscall dependency handling

[10/806] Generating include/generated/version.h
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr), build: d96769faceca
[801/806] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build/zephyr/zephyr_pre0.map 
: &amp;amp;&amp;amp; ccache /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc  -L/opt/homebrew/opt/llvm/lib   -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a  zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/picolibc/liblib__libc__picolibc.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/arm/nordic_nrf/libsoc__arm__nordic_nrf.a  zephyr/subsys/timing/libsubsys__timing.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/mbox/libdrivers__mbox.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/regulator/libdrivers__regulator.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/sample_rate_converter/lib..__nrf__lib__sample_rate_converter.a  modules/nrf/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/cmsis-dsp/libmodules__cmsis-dsp.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L&amp;quot;/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp&amp;quot;  -L/Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -mfp16-format=ieee  -mtp=soft  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  -DPICOLIBC_LONG_LONG_PRINTF_SCANF  /opt/nordic/ncs/v2.6.0/nrfxlib/crypto/nrf_cc312_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc312_platform_0.9.19.a  --specs=picolibc.specs  -lc  -lgcc &amp;amp;&amp;amp; cd /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build/zephyr &amp;amp;&amp;amp; /opt/nordic/ncs/toolchains/580e4ef81c/Cellar/cmake/3.21.0/bin/cmake -E true
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(cs47l63_comm.c.obj):(.rodata.spi+0x0): undefined reference to `__device_dts_ord_151&amp;#39;
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/580e4ef81c/bin/cmake --build /Users/joaovitor/Documents/vscode-study/Tiresias/microphone_read/build

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Besides the links you sent, I also found &lt;a href="https://www.youtube.com/watch?v=63YXMZtovLw"&gt;this video&lt;/a&gt;&amp;nbsp;from Circuit Dojo on which he teaches how Zephyr finds the drives files when interfacing a sensor with the API. Telling it where to look as I am trying here is basically the same thing without the kconfig files.&lt;/p&gt;
&lt;p&gt;Most of my trials were around the make files, changing the command that shows the related files. Except when I simply can&amp;#39;t show the compiler the files I need, I have this same error in the log I sent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application fails with ""CMakeCCompilerId.c" failed" and ""CMakeCXXCompilerId.cpp" failed"</title><link>https://devzone.nordicsemi.com/thread/476589?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 13:03:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d100f5-9c81-4b67-93a5-406673aacedf</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]My first couple of errors came from functions within the headers I used, such as:[/quote]
&lt;p&gt;Can you provide build command and full log?&lt;/p&gt;
[quote user=""]It does not look as the right way to do it, so this is my first question -&amp;nbsp;&lt;strong&gt;what is the best way to show the compiler the referenced header files?&lt;/strong&gt;[/quote]
&lt;p&gt;I do not think there is the best way, but there are some options. There are several discussions which mention this -&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/64669528/how-can-i-include-header-files-from-a-directory-into-cmake"&gt;including header files from directory into cmake&lt;/a&gt;,&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/13703647/how-to-properly-add-include-directories-with-cmake"&gt;adding include directories into cmake&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/9985315/cmake-including-h-files-from-other-directories"&gt;cmake - including h files from other directories&lt;/a&gt;. For additional information, you could look at&amp;nbsp;&lt;a href="https://cmake.org/cmake/help/book/mastering-cmake/cmake/Help/guide/tutorial/index.html"&gt;cmake tutorial&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://cmake.org/cmake/help/book/mastering-cmake/cmake/Help/guide/importing-exporting/index.html#importing-and-exporting-guide"&gt;importing and exporting guide&lt;/a&gt;.&lt;/p&gt;
[quote user=""]&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81485/the-toolchain-is-unable-to-build-a-dummy-c-file-when-building-project-with-toolchain-manager-install/338312"&gt;This issue&lt;/a&gt;&lt;span&gt;&amp;nbsp;is similar but didn&amp;#39;t solve my problem. So my second question is&lt;strong&gt; what do I do to solve this problem??&lt;/strong&gt;&lt;/span&gt;[/quote]
&lt;p&gt;Mentioned issue was due to corrupt Python installation. What have you tried so far and what were the results?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>