<?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: Jailhouse Compile Error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Jailhouse-Compile-Error/m-p/1985772#M230355</link>
    <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I found and commented "-Werror" in tools/Makefile&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;DIV&gt;KBUILD_CFLAGS := -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-Wall -Wextra -Wmissing-declarations -Wmissing-prototypes \ # -Werror \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-D__LINUX_COMPILER_TYPES_H \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-DJAILHOUSE_VERSION=\"$(shell cat $(src)/../VERSION)\" $(EXTRA_CFLAGS)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;But now I get another error:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Your configuration files at build-imx8mpevk-bm have not been touched.&lt;BR /&gt;meta-freescale directory found&lt;BR /&gt;warning: the compiler differs from the one used to build the kernel&lt;BR /&gt;The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0&lt;BR /&gt;You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0&lt;BR /&gt;UPD /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/include/generated/version.h&lt;BR /&gt;CC [M] /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/driver/main.o&lt;BR /&gt;LD [M] /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/driver/jailhouse.o&lt;BR /&gt;CC /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/setup.o&lt;BR /&gt;LD /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/hypervisor-amd.o&lt;BR /&gt;OBJCOPY /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/jailhouse-amd.bin&lt;BR /&gt;LD /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/hypervisor-intel.o&lt;BR /&gt;OBJCOPY /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/jailhouse-intel.bin&lt;BR /&gt;CC /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.o&lt;BR /&gt;/home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.c: In function ‘main’:&lt;BR /&gt;/home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.c:581:58: error: ‘JAILHOUSE_VERSION’ undeclared (first use in this function); did you mean ‘JAILHOUSE_DEVICE’?&lt;BR /&gt;581 | printf("Jailhouse management tool %s\n", JAILHOUSE_VERSION);&lt;BR /&gt;| ^~~~~~~~~~~~~~~~~&lt;BR /&gt;| JAILHOUSE_DEVICE&lt;BR /&gt;/home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.c:581:58: note: each undeclared identifier is reported only once for each function it appears in&lt;BR /&gt;make[3]: *** [scripts/Makefile.build:243: /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.o] Error 1&lt;BR /&gt;make[2]: *** [scripts/Makefile.build:481: /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools] Error 2&lt;BR /&gt;make[1]: *** [Makefile:1925: /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse] Error 2&lt;BR /&gt;make: *** [Makefile:40: modules] Error 2&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Jailhouse options in menuconfige:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Majidbahmani_0-1730404367520.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/307978i317161D44D16D3D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Majidbahmani_0-1730404367520.png" alt="Majidbahmani_0-1730404367520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 19:53:37 GMT</pubDate>
    <dc:creator>Majidbahmani</dc:creator>
    <dc:date>2024-10-31T19:53:37Z</dc:date>
    <item>
      <title>Jailhouse Compile Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Jailhouse-Compile-Error/m-p/1984760#M230295</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hope you are all doing well.&lt;/P&gt;&lt;P&gt;I have bitbaked "nxp-image-real-time-edge" yocto project for IMX8MP. and build Jailhouse repository by devtool. However, when I compile the Jaihouse, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xxx@LinuxForiMX:~/nxp/Repositories/Jailhouse/imx-jailhouse$ make&lt;BR /&gt;warning: the compiler differs from the one used to build the kernel&lt;BR /&gt;The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0&lt;BR /&gt;You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0&lt;BR /&gt;MODPOST /home/xxx/nxp/Repositories/Jailhouse/imx-jailhouse/Module.symvers&lt;BR /&gt;&lt;STRONG&gt;ERROR: modpost: "ioremap_page_range"&lt;/STRONG&gt; [/home/xxx/nxp/Repositories/Jailhouse/imx-jailhouse/driver/jailhouse.ko] &lt;STRONG&gt;undefined!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: modpost: "__get_vm_area_caller"&lt;/STRONG&gt; [/home/xxx/nxp/Repositories/Jailhouse/imx-jailhouse/driver/jailhouse.ko] &lt;STRONG&gt;undefined!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: modpost: "lapic_timer_period"&lt;/STRONG&gt; [/home/xxx/nxp/Repositories/Jailhouse/imx-jailhouse/driver/jailhouse.ko] &lt;STRONG&gt;undefined!&lt;/STRONG&gt;&lt;BR /&gt;make[2]: *** [scripts/Makefile.modpost:145: /home/xxx/nxp/Repositories/Jailhouse/imx-jailhouse/Module.symvers] Error 1&lt;BR /&gt;make[1]: *** [Makefile:1877: modpost] Error 2&lt;BR /&gt;make: *** [Makefile:40: modules] Error 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to resolve this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 13:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Jailhouse-Compile-Error/m-p/1984760#M230295</guid>
      <dc:creator>Majidbahmani</dc:creator>
      <dc:date>2024-10-30T13:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Jailhouse Compile Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Jailhouse-Compile-Error/m-p/1985594#M230335</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This t’s a compilation error. Take a look here: &lt;A class="inline-onebox" href="https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html" target="_blank"&gt;Warning Options (Using the GNU Compiler Collection (GCC)) &lt;SPAN class="badge badge-notification clicks" title="4 clics"&gt;4&lt;/SPAN&gt;&lt;/A&gt; for what &lt;CODE&gt;array-bounds&lt;/CODE&gt; implies.&lt;/P&gt;
