<?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: ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1725872#M212822</link>
    <description>&lt;P&gt;I think the version for GCC same as guide be better, and the path for clang is not correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Havey&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 03:50:18 GMT</pubDate>
    <dc:creator>Harvey021</dc:creator>
    <dc:date>2023-09-20T03:50:18Z</dc:date>
    <item>
      <title>ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1724448#M212712</link>
      <description>&lt;P&gt;I am trying to compile android&amp;nbsp;&lt;SPAN&gt;13.0.0_1.2.0&lt;/SPAN&gt; for i.mx8m plus board. I executed these commands :&lt;/P&gt;&lt;P&gt;source ./imx-android-13.0.0_1.2.0/imx_android_setup.sh&lt;BR /&gt;source build/envsetup.sh&lt;BR /&gt;lunch evk_8mp-userdebug&lt;BR /&gt;./imx-make.sh kernel -j4 2&amp;gt;&amp;amp;1 | tee build-log.txt&lt;/P&gt;&lt;P&gt;Please check the detail build log info from build-log.txt in the attachment&lt;/P&gt;&lt;P&gt;key error log is：&lt;/P&gt;&lt;P&gt;LTO vmlinux.o&lt;BR /&gt;MODPOST vmlinux.symvers&lt;BR /&gt;MODINFO modules.builtin.modinfo&lt;BR /&gt;GEN modules.builtin&lt;BR /&gt;LD .tmp_vmlinux.btf&lt;BR /&gt;ld.lld: error: undefined symbol: __stack_chk_guard&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; referenced by irq-sun6i-r.c:309 (/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/vendor/nxp-opensource/kernel_imx/drivers/irqchip/irq-sun6i-r.c:309)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; vmlinux.o:(sun6i_r_intc_init)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; referenced by irq-sun6i-r.c:311 (/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/vendor/nxp-opensource/kernel_imx/drivers/irqchip/irq-sun6i-r.c:311)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; vmlinux.o:(sun6i_r_intc_init)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; referenced by irq-sun6i-r.c:0 (/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/vendor/nxp-opensource/kernel_imx/drivers/irqchip/irq-sun6i-r.c:0)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; vmlinux.o:(sun6i_r_intc_init)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; referenced 39331 more times&lt;BR /&gt;BTF .btf.vmlinux.bin.o&lt;BR /&gt;LD .tmp_vmlinux.kallsyms1&lt;BR /&gt;ld.lld: error: undefined symbol: __stack_chk_guard&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; referenced by irq-sun6i-r.c:309 (/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/vendor/nxp-opensource/kernel_imx/drivers/irqchip/irq-sun6i-r.c:309)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; vmlinux.o:(sun6i_r_intc_init)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; referenced by irq-sun6i-r.c:311 (/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/vendor/nxp-opensource/kernel_imx/drivers/irqchip/irq-sun6i-r.c:311)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; vmlinux.o:(sun6i_r_intc_init)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; referenced by irq-sun6i-r.c:0 (/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/vendor/nxp-opensource/kernel_imx/drivers/irqchip/irq-sun6i-r.c:0)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; vmlinux.o:(sun6i_r_intc_init)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; referenced 39331 more times&lt;BR /&gt;make[2]: *** [/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/vendor/nxp-opensource/kernel_imx/Makefile:1277: vmlinux] Error 1&lt;BR /&gt;make[2]: Leaving directory '/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/out/target/product/evk_8mq/obj/KERNEL_OBJ'&lt;BR /&gt;make[1]: *** [Makefile:237: __sub-make] Error 2&lt;BR /&gt;make[1]: Leaving directory '/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/vendor/nxp-opensource/kernel_imx'&lt;BR /&gt;make: *** [/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/device/nxp/common/build/kernel.mk:197: /home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build/out/target/product/evk_8mq/obj/KERNEL_OBJ/arch/arm64/boot/Image.lz4] Error 2&lt;BR /&gt;make: Leaving directory '/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/android_build'&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 06:12:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1724448#M212712</guid>
      <dc:creator>xiayanfire</dc:creator>
      <dc:date>2023-09-18T06:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1725182#M212762</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217338"&gt;@xiayanfire&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the error log, it seems telling compile env on your host not set properly. The steps that you shared look fine, but one might need to confirm the step "1. Prepare the build environment for U-Boot and Linux kernel."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 04:17:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1725182#M212762</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2023-09-19T04:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1725250#M212766</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As the step "1. Prepare the build environment for U-Boot and Linux kernel."&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have set the value of&amp;nbsp;&lt;/SPAN&gt;AARCH64_GCC_CROSS_COMPILE and&amp;nbsp;CLANG_PATH&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AARCH64_GCC_CROSS_COMPILE=/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/tools/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CLANG_PATH=/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/tools/prebuilt-android-clang/linux-x86&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;All the environment value is saved in env.txt in the&amp;nbsp;attachment&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;xiayanfire&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 06:32:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1725250#M212766</guid>
      <dc:creator>xiayanfire</dc:creator>
      <dc:date>2023-09-19T06:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1725872#M212822</link>
      <description>&lt;P&gt;I think the version for GCC same as guide be better, and the path for clang is not correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Havey&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 03:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1725872#M212822</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2023-09-20T03:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1725926#M212827</link>
      <description>&lt;P&gt;I tried &lt;SPAN&gt;the same&amp;nbsp; version for GCC as guide ：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ARCH64_GCC_CROSS_COMPILE=/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/tools/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;it still shows the same error when I compile the kernel。&lt;/P&gt;&lt;P&gt;That is why I wanted to change the version of gcc to&amp;nbsp;&lt;SPAN&gt;gcc-arm-10.3。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Besides， the path of clang(&lt;SPAN&gt;CLANG_PATH=/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/tools/prebuilt-android-clang/linux-x86&lt;/SPAN&gt;) is correct，because I did not rename the path of clang. The detail info of clang is showed as belong：&lt;/P&gt;&lt;P&gt;/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/tools/prebuilt-android-clang/linux-x86$ ls -l&lt;BR /&gt;total 192&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 10907 5月 12 17:31 Android.bp&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 4748 5月 12 17:27 BINUTILS_KERNEL_DEPRECATION.md&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 12581 5月 12 17:31 BUILD.bazel&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 16759 5月 12 17:31 cc_toolchain_config.bzl&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 7534 5月 12 17:31 cc_toolchain_constants.bzl&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 52500 5月 12 17:31 cc_toolchain_features.bzl&lt;BR /&gt;drwxrwxr-x 6 xiayan xiayan 4096 5月 12 17:27 clang-3289846&lt;BR /&gt;drwxrwxr-x 12 xiayan xiayan 4096 5月 12 17:31 clang-r416183b&lt;BR /&gt;drwxrwxr-x 11 xiayan xiayan 4096 5月 12 17:32 clang-r450784d&lt;BR /&gt;drwxrwxr-x 11 xiayan xiayan 4096 5月 12 17:27 clang-r450784e&lt;BR /&gt;drwxrwxr-x 5 xiayan xiayan 4096 5月 12 17:32 clang-stable&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 2467 5月 12 17:27 CleanSpec.mk&lt;BR /&gt;drwxrwxr-x 2 xiayan xiayan 4096 5月 12 17:32 docs&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 1244 5月 12 17:27 GCC_4_9_DEPRECATION.md&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 623 5月 12 17:29 go.mod&lt;BR /&gt;drwxrwxr-x 2 xiayan xiayan 4096 5月 12 17:32 llvm-binutils-stable&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 1277 5月 12 17:27 METADATA&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 377 5月 12 17:27 OWNERS&lt;BR /&gt;drwxrwxr-x 2 xiayan xiayan 4096 5月 12 17:32 profiles&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 12220 5月 12 17:31 README.md&lt;BR /&gt;-rw-rw-r-- 1 xiayan xiayan 7017 5月 12 17:27 RELEASE_NOTES.md&lt;BR /&gt;drwxrwxr-x 2 xiayan xiayan 4096 5月 12 17:32 soong&lt;/P&gt;&lt;P&gt;/home2/xiayan/workspace/leopard/imx-android-13.0.0_1.2.0/tools/prebuilt-android-clang/linux-x86$ git status&lt;BR /&gt;HEAD detached at 0fc0715d9&lt;BR /&gt;nothing to commit, working tree clean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that I had set the correct path of&amp;nbsp;AARCH64_GCC_CROSS_COMPILE and&amp;nbsp;CLANG_PATH。&lt;/P&gt;&lt;P&gt;Is there any other wrong env&amp;nbsp;variant ?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;xiayanfire&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 05:57:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1725926#M212827</guid>
      <dc:creator>xiayanfire</dc:creator>
      <dc:date>2023-09-20T05:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1726141#M212855</link>
      <description>&lt;P&gt;Hope you have followed up the&amp;nbsp;2.1 Setting up your computer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if still problems, would suggest to have clean build.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 08:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1726141#M212855</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2023-09-20T08:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1726174#M212856</link>
      <description>&lt;P&gt;Yes, I have f&lt;SPAN&gt;ollowed up the "2.1 Setting up your computer".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My machine is a x86 physical machine with enough hardware resource.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And I have installed all the packages requested in &lt;SPAN&gt;guide again and again&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But the version of Ubuntu is different, it is&amp;nbsp;20.04.1 64-bit，not&amp;nbsp;18.04 64-bit. Does this have any effect?&lt;/P&gt;&lt;P&gt;I can not change the version of this machine, because many other people need to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;xiayanfire&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 09:12:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1726174#M212856</guid>
      <dc:creator>xiayanfire</dc:creator>
      <dc:date>2023-09-20T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1730190#M213227</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;Is there other suggestion?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 06:27:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1730190#M213227</guid>
      <dc:creator>xiayanfire</dc:creator>
      <dc:date>2023-09-27T06:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: ld.lld: error: undefined symbol: __stack_chk_guard while compiling android 13</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1769673#M216943</link>
      <description>&lt;P&gt;ANDROID_ROOT、CROSS_COMPILE、DISCIMAGE、KERNELDIR was definded with error path。&lt;/P&gt;&lt;P&gt;Problem resolved when I clean them&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 09:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ld-lld-error-undefined-symbol-stack-chk-guard-while-compiling/m-p/1769673#M216943</guid>
      <dc:creator>xiayanfire</dc:creator>
      <dc:date>2023-12-06T09:31:28Z</dc:date>
    </item>
  </channel>
</rss>

