<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot build graphs in VisionSDK_S32V2_RTM_1_2_0 in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Cannot-build-graphs-in-VisionSDK-S32V2-RTM-1-2-0/m-p/827714#M3893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to release notes...&lt;/P&gt;&lt;P&gt;If you are using ubuntu compilers, it supports gcc 4.9.4.&lt;/P&gt;&lt;P&gt;It also supports gcc 6.3.1. You can download it from here:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Freleases.linaro.org%2Fcomponents%2Ftoolchain%2Fbinaries%2F6.3-2017.05%2Faarch64-linux-gnu%2Fgcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz" rel="nofollow" target="_blank"&gt;https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/aarch64-linux-gnu/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Freleases.linaro.org%2Fcomponents%2Ftoolchain%2Fbinaries%2F6.3-2017.05%2Faarch64-elf%2Fgcc-linaro-6.3.1-2017.05-x86_64_aarch64-elf.tar.xz" rel="nofollow" target="_blank"&gt;https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/aarch64-elf/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-elf.tar.xz&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-eabi/gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar.xz"&gt;https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-eabi/gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar.xz &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP also supports gcc 6.3.1 compiler with NXP patches.&amp;nbsp;It will be available soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And followings are the critical environment variables you need to set up:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export ARCH=arm&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export PATH=/path/to/“aarch64-elf”/cross/compiler/binaries:$PATH&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export PATH=/path/to/“aarch64-linux-gnu”/cross/compiler/binaries:$PATH&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export PATH=/path/to/“arm-eabi”/cross/compiler/binaries:$PATH&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export S32V234_VSDK_DIR=/path/to/vsdk_installation_dir/s32v234_sdk/&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export APU_COMP=nxp&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export APU_TOOLS=/path/to/apu/compiler/APU_Compiler_vx.x/&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export PATH=/path/to/apu/compiler/APU_Compiler_vx.x/bin/:$PATH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For future questions:&lt;/P&gt;&lt;P&gt;This is not a proper community page for VSDK questions. If you have further questions on VSDK or S32K as a general please post it on nxp.com/support using support request option and an expert will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kushal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2018 15:24:51 GMT</pubDate>
    <dc:creator>KushalShahNXP</dc:creator>
    <dc:date>2018-09-19T15:24:51Z</dc:date>
    <item>
      <title>Cannot build graphs in VisionSDK_S32V2_RTM_1_2_0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Cannot-build-graphs-in-VisionSDK-S32V2-RTM-1-2-0/m-p/827712#M3891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm&amp;nbsp;trying to build&amp;nbsp;some of the demos in VisionSDK_S32V2_RTM_1_2_0. They used to build fine in&amp;nbsp;the pre-release version, but in that version some of the dependencies were simply included as precompiled .a libraries. Now it's not the case, they must be built and&amp;nbsp;something is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, to build&amp;nbsp;pedestrian_detection app, apexcv_pro_pyramid.a is required, so I'm in:&lt;/P&gt;&lt;P&gt;~/VisionSDK_S32V2_RTM_1_2_0/s32v234_sdk/libs/apexcv_pro/image_pyramid/graphs/build-apu-nxp-sa-d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run make, it appears to ignore the build environment and compiles using the&amp;nbsp;host compiler:&lt;/P&gt;&lt;PRE&gt;Current SDK ROOT is /home/user/VisionSDK_S32V2_RTM_1_2_0/s32v234_sdk
apu-kernel-getgraphs.mk: updating pyramid_up_apu_process_desc_main.cpp
apu-kernel-getgraphs.mk: updating pyramid_up_apu_process_desc_main.cpp_g++.d
apu-kernel-getgraphs.mk: updating pyramid_down_apu_process_desc_main.cpp
apu-kernel-getgraphs.mk: updating pyramid_down_apu_process_desc_main.cpp_g++.d
Current SDK ROOT is /home/svo/VisionSDK_S32V2_RTM_1_2_0/s32v234_sdk
 offline/X86 CX pyramid_down_apu_process_desc_main.o
 offline/X86 LD pyramid_down_apu_process_desc_main.exe &amp;lt;= pyramid_down_apu_process_desc_main.o ../../../../../libs/apex/acf_offline/build-x86-gnu-linux-d/libacf_offline.a ../../../../../kernels/apu/apexcv_pro_pyramid/build-apu-nxp-sa-d/apexcv_pro_pyramidacf.a
../../../../../libs/apex/acf_offline/build-x86-gnu-linux-d/libacf_offline.a(acf_process_desc_apu-cpp.obj): In function `ACF_Process_Desc_APU::AnalyzeScenarios()':
/work/agent_home/xml-data/build-dir/AVS-CI174-LIN/vsdk/s32v234_sdk/libs/apex/acf_offline/build-x86-gnu-linux-d/../../../../libs/apex/acf_offline/src/acf_process_desc_apu.cpp:338: undefined reference to `__cxa_throw_bad_array_new_length'
/work/agent_home/xml-data/build-dir/AVS-CI174-LIN/vsdk/s32v234_sdk/libs/apex/acf_offline/build-x86-gnu-linux-d/../../../../libs/apex/acf_offline/src/acf_process_desc_apu.cpp:339: undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make: *** [pyramid_down_apu_process_desc_main.exe] Error 1

&lt;/PRE&gt;&lt;P&gt;These error messages are just garbage caused by incompatible&amp;nbsp;object file formats.&amp;nbsp;It's not that surprising. If I run make V=1, I can see that it invokes host "g++" without prefix. This is also confirmed by probing some of the .o files:&lt;/P&gt;&lt;PRE&gt;$ file pyramid_down_apu_process_desc_main.o
pyramid_down_apu_process_desc_main.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped&lt;/PRE&gt;&lt;P&gt;The suffix .exe is also confusing, when building a linux library on linux host it seems out of place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relevant exports:&lt;/P&gt;&lt;PRE&gt;CROSS_COMPILE="aarch64-linux-gnu-"
CROSS_COMPILE_AARCH64_ELF="aarch64-none-elf-"
CROSS_COMPILE_M0_ELF="arm-none-eabi-"
APU_TOOLS=/home/svo/NXP/APU_Compiler_v1.0/
APU_COMP=nxp&lt;/PRE&gt;&lt;P&gt;This is on Linux Ubuntu 14.04.1, VisionSDK_S32V2_RTM_1_2_0 and NXP&amp;nbsp;APU_Compiler_b530.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the build system is missing some crucial environment&amp;nbsp;variable but I don't know which one. Any help is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 18:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Cannot-build-graphs-in-VisionSDK-S32V2-RTM-1-2-0/m-p/827712#M3891</guid>
      <dc:creator>svofski</dc:creator>
      <dc:date>2018-09-14T18:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot build graphs in VisionSDK_S32V2_RTM_1_2_0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Cannot-build-graphs-in-VisionSDK-S32V2-RTM-1-2-0/m-p/827713#M3892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ubuntu 14.04&amp;nbsp;uses gcc-4.8.&amp;nbsp;Some of the&amp;nbsp;libraries in the SDK are still binary-only and they appear to be compiled with gcc-4.9 or higher.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Possible solutions:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;Install gcc-4.9 and update-alternatives to make it default. The procedure is described in this article:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://askubuntu.com/questions/815331/updating-to-latest-gcc-and-g-on-ubuntu-16-04" title="https://askubuntu.com/questions/815331/updating-to-latest-gcc-and-g-on-ubuntu-16-04"&gt;apt - Updating to latest gcc and g++ on Ubuntu 16.04 - Ask Ubuntu&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) This is more&amp;nbsp;of a quick workaround: create and compile a C source that defines&amp;nbsp;void __cxa_throw_bad_array_new_length() {} and add it to the project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 17:39:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Cannot-build-graphs-in-VisionSDK-S32V2-RTM-1-2-0/m-p/827713#M3892</guid>
      <dc:creator>svofski</dc:creator>
      <dc:date>2018-09-17T17:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot build graphs in VisionSDK_S32V2_RTM_1_2_0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Cannot-build-graphs-in-VisionSDK-S32V2-RTM-1-2-0/m-p/827714#M3893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to release notes...&lt;/P&gt;&lt;P&gt;If you are using ubuntu compilers, it supports gcc 4.9.4.&lt;/P&gt;&lt;P&gt;It also supports gcc 6.3.1. You can download it from here:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Freleases.linaro.org%2Fcomponents%2Ftoolchain%2Fbinaries%2F6.3-2017.05%2Faarch64-linux-gnu%2Fgcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz" rel="nofollow" target="_blank"&gt;https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/aarch64-linux-gnu/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Freleases.linaro.org%2Fcomponents%2Ftoolchain%2Fbinaries%2F6.3-2017.05%2Faarch64-elf%2Fgcc-linaro-6.3.1-2017.05-x86_64_aarch64-elf.tar.xz" rel="nofollow" target="_blank"&gt;https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/aarch64-elf/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-elf.tar.xz&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-eabi/gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar.xz"&gt;https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-eabi/gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar.xz &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP also supports gcc 6.3.1 compiler with NXP patches.&amp;nbsp;It will be available soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And followings are the critical environment variables you need to set up:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export ARCH=arm&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export PATH=/path/to/“aarch64-elf”/cross/compiler/binaries:$PATH&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export PATH=/path/to/“aarch64-linux-gnu”/cross/compiler/binaries:$PATH&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export PATH=/path/to/“arm-eabi”/cross/compiler/binaries:$PATH&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export S32V234_VSDK_DIR=/path/to/vsdk_installation_dir/s32v234_sdk/&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export APU_COMP=nxp&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export APU_TOOLS=/path/to/apu/compiler/APU_Compiler_vx.x/&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;export PATH=/path/to/apu/compiler/APU_Compiler_vx.x/bin/:$PATH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For future questions:&lt;/P&gt;&lt;P&gt;This is not a proper community page for VSDK questions. If you have further questions on VSDK or S32K as a general please post it on nxp.com/support using support request option and an expert will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kushal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 15:24:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Cannot-build-graphs-in-VisionSDK-S32V2-RTM-1-2-0/m-p/827714#M3893</guid>
      <dc:creator>KushalShahNXP</dc:creator>
      <dc:date>2018-09-19T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot build graphs in VisionSDK_S32V2_RTM_1_2_0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Cannot-build-graphs-in-VisionSDK-S32V2-RTM-1-2-0/m-p/827715#M3894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;2) This is more&amp;nbsp;of a quick workaround: create and compile a C source that defines&amp;nbsp;void __cxa_throw_bad_array_new_length() {} and add it to the project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Could you show me how you add it to the project?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 12:17:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Cannot-build-graphs-in-VisionSDK-S32V2-RTM-1-2-0/m-p/827715#M3894</guid>
      <dc:creator>beijianfeng</dc:creator>
      <dc:date>2018-11-21T12:17:17Z</dc:date>
    </item>
  </channel>
</rss>

