mraa: Yocto build fails with JavaScript enabled
I am adding mraa to a Yocto build using recipes from intel-iot-middleware layer. This has been working for me (with a bbapend to support builds later than 0.9.6), but with version 0.10.1 I get the following error in do_package_qa
ERROR: QA Issue: package mraa contains bad RPATH /path/to/build/tmp/work/core2-32-poky-linux/mraa/0.10.1-r1/build/src in file /path/to/build/tmp/work/core2-32-poky-linux/mraa/0.10.1-r1/packages-split/mraa/usr/lib/node_modules/mraa/mraa.node [rpaths]
I can see why this is happening by looking at the log.do_compile. You can see that I am targeting Edison, but I would expect the same behavior with any target.
/path/to/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/i586-poky-linux-g++ -fPIC -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/path/to/build/tmp/sysroots/edison -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -shared -o mraa.node CMakeFiles/mraajs.dir/mraajsJAVASCRIPT_wrap.cxx.o ../libmraa.so.0.10.1 -lpthread -ldl -Wl,-rpath,/path/to/build/tmp/work/core2-32-poky-linux/mraa/0.10.1-r1/build/src
Swig and/or cmake is somehow causing insertion of an RPATH. I don’t want to skip QA tests. Does anyone know how to fix this cleanly?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (13 by maintainers)
Merged, thanks!
Ignore this 😃