<?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>i.MX Processors中的主题 Re: Yocto Bitbake build errors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Bitbake-build-errors/m-p/1537415#M196351</link>
    <description>&lt;P&gt;Hello, here Jorge.&lt;/P&gt;
&lt;P&gt;The error:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;../MY_Application/version:1:1: error: too many decimal points in number
1 | 0.0.0
| ^~~~~&lt;/LI-CODE&gt;
&lt;P&gt;Seems to be caused from the version that is on EVCC_Application-master\evcc_layers\meta-evccapplication\recipes-core\EVCC_Application\files\EVCC_Application\version&lt;/P&gt;
&lt;P&gt;Try using only one point, for example 0.0&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 01:48:06 GMT</pubDate>
    <dc:creator>JorgeCas</dc:creator>
    <dc:date>2022-10-14T01:48:06Z</dc:date>
    <item>
      <title>Yocto Bitbake build errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Bitbake-build-errors/m-p/1531675#M195910</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a Yocto project with two build types, dev and prod. The dev and prod builds vary in two ways.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The dev build includes&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Extra image features required for debugging
IMAGE_INSTALL_append += " systemd-analyze"
IMAGE_INSTALL_append += " packagegroup-core-eclipse-debug"
IMAGE_INSTALL_append += " debugconfigs"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"&lt;/LI-CODE&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;2. The prod build does not have the debug features but does build my mainapplication.bb&lt;/P&gt;&lt;P&gt;During development I have been building my dev image, installing it on my device then using eclipse to build/debug/deploy my application.&amp;nbsp; When working with eclipse I am cross compiling against the Yocto created SDK in&amp;nbsp;/opt/fsl-imx-fb/5.10-hardknott/.&lt;/P&gt;&lt;P&gt;When I attempt to build for prod I was getting the following two errors:&lt;/P&gt;&lt;PRE&gt;| ../MY_Application/version:&lt;SPAN class=""&gt;1&lt;/SPAN&gt;:&lt;SPAN class=""&gt;1&lt;/SPAN&gt;: &lt;SPAN class=""&gt;error&lt;/SPAN&gt;: too many &lt;SPAN class=""&gt;decimal&lt;/SPAN&gt; points &lt;SPAN class=""&gt;in&lt;/SPAN&gt; number&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;../MY_Application/version:&lt;SPAN class=""&gt;1&lt;/SPAN&gt;:&lt;SPAN class=""&gt;1&lt;/SPAN&gt;: &lt;SPAN class=""&gt;error&lt;/SPAN&gt;: expected unqualified-id before numeric &lt;SPAN class=""&gt;constant&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;Following the stack trace for each error always leads back to the version header file.&lt;/P&gt;&lt;PRE&gt;/home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/c++/version&lt;/PRE&gt;&lt;P&gt;This file is only ever included from the boost libraries. I am using autotools and have attempted editing my Makefile.am and configure.ac files, with no luck. As a last ditch effort I ran&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;bitbake world -c cleanall --continue&lt;/PRE&gt;&lt;P&gt;I then ran my prod bitbake and got a new error.&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;&lt;LI-CODE lang="markup"&gt;| configure: error: source directory already configured; run "make distclean" there first&lt;/LI-CODE&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;Looking at the files date and time of creation I can see that my files are less than 24 hours old and no attempt to "make" the build was performed before this. If I navigate to the build directory and run "make distclean" the command will run an removes build files. Re-running my prod build I then get errors&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;&lt;LI-CODE lang="markup"&gt;In file included from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/config/detail/select_stdlib_config.hpp:24,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/config.hpp:44,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/smart_ptr/bad_weak_ptr.hpp:20,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/smart_ptr/detail/shared_count.hpp:25,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/smart_ptr/shared_ptr.hpp:17,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/shared_ptr.hpp:17,
                 from ../MY_Application/vendor/cml/SMG/trunk/ISO15118_Stack/sources/EV/state/IsoStatesMachine.h:6,
                 from ../MY_Application/include/CML_Integration/cml_integration.hpp:18,
                 from ../MY_Application/src/CML_Integration/cml_integration.cpp:1:
../MY_Application/version:1:1: error: too many decimal points in number
    1 | 0.0.0
      | ^~~~~&lt;/LI-CODE&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;as well as&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;&lt;LI-CODE lang="markup"&gt;In file included from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/config/detail/select_stdlib_config.hpp:24,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/config.hpp:44,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/smart_ptr/bad_weak_ptr.hpp:20,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/smart_ptr/detail/shared_count.hpp:25,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/smart_ptr/shared_ptr.hpp:17,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/boost/shared_ptr.hpp:17,
                 from ../MY_Application/vendor/cml/SMG/trunk/ISO15118_Stack/sources/EV/state/IsoStatesMachine.h:6,
                 from ../MY_Application/include/CML_Integration/cml_integration.hpp:18,
                 from ../MY_Application/src/main.cpp:13:
