On 03/06/2018 02:14 PM, Giordon Stark wrote: > Hi Philip, > > That was it indeed! I've gotten it working. I don't see "python-six-native" > as a valid recipe in layers.openembedded.org. Is this a special case or is > there a way to identify these sorts of packages in the future?
The python-six recipe should have a line like: BBCLASSEXTEND = "native" This tells bitbake it can build a native version by doing some tweaks to the toolchain it uses and where to put the output. Philip > > open62541-0.3+git999-r0 do_compile: NOTE: open62541: compiling from > external source tree /local/d4/gstark/poky/build/workspace/sources/open62541 > ERROR: open62541-0.3+git999-r0 do_package: QA Issue: open62541: > Files/directories were installed but not shipped in any package: > /usr/lib/cmake > /usr/lib/cmake/open62541ConfigVersion.cmake > /usr/lib/cmake/open62541Targets.cmake > /usr/lib/cmake/open62541-config.cmake > /usr/lib/cmake/open62541Targets-debug.cmake > Please set FILES such that these items are packaged. Alternatively if they > are unneeded, avoid installing them or delete them within do_install. > open62541: 5 installed and not shipped files. [installed-vs-shipped] > ERROR: open62541-0.3+git999-r0 do_package: Fatal QA errors found, failing > task. > ERROR: open62541-0.3+git999-r0 do_package: Function failed: do_package > ERROR: Logfile of failure stored in: > /local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/temp/log.do_package.14179 > ERROR: Task > (/local/d4/gstark/poky/build/workspace/recipes/open62541/open62541_git.bb:do_package) > failed with exit code '1' > NOTE: Tasks Summary: Attempted 506 tasks of which 492 didn't need to be > rerun and 1 failed. > > Summary: 1 task failed: > /local/d4/gstark/poky/build/workspace/recipes/open62541/open62541_git.bb: > do_package > Summary: There were 3 ERROR messages shown, returning a non-zero exit code. > > > I just need to remind myself of cleaning these files up :) > > Giordon > > On Tue, Mar 6, 2018 at 1:09 PM Philip Balister <phi...@balister.org> wrote: > >> On 03/06/2018 01:42 PM, Burton, Ross wrote: >>> Add DEPENDS=python-six >> >> Maybe: >> >> DEPENDS = "python-six-native" >> >> Philip >> >>> >>> Ross >>> >>> On 6 March 2018 at 18:11, Giordon Stark <kra...@gmail.com> wrote: >>> >>>> Hi all, >>>> >>>> I'm struggling with what should be a simple-ish recipe (I think). I'm >>>> writing a recipe implementation for >> https://github.com/open62541/open62541 >>>> (open62541). So I start with >>>> >>>> devtool add open62541 https://github.com/open62541/open62541.git >>>> >>>> then I edit this, so it currently looks like this for me: >>>> >>>> SUMMARY = "OPC UA implementation" >>>> LICENSE = "MPL-2.0" >>>> LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad" >>>> SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https" >>>> PV = "0.3+git${SRCPV}" >>>> SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e" >>>> >>>> S = "${WORKDIR}/git" >>>> >>>> # NOTE: unable to map the following CMake package dependencies: Check >>>> Sphinx ClangTools LATEX MbedTLS Valgrind >>>> DEPENDS = "openssl" >>>> >>>> inherit cmake pythonnative >>>> >>>> # Specify any options you want to pass to cmake using EXTRA_OECMAKE: >>>> EXTRA_OECMAKE = "" >>>> >>>> however, when I run devtool build open62541, I get errors about "No >>>> module named six": >>>> >>>> | make[2]: Leaving directory '/local/d4/gstark/poky/build/ >>>> >> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999' >>>> | Traceback (most recent call last): >>>> | File "/local/d4/gstark/poky/build/workspace/sources/open62541/ >>>> tools/nodeset_compiler/nodeset_compiler.py", line 27, in <module> >>>> | from nodeset import * >>>> | File "/local/d4/gstark/poky/build/workspace/sources/open62541/ >>>> tools/nodeset_compiler/nodeset.py", line 30, in <module> >>>> | from nodes import * >>>> | File "/local/d4/gstark/poky/build/workspace/sources/open62541/ >>>> tools/nodeset_compiler/nodes.py", line 21, in <module> >>>> | from datatypes import * >>>> | File "/local/d4/gstark/poky/build/workspace/sources/open62541/ >>>> tools/nodeset_compiler/datatypes.py", line 29, in <module> >>>> | import six >>>> | ImportError: No module named six >>>> | CMakeFiles/open62541-generator-namespace.dir/build.make:71: recipe for >>>> target 'src_generated/ua_namespace0.c' failed >>>> | make[2]: *** [src_generated/ua_namespace0.c] Error 1 >>>> | make[2]: Leaving directory '/local/d4/gstark/poky/build/ >>>> >> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999' >>>> | CMakeFiles/Makefile2:108: recipe for target >> 'CMakeFiles/open62541-generator-namespace.dir/all' >>>> failed >>>> | make[1]: *** [CMakeFiles/open62541-generator-namespace.dir/all] Error >> 2 >>>> | make[1]: *** Waiting for unfinished jobs.... >>>> >>>> How do I get "python-six" added as part of pythonnative? >>>> >>>> Giordon >>>> >>>> -- >>>> Giordon Stark >>>> >>>> -- >>>> _______________________________________________ >>>> yocto mailing list >>>> yocto@yoctoproject.org >>>> https://lists.yoctoproject.org/listinfo/yocto >>>> >>>> >>> >>> >>> >> -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto