<?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 Compiler options when using SDK built from 'bitbake meta-toolchain' in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226062#M16065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I am building code using arm-poky-linux-gnueabi-g++ / arm-poky-linux-gnueabi-gcc from the SDK generated by 'bitbake meta-toolchain', should I be using options like -mcpu=cortex-a9, -mfpu=neon, &lt;SPAN style="color: #444444; font-family: arial, sans-serif; font-size: small;"&gt;-mfloat-abi=&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: arial, sans-serif; font-size: small;"&gt;softfp&lt;/SPAN&gt;, etc.. ? And if so what would be the recommended options for the best performance? (This code would be specific to the iMX6D)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2014 20:56:03 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2014-01-09T20:56:03Z</dc:date>
    <item>
      <title>Compiler options when using SDK built from 'bitbake meta-toolchain'</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226062#M16065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I am building code using arm-poky-linux-gnueabi-g++ / arm-poky-linux-gnueabi-gcc from the SDK generated by 'bitbake meta-toolchain', should I be using options like -mcpu=cortex-a9, -mfpu=neon, &lt;SPAN style="color: #444444; font-family: arial, sans-serif; font-size: small;"&gt;-mfloat-abi=&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: arial, sans-serif; font-size: small;"&gt;softfp&lt;/SPAN&gt;, etc.. ? And if so what would be the recommended options for the best performance? (This code would be specific to the iMX6D)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 20:56:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226062#M16065</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2014-01-09T20:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler options when using SDK built from 'bitbake meta-toolchain'</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226063#M16066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you run the script which setup the cross compiler's  environment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/opt/poky/1.5/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has some environment variables and I believe these are tuned for the ARM platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 21:14:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226063#M16066</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2014-01-09T21:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler options when using SDK built from 'bitbake meta-toolchain'</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226064#M16067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Specifically I have been developing, compiling, and remote debugging using the Eclipse CDT so that file wasn't being used by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file you mentioned though shows:&lt;/P&gt;&lt;P&gt;export CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/opt/poky/1.4.3/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"&lt;/P&gt;&lt;P&gt;export CXX="arm-poky-linux-gnueabi-g++&amp;nbsp; -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/opt/poky/1.4.3/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"&lt;/P&gt;&lt;P&gt;export CPP="arm-poky-linux-gnueabi-gcc -E&amp;nbsp; -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/opt/poky/1.4.3/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am going just adding to the end of the Miscellaneous section of "Cross GCC Compiler", "Cross G++ Compiler", and "Cross G++ Linker":&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/opt/poky/1.4.3/sysroots/armv7a-vfp-neon-poky-linux-gnueabi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Does this sound right to you? (It doesn't look like its breaking anything)&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 21:35:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226064#M16067</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2014-01-09T21:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler options when using SDK built from 'bitbake meta-toolchain'</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226065#M16068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give it a try, it should work. Honestly, I have not use other values other than those set by the script....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 21:42:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226065#M16068</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2014-01-09T21:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler options when using SDK built from 'bitbake meta-toolchain'</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226066#M16069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having difficulty linking. I am using Poky 1.8. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used bitbake meta-toolchain to create the toolchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ran the environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi.sh script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the linker cannot find some object files and libraries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10:17:28 **** Incremental Build of configuration Debug for project remote_test ****&lt;/P&gt;&lt;P&gt;make pre-build main-build &lt;/P&gt;&lt;P&gt;/opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building target: remote_test&lt;/P&gt;&lt;P&gt;Invoking: Cross ARM C Linker&lt;/P&gt;&lt;P&gt;arm-poky-linux-gnueabi-gcc -mcpu=cortex-a9 -march=armv7-a -mthumb -O2 -Wall&amp;nbsp; -g3 -ggdb -Xlinker --gc-sections -L/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/ -L/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/ -L/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/arm-poky-linux-gnueabi/4.9.2/ -Wl,-Map,"remote_test.map" -v -g3 -o "remote_test"&amp;nbsp; ./src/remote_test.o&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Using built-in specs.&lt;/P&gt;&lt;P&gt;COLLECT_GCC=arm-poky-linux-gnueabi-gcc&lt;/P&gt;&lt;P&gt;COLLECT_LTO_WRAPPER=/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/lto-wrapper&lt;/P&gt;&lt;P&gt;Target: arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;Configured with: /mnt/80G_DRIVE/pheonix/fsl-community-bsp/build/tmp/work-shared/gcc-4.9.2-r0/gcc-4.9.2/configure --build=i686-linux --host=i686-pokysdk-linux --target=arm-poky-linux-gnueabi --prefix=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr --exec_prefix=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr --bindir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --sbindir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --libexecdir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi --datadir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr/share --sysconfdir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/etc --sharedstatedir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/com --localstatedir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/var --libdir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi --includedir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr/include --oldincludedir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr/include --infodir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr/share/info --mandir=/opt/poky/1.8/sysroots/i686-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/mnt/80G_DRIVE/pheonix/fsl-community-bsp/build/tmp/sysroots/i686-nativesdk-pokysdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-gxx-include-dir=/not/exist/usr/include/c++/4.9.2 --with-build-time-tools=/mnt/80G_DRIVE/pheonix/fsl-community-bsp/build/tmp/sysroots/i686-linux/usr/arm-poky-linux-gnueabi/bin --with-sysroot=/not/exist --with-build-sysroot=/mnt/80G_DRIVE/pheonix/fsl-community-bsp/build/tmp/sysroots/imx6sxsabresd --enable-poison-system-directories --with-mpfr=/mnt/80G_DRIVE/pheonix/fsl-community-bsp/build/tmp/sysroots/i686-nativesdk-pokysdk-linux --with-mpc=/mnt/80G_DRIVE/pheonix/fsl-community-bsp/build/tmp/sysroots/i686-nativesdk-pokysdk-linux --enable-nls --with-arch=armv7-a&lt;/P&gt;&lt;P&gt;Thread model: posix&lt;/P&gt;&lt;P&gt;gcc version 4.9.2 (GCC) &lt;/P&gt;&lt;P&gt;COMPILER_PATH=/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/:/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/&lt;/P&gt;&lt;P&gt;LIBRARY_PATH=/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/:/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../lib/arm-poky-linux-gnueabi/gcc/&lt;/P&gt;&lt;P&gt;COLLECT_GCC_OPTIONS='-mcpu=cortex-a9' '-march=armv7-a' '-mthumb' '-O2' '-Wall' '-g3' '-ggdb' '-L/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/' '-L/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/' '-L/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/arm-poky-linux-gnueabi/4.9.2/' '-v' '-g3' '-o' 'remote_test' '-mtls-dialect=gnu'&lt;/P&gt;&lt;P&gt; /mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/collect2 -plugin /mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/liblto_plugin.so -plugin-opt=/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/lto-wrapper -plugin-opt=-fresolution=/tmp/ccMzA6PN.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/not/exist --build-id --eh-frame-hdr --hash-style=gnu -dynamic-linker /lib/ld-linux.so.3 -X -m armelf_linux_eabi -o remote_test crt1.o crti.o crtbegin.o -L/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/ -L/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/ -L/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/arm-poky-linux-gnueabi/4.9.2/ -L/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2 -L/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../lib/arm-poky-linux-gnueabi/gcc --gc-sections -Map remote_test.map ./src/remote_test.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed crtend.o crtn.o&lt;/P&gt;&lt;P&gt;/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find crt1.o: No such file or directory&lt;/P&gt;&lt;P&gt;/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find crti.o: No such file or directory&lt;/P&gt;&lt;P&gt;/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find crtbegin.o: No such file or directory&lt;/P&gt;&lt;P&gt;/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find -lgcc_s&lt;/P&gt;&lt;P&gt;/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find /lib/libc.so.6&lt;/P&gt;&lt;P&gt;/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find /usr/lib/libc_nonshared.a&lt;/P&gt;&lt;P&gt;/mnt/80G_DRIVE/pheonix/fsl-community-bsp/poky/1.8/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find /lib/ld-linux-armhf.so.3&lt;/P&gt;&lt;P&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;make: *** [remote_test] Error 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:18:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiler-options-when-using-SDK-built-from-bitbake-meta/m-p/226066#M16069</guid>
      <dc:creator>hchristo</dc:creator>
      <dc:date>2015-08-27T14:18:20Z</dc:date>
    </item>
  </channel>
</rss>