../MY_Application/version:1:1: error: expected unqualified-id before numeric constant
    1 | 0.0.0
      | ^~~~~&lt;/LI-CODE&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;and&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;&lt;LI-CODE lang="markup"&gt;../MY_Application/version:1:1: error: expected unqualified-id before numeric constant
In file included from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/sys/socket.h:33,
                 from /home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/net/if.h:26,
                 from ../MY_Application/include/comms/CAN/can.h:22,
                 from ../MY_Application/include/comms/UART/uart_handler.h:10,
                 from ../MY_Application/include/CML_Integration/cml_integration.hpp:22,
                 from ../MY_Application/src/CML_Integration/cml_integration.cpp:1:
/home/michael/Documents/MY_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/mainapplication/0.0-r0/recipe-sysroot/usr/include/bits/socket.h:260:5: error: 'socklen_t' does not name a type; did you mean 'locale_t'?
  260 |     socklen_t msg_namelen; /* Length of address data.  */
      |     ^~~~~~~~~
      |     locale_t&lt;/LI-CODE&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;To build my image I have an myapplication.inc which is the bulk of my project. This file includes all of my modules and necessary libraries. In this file I the following:&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;LI-CODE lang="markup"&gt;# Install necessary libraries
IMAGE_INSTALL_append = " packagegroup-core-ssh-openssh \
	openssl \
	can-utils \
	libsocketcan \
	sudo \
	iw wireless-tools wpa-supplicant \
	boost \
	libgpiod \
	lumissil \
	lumissil-kernel-module \
	ethtool \
	tcpdump "

# Install My applications
IMAGE_INSTALL_append = " udevrules \
			myconfigs \
			crccalculator \
			dbcppp "&lt;/LI-CODE&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;When I include mainapplication in the list of&amp;nbsp;# Install My applications I get the errors above. My mainapplication.bb is as follows:&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;LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "\
    file://MY_Application \
        file://services \   
    "

inherit autotools systemd

S = "${WORKDIR}/MY_Application"

DEPENDS += " libsocketcan"
DEPENDS += " boost"
DEPENDS += " dbcppp"

SYSTEMD_SERVICE_${PN} = "myapplication.service"

do_install_append () {
    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${WORKDIR}/services/myapplication.service ${D}${systemd_system_unitdir}
    sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_system_unitdir}/myapplication.service
    
    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/MY_Application/MY_Application ${D}${bindir}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find out why my application refuses to build with the installed boost and libsocketcan/can-utils I have included. Does anyone have any insight?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to be as informative as possible, please let me know if more info is needed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 14:25:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Bitbake-build-errors/m-p/1531675#M195910</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2022-10-03T14:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Bitbake build errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Bitbake-build-errors/m-p/1537414#M196350</link>
      <description>&lt;P&gt;Hello, here Jorge.&lt;/P&gt;&lt;P&gt;Trying to build your project and seeing the output when you run the ''./bitbake_project.sh -b prod'' command, the build stops because you have some not declared variables/functions on the SMG_IsoStatesMachine.cpp file.&lt;/P&gt;&lt;P&gt;The errors occurs on the next lines:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;../EVCC_Application/src/CML_Integration/sources/EV/state/SMG_IsoStatesMachine.cpp: In member function 'int32_t CISO15118StatesMachine::Processing(XEvChargingModel*)':
| ../EVCC_Application/src/CML_Integration/sources/EV/state/SMG_IsoStatesMachine.cpp:146:3: error: 'sleep' was not declared in this scope
| 146 | sleep(1);
| | ^~~~~
| ../EVCC_Application/src/CML_Integration/sources/EV/state/SMG_IsoStatesMachine.cpp:168:4: error: 'close' was not declared in this scope; did you mean 'clone'?
| 168 | close(m_clientStop);
| | ^~~~~
| | clone&lt;/LI-CODE&gt;&lt;P&gt;The error seems to be on your application.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 01:43:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Bitbake-build-errors/m-p/1537414#M196350</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2022-10-14T01:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Bitbake build errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Bitbake-build-errors/m-p/1537415#M196351</link>
      <description>&lt;P&gt;Hello, here Jorge.&lt;/P&gt;
&lt;P&gt;The error:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;../MY_Application/version:1:1: error: too many decimal points in number
1 | 0.0.0
| ^~~~~&lt;/LI-CODE&gt;
&lt;P&gt;Seems to be caused from the version that is on EVCC_Application-master\evcc_layers\meta-evccapplication\recipes-core\EVCC_Application\files\EVCC_Application\version&lt;/P&gt;
&lt;P&gt;Try using only one point, for example 0.0&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 01:48:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Bitbake-build-errors/m-p/1537415#M196351</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2022-10-14T01:48:06Z</dc:date>
    </item>
  </channel>
</rss>

