<?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>Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62470/issue-building-examples-for-nrf5-sdk-for-mesh</link><description>I am using version 4.1 of the Mesh SDK and version 16.0.0 of the nRF5 SDK on Windows. I was able to successfully generate the ninja build files using CMake. However, when I run ninja to build the examples it fails on building ASM object. It seems that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 14:15:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62470/issue-building-examples-for-nrf5-sdk-for-mesh" /><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/256234?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 14:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:340d6d1d-2d4f-4bad-9101-da5c8333b134</guid><dc:creator>abumbalough21</dc:creator><description>&lt;p&gt;Found the issue. CMake was not automatically picking up the path for the toolchain assembler so I was setting it manually through the ASM environment variable. Turns out that this build system uses arm-none-eabi-gcc.exe as the assmbler, not arm-none-eabi-as.exe like I had assumed (didn&amp;#39;t realize gcc could be used as an assembler, I thought that was what as was for). Pointing my ASM environment variable to the GCC executable instead of the AS executable resolved the build issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/256187?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 12:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e24fb63e-007e-4865-885b-75cc5c7b526f</guid><dc:creator>abumbalough21</dc:creator><description>&lt;p&gt;I am able to successfully build that SDK and all examples on my personal Windows 10 machine. Unfortunately this doesn&amp;#39;t help resolve the issue on my work machine. My personal computer has Windows 10 Pro version 1909 and the work computer is running Windows 10 Enterprise version 1809.&lt;/p&gt;
&lt;p&gt;For anyone who comes across this thread in the future, I&amp;#39;d suggest just trying a different computer instead of wasting time trying to hunt this one down. It seems to be a unique issue that has more to do with the specific system than errors in the toolchain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/256127?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 08:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb895e03-5948-4bfe-96cd-36d5d9c2c916</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;This seems really strange, do you have a different computer to try on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/256011?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 20:21:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0e79aa8-c0f3-44bd-ace8-e02afcdb1ac7</guid><dc:creator>abumbalough21</dc:creator><description>&lt;p&gt;Upon further inspection it appears that the new errors were caused by me having installed CMake Release Candidate version 3.18.0-rc2. After uninstalling and installing the latest stable release, 3.17.3, the error in my original post above persists.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/256005?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 16:51:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62f85e1e-542a-42e3-b563-47915fabcd0d</guid><dc:creator>abumbalough21</dc:creator><description>&lt;p&gt;I reinstalled the entire toolchain including CMake and Ninja. There build fails at the same point but the error is slightly different this time. It seems that the Ninja build files being generated by CMake have errors in them.&lt;pre class="ui-code" data-mode="text"&gt;[51/2229] Building ASM object examples/beaconing/CMakeFile...16.0.0_98a08e2/modules/nrfx/mdk/gcc_startup_nrf52840.S.obj
FAILED: examples/beaconing/CMakeFiles/beaconing_nrf52840_xxAA_s140_7.0.1.dir/C_/Users/abumbalo/.nrf/nRF5_SDK_16.0.0_98a08e2/modules/nrfx/mdk/gcc_startup_nrf52840.S.obj
C:\PROGRA~2\GNUARM~1\92020-~1\bin\ARM-NO~3.EXE --defsym BOARD_PCA10056 --defsym CONFIG_GPIO_AS_PINRESET --defsym NRF52840 --defsym NRF52840_XXAA --defsym NRF52_SERIES --defsym NRF_SD_BLE_API_VERSION=7 --defsym S140 --defsym SOFTDEVICE_PRESENT --defsym USE_APP_CONFIG -I../examples/beaconing/include -I../examples/beaconing/../include -I../examples/common/include -I../../nRF5_SDK_16.0.0_98a08e2/components/ble/common -I../../nRF5_SDK_16.0.0_98a08e2/components/softdevice/common -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/strerror -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/atomic -I../models/foundation/config/include -I../models/foundation/health/include -I../mesh/stack/api -I../mesh/core/api -I../mesh/core/include -I../mesh/access/api -I../mesh/access/include -I../mesh/dfu/api -I../mesh/dfu/include -I../mesh/prov/api -I../mesh/prov/include -I../mesh/bearer/api -I../mesh/bearer/include -I../mesh/gatt/api -I../mesh/gatt/include -I../mesh/friend/api -I../mesh/friend/include -I../../nRF5_SDK_16.0.0_98a08e2/components/softdevice/s140/headers -I../../nRF5_SDK_16.0.0_98a08e2/components/softdevice/s140/headers/nrf52 -I../../nRF5_SDK_16.0.0_98a08e2/modules/nrfx -I../../nRF5_SDK_16.0.0_98a08e2/modules/nrfx/mdk -I../../nRF5_SDK_16.0.0_98a08e2/modules/nrfx/hal -I../../nRF5_SDK_16.0.0_98a08e2/components/toolchain/cmsis/include -I../../nRF5_SDK_16.0.0_98a08e2/components/toolchain/gcc -I../../nRF5_SDK_16.0.0_98a08e2/components/toolchain/cmsis/dsp/GCC -I../../nRF5_SDK_16.0.0_98a08e2/components/boards -I../../nRF5_SDK_16.0.0_98a08e2/integration/nrfx -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/util -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/timer -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/log -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/log/src -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/experimental_section_vars -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/delay -I../external/rtt/include -I../external/micro-ecc -I../external/micro-ecc/../../mesh/core/include -O2 -g -DNDEBUG -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 --MD examples\beaconing\CMakeFiles\beaconing_nrf52840_xxAA_s140_7.0.1.dir\C_\Users\abumbalo\.nrf\nRF5_SDK_16.0.0_98a08e2\modules\nrfx\mdk\gcc_startup_nrf52840.S.obj.d -o examples/beaconing/CMakeFiles/beaconing_nrf52840_xxAA_s140_7.0.1.dir/C_/Users/abumbalo/.nrf/nRF5_SDK_16.0.0_98a08e2/modules/nrfx/mdk/gcc_startup_nrf52840.S.obj -c C:/Users/abumbalo/.nrf/nRF5_SDK_16.0.0_98a08e2/modules/nrfx/mdk/gcc_startup_nrf52840.S
Assembler messages:
Fatal error: bad defsym; format is --defsym name=value
[64/2229] Building C object examples/beaconing/CMakeFiles/...xAA_s140_7.0.1.dir/__/__/mesh/core/src/flash_manager.c.obj
ninja: build stopped: subcommand failed.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255888?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 08:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d06ec64-537c-4fd0-90d5-2155f4dcbfdc</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just tested this on Windows 10 and managed to build the examples just fine. Could you try go through the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.1.0/md_doc_getting_started_how_to_toolchain.html#toolchain_cmake_windows" rel="noopener noreferrer" target="_blank"&gt;toolchain&lt;/a&gt;&amp;nbsp;again and update them?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255549?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 12:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79235ef2-a629-4062-ba7a-4bb10cad7c3e</guid><dc:creator>abumbalough21</dc:creator><description>&lt;p&gt;Yes, that was the same version I used. Can you try building the SDK for Windows 10?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255400?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 06:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4807251-03cb-4405-80bb-0bb1b3386fd1</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;I&amp;#39;m using the one &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.1.0/md_doc_getting_started_how_to_toolchain.html#toolchain_cmake_windows" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;(9-2020-q2-update), think it is the same one you used above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255340?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 16:13:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf381514-5842-4a30-bf61-1f185ffcb64d</guid><dc:creator>abumbalough21</dc:creator><description>&lt;p&gt;I was able to successfully build the Mesh SDK and all examples in a Debian 10.4 virtual machine using version 7.3.1 of the GNU Arm Embedded Toolchain. I also tried installing the same version of the toolchain in my Windows 10 system but still received the same error as above. &lt;a href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;, what version of the toolchain are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255291?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 13:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72307aa1-62e0-41c7-88d8-3a2a15a86954</guid><dc:creator>abumbalough21</dc:creator><description>&lt;p&gt;Do you know of anyone who has successfully built Mesh SDK for Windows 10?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255289?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 13:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f18eb97-081f-42fa-b8a0-bf77b06f1560</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;I&amp;#39;m running on Windows 7.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255272?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 13:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a5d30fc-5002-4a6f-97bf-601332f0b657</guid><dc:creator>abumbalough21</dc:creator><description>&lt;p&gt;I downloaded a fresh copy of both the nRF5 SDK and the SDK for Mesh. Unfortunately I am still receiving the same error. Are you also building on a Windows 10 system? I may set up a Linux VM and try building in that environment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255217?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 10:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f2d253e-b321-4f1c-bcab-7e91ee92dd9b</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;I had no problem building it here. Can you try with a fresh copy of the SDK?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255146?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 06:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c9d6406-e861-4b47-860f-98fa8e2d0e67</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Are you using a fresh copy the SDKs from our &lt;a href="https://www.nordicsemi.com/" rel="noopener noreferrer" target="_blank"&gt;website&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;I will test it over here and see if I can reproduce the same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255037?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 13:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd31f85c-cc7a-470d-99b7-c957d39aadd3</guid><dc:creator>abumbalough21</dc:creator><description>&lt;p&gt;Yes, that was the documentation I was following to build the Mesh SDK with CMake. I tried again with the DTOOLCHAIN flag and had the same results as above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is suspicious to me that in line 4 of the Ninja output above, the first argument to the command is -DBOARD_PCA10056, however in the next line the error message says &amp;quot;unrecognized option &amp;#39;-BOARD_PCA10056&amp;#39;&amp;quot; without the preceding D.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Building Examples for nRF5 SDK for Mesh</title><link>https://devzone.nordicsemi.com/thread/255002?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 12:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97df6d59-84b6-4b3a-8aae-dd48569be457</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you follow this &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.1.0/md_doc_getting_started_how_to_build.html?cp=7_2_1_2" rel="noopener noreferrer" target="_blank"&gt;documentation&lt;/a&gt; when using CMake? Can you try including this command&amp;nbsp;-DTOOLCHAIN=&amp;lt;toolchain&amp;gt;, when you generate the build files in step 1? Does it make any difference?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>