&lt;P&gt;Can you tell us what compilation flags you are using? It should be a warning but you’ve got some flags enabled that convert warnings to errors (&lt;CODE&gt;-Werror&lt;/CODE&gt; etc.)&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 14:11:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Jailhouse-Compile-Error/m-p/1985594#M230335</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-10-31T14:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Jailhouse Compile Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Jailhouse-Compile-Error/m-p/1985772#M230355</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I found and commented "-Werror" in tools/Makefile&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;DIV&gt;KBUILD_CFLAGS := -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-Wall -Wextra -Wmissing-declarations -Wmissing-prototypes \ # -Werror \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-D__LINUX_COMPILER_TYPES_H \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-DJAILHOUSE_VERSION=\"$(shell cat $(src)/../VERSION)\" $(EXTRA_CFLAGS)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;But now I get another error:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Your configuration files at build-imx8mpevk-bm have not been touched.&lt;BR /&gt;meta-freescale directory found&lt;BR /&gt;warning: the compiler differs from the one used to build the kernel&lt;BR /&gt;The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0&lt;BR /&gt;You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0&lt;BR /&gt;UPD /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/include/generated/version.h&lt;BR /&gt;CC [M] /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/driver/main.o&lt;BR /&gt;LD [M] /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/driver/jailhouse.o&lt;BR /&gt;CC /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/setup.o&lt;BR /&gt;LD /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/hypervisor-amd.o&lt;BR /&gt;OBJCOPY /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/jailhouse-amd.bin&lt;BR /&gt;LD /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/hypervisor-intel.o&lt;BR /&gt;OBJCOPY /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/hypervisor/jailhouse-intel.bin&lt;BR /&gt;CC /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.o&lt;BR /&gt;/home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.c: In function ‘main’:&lt;BR /&gt;/home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.c:581:58: error: ‘JAILHOUSE_VERSION’ undeclared (first use in this function); did you mean ‘JAILHOUSE_DEVICE’?&lt;BR /&gt;581 | printf("Jailhouse management tool %s\n", JAILHOUSE_VERSION);&lt;BR /&gt;| ^~~~~~~~~~~~~~~~~&lt;BR /&gt;| JAILHOUSE_DEVICE&lt;BR /&gt;/home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.c:581:58: note: each undeclared identifier is reported only once for each function it appears in&lt;BR /&gt;make[3]: *** [scripts/Makefile.build:243: /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools/jailhouse.o] Error 1&lt;BR /&gt;make[2]: *** [scripts/Makefile.build:481: /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse/tools] Error 2&lt;BR /&gt;make[1]: *** [Makefile:1925: /home/xxx/nxp/RT/yocto-real-time-edge/build-imx8mpevk-bm/workspace/sources/jailhouse] Error 2&lt;BR /&gt;make: *** [Makefile:40: modules] Error 2&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Jailhouse options in menuconfige:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Majidbahmani_0-1730404367520.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/307978i317161D44D16D3D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Majidbahmani_0-1730404367520.png" alt="Majidbahmani_0-1730404367520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 19:53:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Jailhouse-Compile-Error/m-p/1985772#M230355</guid>
      <dc:creator>Majidbahmani</dc:creator>
      <dc:date>2024-10-31T19:53:37Z</dc:date>
    </item>
  </channel>
</rss>

