<?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: linux-qoriq LSDK 1812 build failed by gcc8 in QorIQ</title>
    <link>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/1318885#M10432</link>
    <description>&lt;P&gt;编译到最后一步了，无法make成功。源码是不是不完整&lt;BR /&gt;LD [M] drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.o&lt;BR /&gt;AR drivers/net/wireless/built-in.o&lt;BR /&gt;AR drivers/net/built-in.o&lt;BR /&gt;make[3]: *** [/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/Makefile:1040: drivers] Error 2&lt;BR /&gt;make[3]: Leaving directory '/media/OK10xx-linux-fs/flexbuild/build/linux/linux/arm64/output'&lt;BR /&gt;make[2]: *** [Makefile:146: sub-make] Error 2&lt;BR /&gt;make[2]: Leaving directory '/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel'&lt;BR /&gt;make[1]: *** [Makefile:25: build-linux] Error 2&lt;BR /&gt;make[1]: Leaving directory '/media/OK10xx-linux-fs/flexbuild/packages/linux'&lt;BR /&gt;make: *** [Makefile:24: linux] Error 2&lt;BR /&gt;make: Leaving directory '/media/OK10xx-linux-fs/flexbuild'&lt;/P&gt;&lt;P&gt;往上查找有下面错误&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:415:1: error: alignment 1 of ‘struct qm_eqcr_entry’ is less than 8 [-Werror=packed-not-aligned]&lt;BR /&gt;415 | } __packed;&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:469:3: error: alignment 1 of ‘struct &amp;lt;anonymous&amp;gt;’ is less than 8 [-Werror=packed-not-aligned]&lt;BR /&gt;469 | } __packed ern;&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:468:17: error: ‘fd’ offset 15 in ‘struct &amp;lt;anonymous&amp;gt;’ isn’t aligned to 8 [-Werror=packed-not-aligned]&lt;BR /&gt;468 | struct qm_fd fd;&lt;BR /&gt;| ^~&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:486:3: error: alignment 1 of ‘struct &amp;lt;anonymous&amp;gt;’ is less than 8 [-Werror=packed-not-aligned]&lt;BR /&gt;486 | } __packed dcern;&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:485:17: error: ‘fd’ offset 15 in ‘struct &amp;lt;anonymous&amp;gt;’ isn’t aligned to 8 [-Werror=packed-not-aligned]&lt;BR /&gt;485 | struct qm_fd fd;&lt;BR /&gt;| ^~&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:1679:1: error: alignment 1 of ‘struct qm_mcr_ceetm_cq_peek_pop_xsfdrread’ is less than 8 [-Werror=packed-not-aligne&lt;BR /&gt;]&lt;BR /&gt;1679 | } __packed;&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:1677:15: error: ‘fd’ offset 14 in ‘struct qm_mcr_ceetm_cq_peek_pop_xsfdrread’ isn’t aligned to 8 [-Werror=packed-not-aligned]&lt;BR /&gt;1677 | struct qm_fd fd;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;打完0001-To-fix-build-error-for-gcc8.patch补丁后，重新编译还是报错gned pointer value [-Werror=address-of-packed-member]&lt;BR /&gt;965 | &amp;amp;mcr-&amp;gt;querycongestion.state, &amp;amp;p-&amp;gt;cgrs[0]);&lt;BR /&gt;| ^~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;CC drivers/usb/core/message.o&lt;BR /&gt;In file included from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/byteorder/little_endian.h:5,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/arch/arm64/include/uapi/asm/byteorder.h:23,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/asm-generic/bitops/le.h:6,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/arch/arm64/include/asm/bitops.h:50,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/bitops.h:38,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/kernel.h:11,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/dpa_sys.h:35,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_private.h:32,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_low.h:32,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:32:&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c: In function ‘qman_query_cgr’:&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2255:17: error: taking address of packed member of ‘struct qm_mcr_querycgr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]&lt;BR /&gt;2255 | be32_to_cpus(&amp;amp;cgrd-&amp;gt;cscn_targ_swp);&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/uapi/linux/byteorder/little_endian.h:101:38: note: in definition of macro ‘__be32_to_cpus’&lt;BR /&gt;101 | #define __be32_to_cpus(x) __swab32s((x))&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2255:4: note: in expansion of macro ‘be32_to_cpus’&lt;BR /&gt;2255 | be32_to_cpus(&amp;amp;cgrd-&amp;gt;cscn_targ_swp);&lt;BR /&gt;| ^~~~~~~~~~~~&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c: In function ‘qman_query_congestion’:&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2287:17: error: taking address of packed member of ‘struct qm_mcr_querycongestion’ may result in an unaligned pointer value [-Werror=address-of-packed-member]&lt;BR /&gt;2287 | be32_to_cpus(&amp;amp;congestion-&amp;gt;state.__state);&lt;BR /&gt;编译脚本：&lt;BR /&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;current_path=$PWD&lt;BR /&gt;work_path=$PWD/flexbuild&lt;/P&gt;&lt;P&gt;cd $work_path &amp;amp;&amp;amp; \&lt;BR /&gt;. setup.env &amp;amp;&amp;amp; \&lt;BR /&gt;#flex-builder -i clean-apps &amp;amp;&amp;amp; \&lt;BR /&gt;flex-builder clean &amp;amp;&amp;amp; \&lt;BR /&gt;#flex-builder -c linux -a arm6&lt;BR /&gt;#flex-builder -c linux:custom&lt;BR /&gt;flex-builder -a arm64 -m ls1046ardb -S 1133&lt;/P&gt;&lt;P&gt;#cp -fr $work_path/build/images/* $current_path/Image_output&lt;/P&gt;&lt;P&gt;cd $current_path&lt;/P&gt;&lt;P&gt;操作系统：UBUNTU20.4 in windows10 subsystem&lt;/P&gt;&lt;P&gt;原始文件包OK10xx-linux-fs.tar.bz2&lt;/P&gt;&lt;P&gt;时间比较着急，没时间慢慢debug&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 09:10:13 GMT</pubDate>
    <dc:creator>末班车上的乘客</dc:creator>
    <dc:date>2021-08-05T09:10:13Z</dc:date>
    <item>
      <title>linux-qoriq LSDK 1812 build failed by gcc8</title>
      <link>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/867412#M7549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried build kernel(lsdk 1812) by gcc8 for ls1046a, and got error message as following. Is there any patch to fix this issue?&lt;/P&gt;&lt;P&gt;-------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;from drivers/staging/fsl_qbman/dpa_alloc.c:32:&lt;/P&gt;&lt;P&gt;./include/linux/fsl_qman.h:415:1: error: alignment 1 of ‘struct qm_eqcr_entry’ is less than 8 [-Werror=packed-not-aligned]&amp;nbsp; } __packed;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;./include/linux/fsl_qman.h:469:3: error: alignment 1 of ‘struct &amp;lt;anonymous&amp;gt;’ is less than 8 [-Werror=packed-not-aligned]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; } __packed ern;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;./include/linux/fsl_qman.h:468:17: error: ‘fd’ offset 15 in ‘struct &amp;lt;anonymous&amp;gt;’ isn’t aligned to 8&amp;nbsp; -Werror=packed-not-aligned]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct qm_fd fd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^~&lt;/P&gt;&lt;P&gt;./include/linux/fsl_qman.h:486:3: error: alignment 1 of ‘struct &amp;lt;anonymous&amp;gt;’ is less than 8 [-Werror=packed-not-aligned]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; } __packed dcern;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;./include/linux/fsl_qman.h:485:17: error: ‘fd’ offset 15 in ‘struct &amp;lt;anonymous&amp;gt;’ isn’t aligned to 8&amp;nbsp; -Werror=packed-not-aligned]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct qm_fd fd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^~&lt;/P&gt;&lt;P&gt;./include/linux/fsl_qman.h:1679:1: error: alignment 1 of ‘struct qm_mcr_ceetm_cq_peek_pop_xsfdrread’ is less than 8 [-Werror=packed-not-aligned]&amp;nbsp; } __packed;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;./include/linux/fsl_qman.h:1677:15: error: ‘fd’ offset 14 in ‘struct qm_mcr_ceetm_cq_peek_pop_xsfdrread’ isn’t aligned to 8 [-Werror=packed-not-aligned]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drivers/staging/fsl_qbman/qman_config.c:815:29: error: bitwise comparison always evaluates to false [-Werror=tautological-compare]&lt;BR /&gt; if ((qman_ip_rev &amp;amp; 0xFF00) == QMAN_REV31) {&lt;BR /&gt; ^~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refreence to&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A href="http://patchwork.dpdk.org/patch/39666/"&gt;http://patchwork.dpdk.org/patch/39666/&lt;/A&gt;&amp;nbsp;, I made a patch 0001-To-fix-build-error-for-gcc8.patch.&amp;nbsp;Although build error is gone, but board can't start.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 03:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/867412#M7549</guid>
      <dc:creator>leimaohui</dc:creator>
      <dc:date>2019-01-11T03:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: linux-qoriq LSDK 1812 build failed by gcc8</title>
      <link>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/867413#M7550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Use the following commands sequence for installing and building this LSDK under Ubuntu 18.04 64bit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;$ tar xvzf flexbuild_lsdk1812.tgz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;$ cd flexbuild_lsdk1812.tgz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;$ source setup.env&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Fapp_components_LS_arm64.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/app_components_LS_arm64.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Fapp_components_LS_arm32.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/app_components_LS_arm32.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Fbootpartition_LS_arm64_lts_4.14.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/bootpartition_LS_arm64_lts_4.14.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Fbootpartition_LS_arm32_lts_4.14.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/bootpartition_LS_arm32_lts_4.14.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Fbootpartition_LS_arm64_lts_4.9.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/bootpartition_LS_arm64_lts_4.9.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Fbootpartition_LS_arm32_lts_4.9.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/bootpartition_LS_arm32_lts_4.9.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Flib_modules_LS_arm64_4.14.83.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/lib_modules_LS_arm64_4.14.83.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Flib_modules_LS_arm32_4.14.83.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/lib_modules_LS_arm32_4.14.83.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Flib_modules_LS_arm64_4.9.140.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/lib_modules_LS_arm64_4.9.140.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN&gt;wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk1812%2Flib_modules_LS_arm32_4.9.140.tgz" rel="nofollow" target="_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1812/lib_modules_LS_arm32_4.9.140.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;flex-builder -i mkrfs -a arm64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;tar xvzf app_components_LS_arm64.tgz -C build/apps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;sudo tar xvzf lib_modules_LS_arm64_4.14.83.tgz -C build/rfs/rootfs_ubuntu_bionic_LS_arm64/lib/modules&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;sudo tar xvzf lib_modules_LS_arm64_4.9.140.tgz -C build/rfs/rootfs_ubuntu_bionic_LS_arm64/lib/modules&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;flex-builder -c linux -a arm64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;flex-builder -i merge-component -a arm64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;flex-builder -i compressrfs -a arm64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;flex-builder -c linux:custom -a arm64 -m ls1046ardb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // kernel menu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;flex-builder -c linux -a arm64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;flex-builder -i mklinux -a arm64 // .itb file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;flex-builder -i mkfw -m ls1046ardb -b sd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // .img file is result of this command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 05:22:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/867413#M7550</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-01-14T05:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: linux-qoriq LSDK 1812 build failed by gcc8</title>
      <link>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/867414#M7551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply. But as I know, the gcc of Ubuntu 18.04 is gcc7. I have&amp;nbsp;confirmed&amp;nbsp;that&amp;nbsp;there is no problem by gcc7 build from Poky 2.5. I met this issue by gcc8 that build from Poky 2.6.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 01:41:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/867414#M7551</guid>
      <dc:creator>leimaohui</dc:creator>
      <dc:date>2019-01-15T01:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: linux-qoriq LSDK 1812 build failed by gcc8</title>
      <link>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/867415#M7552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;noticed meta-freescale has submit a patch named&amp;nbsp;0001-fix-gcc8-build-error.patch has fixed thid build error by disable align check. Yes, it does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff --git a/Makefile b/Makefile&lt;BR /&gt;index d6db01a..85d9d6c 100644&lt;BR /&gt;--- a/Makefile&lt;BR /&gt;+++ b/Makefile&lt;BR /&gt;@@ -422,6 +422,8 @@ LINUXINCLUDE := \&lt;BR /&gt; KBUILD_AFLAGS := -D__ASSEMBLY__&lt;BR /&gt; KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-fno-strict-aliasing -fno-common -fshort-wchar \&lt;BR /&gt;+&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -Wno-packed-not-aligned \&lt;BR /&gt;+&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-Wno-tautological-compare \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-Werror-implicit-function-declaration \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-Wno-format-security \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-std=gnu89&lt;BR /&gt;--&lt;BR /&gt;1.8.3.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 06:25:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/867415#M7552</guid>
      <dc:creator>leimaohui</dc:creator>
      <dc:date>2019-01-22T06:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: linux-qoriq LSDK 1812 build failed by gcc8</title>
      <link>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/1318885#M10432</link>
      <description>&lt;P&gt;编译到最后一步了，无法make成功。源码是不是不完整&lt;BR /&gt;LD [M] drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.o&lt;BR /&gt;AR drivers/net/wireless/built-in.o&lt;BR /&gt;AR drivers/net/built-in.o&lt;BR /&gt;make[3]: *** [/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/Makefile:1040: drivers] Error 2&lt;BR /&gt;make[3]: Leaving directory '/media/OK10xx-linux-fs/flexbuild/build/linux/linux/arm64/output'&lt;BR /&gt;make[2]: *** [Makefile:146: sub-make] Error 2&lt;BR /&gt;make[2]: Leaving directory '/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel'&lt;BR /&gt;make[1]: *** [Makefile:25: build-linux] Error 2&lt;BR /&gt;make[1]: Leaving directory '/media/OK10xx-linux-fs/flexbuild/packages/linux'&lt;BR /&gt;make: *** [Makefile:24: linux] Error 2&lt;BR /&gt;make: Leaving directory '/media/OK10xx-linux-fs/flexbuild'&lt;/P&gt;&lt;P&gt;往上查找有下面错误&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:415:1: error: alignment 1 of ‘struct qm_eqcr_entry’ is less than 8 [-Werror=packed-not-aligned]&lt;BR /&gt;415 | } __packed;&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:469:3: error: alignment 1 of ‘struct &amp;lt;anonymous&amp;gt;’ is less than 8 [-Werror=packed-not-aligned]&lt;BR /&gt;469 | } __packed ern;&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:468:17: error: ‘fd’ offset 15 in ‘struct &amp;lt;anonymous&amp;gt;’ isn’t aligned to 8 [-Werror=packed-not-aligned]&lt;BR /&gt;468 | struct qm_fd fd;&lt;BR /&gt;| ^~&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:486:3: error: alignment 1 of ‘struct &amp;lt;anonymous&amp;gt;’ is less than 8 [-Werror=packed-not-aligned]&lt;BR /&gt;486 | } __packed dcern;&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:485:17: error: ‘fd’ offset 15 in ‘struct &amp;lt;anonymous&amp;gt;’ isn’t aligned to 8 [-Werror=packed-not-aligned]&lt;BR /&gt;485 | struct qm_fd fd;&lt;BR /&gt;| ^~&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:1679:1: error: alignment 1 of ‘struct qm_mcr_ceetm_cq_peek_pop_xsfdrread’ is less than 8 [-Werror=packed-not-aligne&lt;BR /&gt;]&lt;BR /&gt;1679 | } __packed;&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:1677:15: error: ‘fd’ offset 14 in ‘struct qm_mcr_ceetm_cq_peek_pop_xsfdrread’ isn’t aligned to 8 [-Werror=packed-not-aligned]&lt;BR /&gt;1677 | struct qm_fd fd;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;打完0001-To-fix-build-error-for-gcc8.patch补丁后，重新编译还是报错gned pointer value [-Werror=address-of-packed-member]&lt;BR /&gt;965 | &amp;amp;mcr-&amp;gt;querycongestion.state, &amp;amp;p-&amp;gt;cgrs[0]);&lt;BR /&gt;| ^~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;CC drivers/usb/core/message.o&lt;BR /&gt;In file included from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/byteorder/little_endian.h:5,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/arch/arm64/include/uapi/asm/byteorder.h:23,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/asm-generic/bitops/le.h:6,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/arch/arm64/include/asm/bitops.h:50,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/bitops.h:38,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/kernel.h:11,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/dpa_sys.h:35,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_private.h:32,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_low.h:32,&lt;BR /&gt;from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:32:&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c: In function ‘qman_query_cgr’:&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2255:17: error: taking address of packed member of ‘struct qm_mcr_querycgr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]&lt;BR /&gt;2255 | be32_to_cpus(&amp;amp;cgrd-&amp;gt;cscn_targ_swp);&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/uapi/linux/byteorder/little_endian.h:101:38: note: in definition of macro ‘__be32_to_cpus’&lt;BR /&gt;101 | #define __be32_to_cpus(x) __swab32s((x))&lt;BR /&gt;| ^&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2255:4: note: in expansion of macro ‘be32_to_cpus’&lt;BR /&gt;2255 | be32_to_cpus(&amp;amp;cgrd-&amp;gt;cscn_targ_swp);&lt;BR /&gt;| ^~~~~~~~~~~~&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c: In function ‘qman_query_congestion’:&lt;BR /&gt;/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2287:17: error: taking address of packed member of ‘struct qm_mcr_querycongestion’ may result in an unaligned pointer value [-Werror=address-of-packed-member]&lt;BR /&gt;2287 | be32_to_cpus(&amp;amp;congestion-&amp;gt;state.__state);&lt;BR /&gt;编译脚本：&lt;BR /&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;current_path=$PWD&lt;BR /&gt;work_path=$PWD/flexbuild&lt;/P&gt;&lt;P&gt;cd $work_path &amp;amp;&amp;amp; \&lt;BR /&gt;. setup.env &amp;amp;&amp;amp; \&lt;BR /&gt;#flex-builder -i clean-apps &amp;amp;&amp;amp; \&lt;BR /&gt;flex-builder clean &amp;amp;&amp;amp; \&lt;BR /&gt;#flex-builder -c linux -a arm6&lt;BR /&gt;#flex-builder -c linux:custom&lt;BR /&gt;flex-builder -a arm64 -m ls1046ardb -S 1133&lt;/P&gt;&lt;P&gt;#cp -fr $work_path/build/images/* $current_path/Image_output&lt;/P&gt;&lt;P&gt;cd $current_path&lt;/P&gt;&lt;P&gt;操作系统：UBUNTU20.4 in windows10 subsystem&lt;/P&gt;&lt;P&gt;原始文件包OK10xx-linux-fs.tar.bz2&lt;/P&gt;&lt;P&gt;时间比较着急，没时间慢慢debug&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 09:10:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/linux-qoriq-LSDK-1812-build-failed-by-gcc8/m-p/1318885#M10432</guid>
      <dc:creator>末班车上的乘客</dc:creator>
      <dc:date>2021-08-05T09:10:13Z</dc:date>
    </item>
  </channel>
</rss>

