Yocto: oe_runmake failed, iMX6 Apalis - yocto

I'm building a Yocto image for the first time in my life. I have some errors when I run bitbake -k angstrom-lxde-image (the demo Toradex distribution).
First part of the log and second part of the log.
It says a lot of things, e.g.
ERROR: imx-loader-native-git-r1 do_compile: oe_runmake failed
/usr/bin/ld: cannot find -usb-1.0
MAkefile:27: recipe for target 'imx_usb' failed
I found some solution so far, but none of them seems to work...
Do you have any ideas how to resolve this problem?
Thank you in advance.

Related

Target dart2js failed No such file or directory

I am running into an issue where on GH Actions my dart build is failing with lots of lines like
Compiling lib/main.dart for the Web...
Target dart2js failed: Exception: lib/api/file_a.dart:00:0:
Error: Error when reading 'lib/models/file_b.dart': Error reading 'lib/models/file_b.dart' (No such file or directory)
import "/models/file_b.dart";
Posted to answer right away in case it helps someone else.
My issue was because I changed the capitalization of files in git. from /File.dart to /file.dart.
The way to fix this was for each import unable to be found to git mv /File.dart /file.dart

xcode Firebase Crashlytics Command PhaseScriptExecution failed with a nonzero exit code

I have an application that I wrote with swift. I want to see crash reports of the app after the release. I want to add Firebase Crashlytics for this. I do everything in this link. but during compilation i get the following error:
/bin/sh: /Users/durak/Library/Developer/Xcode/DerivedData/Kelimeci-auysdliostxzkgcllzdsmxabridn/Build/Intermediates.noindex/Kelimeci.build/Debug-iphonesimulator/Kelimeci.build/Script-65F1AA5C273CEB5C00F5B530.sh: /bin/shr: bad interpreter: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
I've been searching for hours and can't find a solution. I removed the pod and reinstalled it, still didn't work. What is the problem, where am I going wrong?
xcode 12.5
I have the same problem.
In my situation because I use nvm and node version 16.13.1 when I change the version to 16.6.0 it fixes the problem.
nvm alias default 16.6.0

compiling and linking is not working ubuntu 17.10/clang

I am unable to link and compile the AWS SDK with the following link error:
/usr/bin/ld: CMakeFiles/ns_api.dir/src/main.cpp.o: undefined
reference to symbol '_ZN3Aws4FreeEPv'
/usr/bin/ld: //deps/aws_sdk/aws-cpp-sdk-core/libaws-cpp-sdk-
core.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/ns_api.dir/build.make:95: ns_api] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/ns_api.dir/all]
Error 2
make: *** [Makefile:84: all] Error 2
Additionally, it seems that I need to specify the build directory with aws-sdk-cpp_DIR even though I did a make install - should this not have placed the lib in the systems lib dir?
I installed the package as follows:
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING="FALSE" -DBUILD_ONLY="s3" . && make install -j8
I am under the impression that this issue should not be present given I following the install instructions exactly within an isolated ubuntu environment
Please advise
Thank you very much!
Wanted to follow up here with my own answer:
target_link_libraries( ... aws-cpp-sdk-core aws-cpp-sdk-s3 ... )
was required in my cmake file
adding the core lib for the linker was not required in other installations, so this a ton of caused confusion on my end.

Yocto: oe_runmake failed, error in do_compile from bitbake image

I'm building yocto image and a newbie for this.
I'm having an error when I type bitbake piflo command (piflo is my image name) like shown figure below:
It says ERROR: batctl-2017.1-r0 do_compile: oe_runmake failed and also says pkg-config not found. from makefile.
I found some solutions from web and tried, but it gave me same error as figure above.
It was building OK but after getting new batctl and batman-adv it fails building.
Does anybody have an idea for this?
Please help me out here.
If needs more information or code, I will EDIT.
Thanks in advance.
Sounds like a broken package. First things first, try cleaning it and rebuilding
bitbake -c cleanall batctl
bitbake -c cleanall batman-adv
bitbake batman-adv
bitbake batctl
Also, do you actually need those packages? If not just remove them by adding to your local.conf
IMAGE_INSTALL_remove = " batctl batman-adv "
Yes, like you just found out, you need to add pkg-config to your recipe's DEPENDS.
In earlier OpenEmbedded (Yocto) it often worked out anyway, as some other recipe had pkg-config in its DEPENDS. However, from the Pyro release, each recipe gets it's own sysroot; thus, you have to explicitly add everything that the recipe needs to it's DEPENDS. This is done to improve determinism in the builds.

do_rootfs failed while installing gstreamer-1.0 packages

I am facing do_rootfs failed while I am installing the package using yocto in final image. Tried options like INHIBIT_PACKAGE_STRIP but to of no use.
How can I force do_rootfs to execute is there any option.
You have not provided nearly enough information for anyone to help you. For example, what failed? What was/were the error message(s). INHIBIT_PACKAGE_STRIP likely has nothing to do with your failure. You could also join #yocto or the yocto-related mail list as an alternative to posting here.