fail on yocto build (exit code 1)

Another not so obvious error.

Our build machine is an x86_64 (Ubuntu 16.04 LTS) host with a target of armv7-unknown-linux-gnueabihf (which I do not think that has anything to do with the failure).

Was building our software stack and yocto bailed with this error…

ERROR: Task (virtual:native:/opt/dey-2.2/sources/ib_yocto/meta-ib-rust/recipes-devtools/rust/ failed with exit code '1’

Looking at it appears that it is trying to do either a ‘mkdir & touch’ or an ‘rm’ depending on the yocto mode ( whether do_install_prepend or do_install_append respectively ), and bails at that point. The odd thing is there is no do_compile in the recipe.

Snooping for the cause I noticed …

| /usr/bin/ld: …/…/bin/llvm-dwp: hidden symbol `_ZN4llvm13ARMAsmPrinter28LowerPATCHABLE_FUNCTION_EXITERKNS_12MachineInstrE’ isn’t defined
| /usr/bin/ld: final link failed: Bad value
| collect2: error: ld returned 1 exit status
| tools/llvm-dwp/CMakeFiles/llvm-dwp.dir/build.make:196: recipe for target ‘bin/llvm-dwp’ failed
| make[2]: *** [bin/llvm-dwp] Error 1
| make[2]: Leaving directory '/home/gfine/bi_buildcache/66/tmp/work/x86_64-linux/rust-llvm-native/1.33.0-r0/build’
| CMakeFiles/Makefile2:17468: recipe for target ‘tools/llvm-dwp/CMakeFiles/llvm-dwp.dir/all’ failed
| make[1]: *** [tools/llvm-dwp/CMakeFiles/llvm-dwp.dir/all] Error 2
| make[1]: Leaving directory '/home/gfine/bi_buildcache/66/tmp/work/x86_64-linux/rust-llvm-native/1.33.0-r0/build’
| Makefile:152: recipe for target ‘all’ failed
| make: *** [all] Error 2
| ERROR: Function failed: do_compile (log file is located at /home/gfine/bi_buildcache/66/tmp/work/x86_64-linux/rust-llvm-native/1.33.0-r0/temp/log.do_compile.22093)

Known bug, or an issue to open? Quick fix ?