<?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 Build fail with TIME_BITS=64 flag under imx6 process using mickledore yocto in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Build-fail-with-TIME-BITS-64-flag-under-imx6-process-using/m-p/1763594#M216369</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In Ubuntu 22.04, I can build imx-image-full successfully with below steps under imx6 solo processor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-mickledore -m imx-6.1.36-2.1.0.xml

DISTRO=fsl-imx-fb MACHINE=imx6solosabresd source imx-setup-release.sh -b build

bitbake imx-image-full&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notes: all the steps are&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, I can run the image (including u-boot kernel filesystem) in imx6-solo, but when i change the system time after 2038 year, then the system will hang in the startup of filesystem (but after kenrel startup), so i guess that is classical 2038 year issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Then, i found some info&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/QorIQ/32-bit-arch-ls1021a-y2038-issue-on-yocto-side/m-p/1405744" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/QorIQ/32-bit-arch-ls1021a-y2038-issue-on-yocto-side/m-p/1405744&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;And i add below flag in the local.conf file,&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;TARGET_CPPFLAGS += " -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but build will fail with log&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cortexa9t2hf-neon-poky-linux-gnueabi/v4l-utils/1.23.0+gitAUTOINC+9431e4b26b-r0/recipe-sysroot/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"

|    26 | #   error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The i found in&amp;nbsp;v4l-utils_1.23.0.bb file, there is a comment:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to

# both 32 and 64 bit file APIs.  But it does not handle the time side?

# Needs further investigation

GLIBC_64BIT_TIME_FLAGS = ""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in the lastest yocto in the mainline, the comment is same,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;STRONG&gt;Currently there is no successful build with yocto that fixed 2038 issue in 32-bit platform, right?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If no successful build, maybe i have to find the reason by myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Nov 2023 11:08:46 GMT</pubDate>
    <dc:creator>dannyshi</dc:creator>
    <dc:date>2023-11-26T11:08:46Z</dc:date>
    <item>
      <title>Build fail with TIME_BITS=64 flag under imx6 process using mickledore yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Build-fail-with-TIME-BITS-64-flag-under-imx6-process-using/m-p/1763594#M216369</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In Ubuntu 22.04, I can build imx-image-full successfully with below steps under imx6 solo processor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-mickledore -m imx-6.1.36-2.1.0.xml

DISTRO=fsl-imx-fb MACHINE=imx6solosabresd source imx-setup-release.sh -b build

bitbake imx-image-full&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notes: all the steps are&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, I can run the image (including u-boot kernel filesystem) in imx6-solo, but when i change the system time after 2038 year, then the system will hang in the startup of filesystem (but after kenrel startup), so i guess that is classical 2038 year issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Then, i found some info&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/QorIQ/32-bit-arch-ls1021a-y2038-issue-on-yocto-side/m-p/1405744" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/QorIQ/32-bit-arch-ls1021a-y2038-issue-on-yocto-side/m-p/1405744&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;And i add below flag in the local.conf file,&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;TARGET_CPPFLAGS += " -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but build will fail with log&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cortexa9t2hf-neon-poky-linux-gnueabi/v4l-utils/1.23.0+gitAUTOINC+9431e4b26b-r0/recipe-sysroot/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"

|    26 | #   error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The i found in&amp;nbsp;v4l-utils_1.23.0.bb file, there is a comment:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to

# both 32 and 64 bit file APIs.  But it does not handle the time side?

# Needs further investigation

GLIBC_64BIT_TIME_FLAGS = ""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in the lastest yocto in the mainline, the comment is same,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;STRONG&gt;Currently there is no successful build with yocto that fixed 2038 issue in 32-bit platform, right?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If no successful build, maybe i have to find the reason by myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 11:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Build-fail-with-TIME-BITS-64-flag-under-imx6-process-using/m-p/1763594#M216369</guid>
      <dc:creator>dannyshi</dc:creator>
      <dc:date>2023-11-26T11:08:46Z</dc:date>
    </item>
  </channel>
</rss>

