Yocto INSANE_SKIP ignored - yocto

I've created an npm package recipe for node-red-node-serialport using
devtool add "npm://registry.npmjs.org;package=node-red-node-serialport;version=1.0.1"
The problem is when building I get:
WARNING: node-red-node-serialport-1.0.1-r0 do_compile: Use of configs argument of NpmEnvironment.run() function is deprecated. Please use args argument instead.
WARNING: node-red-node-serialport-1.0.1-r0 do_compile: Use of configs argument of NpmEnvironment.run() function is deprecated. Please use args argument instead.
ERROR: node-red-node-serialport-1.0.1-r0 do_package: QA Issue: File '/usr/lib/node_modules/node-red-node-serialport/node_modules/#serialport/bindings-cpp/prebuilds/android-arm/node.napi.armv7.node' from node-red-node-serialport was already stripped, this will prevent future debugging! [already-stripped]
ERROR: node-red-node-serialport-1.0.1-r0 do_package: QA Issue: File '/usr/lib/node_modules/node-red-node-serialport/node_modules/#serialport/bindings-cpp/prebuilds/android-arm64/node.napi.armv8.node' from node-red-node-serialport was already stripped, this will prevent future debugging! [already-stripped]
ERROR: node-red-node-serialport-1.0.1-r0 do_package: QA Issue: File '/usr/lib/node_modules/node-red-node-serialport/node_modules/#serialport/bindings-cpp/prebuilds/linux-arm/node.napi.armv6.node' from node-red-node-serialport was already stripped, this will prevent future debugging! [already-stripped]
ERROR: node-red-node-serialport-1.0.1-r0 do_package: QA Issue: File '/usr/lib/node_modules/node-red-node-serialport/node_modules/#serialport/bindings-cpp/prebuilds/linux-arm/node.napi.armv7.node' from node-red-node-serialport was already stripped, this will prevent future debugging! [already-stripped]
ERROR: node-red-node-serialport-1.0.1-r0 do_package: QA Issue: File '/usr/lib/node_modules/node-red-node-serialport/node_modules/#serialport/bindings-cpp/prebuilds/linux-arm64/node.napi.armv8.node' from node-red-node-serialport was already stripped, this will prevent future debugging! [already-stripped]
ERROR: node-red-node-serialport-1.0.1-r0 do_package: QA Issue: File '/usr/lib/node_modules/node-red-node-serialport/node_modules/#serialport/bindings-cpp/prebuilds/linux-x64/node.napi.glibc.node' from node-red-node-serialport was already stripped, this will prevent future debugging! [already-stripped]
ERROR: node-red-node-serialport-1.0.1-r0 do_package: QA Issue: File '/usr/lib/node_modules/node-red-node-serialport/node_modules/#serialport/bindings-cpp/prebuilds/linux-x64/node.napi.musl.node' from node-red-node-serialport was already stripped, this will prevent future debugging! [already-stripped]
ERROR: node-red-node-serialport-1.0.1-r0 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/alex/Projects/yocto/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/node-red-node-serialport/1.0.1-r0/temp/log.do_package.75444
ERROR: Task (/home/alex/Projects/yocto/meta-t5/recipes-devtools/node-red-node-serialport/node-red-node-serialport_1.0.1.bb:do_package) failed with exit code '1'
So I've tried to add
INSANE_SKIP_${PN} += "already-stripped"
in the recipe and in a bbappend but I still get the error.

I've found the solution, since I'm using Honister the correct syntax for the ignore command is:
INSANE_SKIP:${PN} += "already-stripped"

Related

Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, In Flutter?

I just added the plugin url_strategy in the pubspec.yaml file. From that movement I'm facing the below errors. After that I removed the 'url_strategy' plugin. Even then the issue still comes. I tried many ways. Tried all solutions on the internt. But no luck.
Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
./../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:11:
Error: Expected ';' after this.
flutter pub upgrade
../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:3:
Error: Type 'flutter' not found.
flutter pub upgrade
../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:196:5:
Error: The getter 'html' isn't defined for the class 'BrowserPlatformLocation'.
- 'BrowserPlatformLocation' is from 'package:flutter_web_plugins/src/navigation/url_strategy.dart'
('../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart').
html.window.addEventListener('popstate', fn);
^^^^
../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:200:31:
Error: 'html.EventListener' can't be used as a type because 'html' doesn't refer to an import prefix.
void removePopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:201:5:
Error: The getter 'html' isn't defined for the class 'BrowserPlatformLocation'.
- 'BrowserPlatformLocation' is from 'package:flutter_web_plugins/src/navigation/url_strategy.dart'
('../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart').
html.window.removeEventListener('popstate', fn);
^^^^

Many errors when migrating from Poky Thud to Dunfell

I upgraded my Yocto environment (Ubuntu 20.04) from version Thud to Dunfell. Suddenly I get lots of similar errors with many packages.
Below an example for "bitbake netcat" (from meta-openembedded layer, Dunfell branch) as well as for Busybox.
In the past I have upgraded Yocto several times, but never experienced this error. Anyone has an idea where this comes from ? Is there maybe an option in local.conf, which I am missing ?
Any suggestions are welcome.
ERROR: netcat-0.7.1-r3 do_package_qa: QA Issue: /usr/bin/netcat contained in package netcat requires ld-linux-armhf.so.3(GLIBC_2.4), but no providers found in RDEPENDS_netcat? [file-rdeps]
ERROR: netcat-0.7.1-r3 do_package_qa: QA Issue: /usr/bin/netcat contained in package netcat requires libc.so.6(GLIBC_2.28), but no providers found in RDEPENDS_netcat? [file-rdeps]
ERROR: netcat-0.7.1-r3 do_package_qa: QA Issue: /usr/bin/netcat contained in package netcat requires libc.so.6(GLIBC_2.15), but no providers found in RDEPENDS_netcat? [file-rdeps]
ERROR: busybox-1.31.1-r0 do_package_qa: QA Issue: /bin/busybox.nosuid contained in package busybox requires libm.so.6(GLIBC_2.4), but no providers found in RDEPENDS_busybox? [file-rdeps]
ERROR: busybox-1.31.1-r0 do_package_qa: QA Issue: /bin/busybox.nosuid contained in package busybox requires libm.so.6(GLIBC_2.29), but no providers found in RDEPENDS_busybox? [file-rdeps]
Either you can skip the QA issue and move ahead by
INSANE_SKIP_${PN} += "file-rdeps"
or just give a try to upgrade the glibc package version as per dunfell release notes.

cmake in vsc doesn't find generator

I need help. I tried everything. I want build a project with cmake in C++ in visual studio code.
I always get this error message.
[variant] Loaded new set of variants
[kit] Successfully loaded 9 kits from C:\Users\beatb\AppData\Local\CMakeTools\cmake-tools-kits.json
[kit] Failed to parse cmake.exe:
SyntaxError: JSON5: invalid character 'M' at 1:1
at syntaxError (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:35543:17)
at invalidChar (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:35488:12)
at Object.value (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:34747:15)
at lex (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:34538:42)
at Object.parse (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:34485:17)
at readKitsFile (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:57032:26)
at async Object.getAdditionalKits (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:57088:48)
at async KitsController.readKits (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:57264:35)
at async Function.init (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:57208:9)
at async Function.init (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:55478:32)
at async CMakeToolsFolderController._addFolder (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:55727:22)
at async CMakeToolsFolderController.loadAllCurrent (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:55679:17)
at async ExtensionManager._init (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:54050:13)
at async Function.create (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:54102:9)
at async setup (c:\Users\beatb\.vscode\extensions\ms-vscode.cmake-tools-1.9.2\dist\main.js:55194:32)
at async Promise.all (index 0)
at async Promise.all (index 100)
at async Promise.all (index 1)
[proc] Executing command: C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -v
[main] Configuring folder: HelloWorld
[proc] Executing command: "C:\Program Files\Cmake\bin\cmake.exe" --no-warn-unused-cli -
DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -
DCMAKE_C_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -
DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-g++.exe -
Hc:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld -
Bc:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld/build -G "MSYS Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Error: CMake was unable to find a build program corresponding to "MSYS
Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
[cmake] CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
[cmake] CMake Error: CMAKE_AR was not found, please set to archive program.
[cmake] -- Configuring incomplete, errors occurred!
[main] Configuring folder: HelloWorld
[proc] Executing command: "C:\Program Files\Cmake\bin\cmake.exe" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-g++.exe -Hc:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld -Bc:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld/build -G "MSYS Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
[cmake] CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
[cmake] -- Configuring incomplete, errors occurred!
[cmake] CMake Error: CMAKE_AR was not found, please set to archive program.
[main] Restarting the CMake driver after a generator change.
[proc] Executing command: C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -v
[cmakefileapi-driver] Removing c:/Users/beatb/OneDrive/Documents/Programmieren/C++/HelloWorld/build/CMakeCache.txt
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
[main] Restarting the CMake driver after a generator change.
[rollbar] Unhandled exception: Unhandled Promise rejection: quickStart Error: No usable generator found. {}
This is the the code in my settings.json
{
"files.autoSave": "afterDelay",
"kite.showWelcomeNotificationOnStartup": false,
"code-runner.executorMap": {
"c": "cd $dir && gcc *.c -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ *.cpp -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
},
"code-runner.runInTerminal": true,
"code-runner.ignoreSelection": true,
"cmake.configureOnOpen": true,
"cmake.cmakePath": "C:\\Program Files\\Cmake\\bin\\cmake.exe",
"cmake.additionalKits": [
"C:\\Program Files\\Cmake\\bin\\cmake.exe"
],
"cmake.generator": "mingw32-make"
}
The compiler I use is mingw. If I use the Visual Studio Build Tool as my kit everything works fine. I just have problems when I use GCC 10.3.0 x86_w64-mingw32.
I hope somebody can help me.
Found the error myself. I had to change the filename "mingw32-make.exe" (in the bin Folder of MinGW) into "make.exe". Now it works perfectly.

Yocto 2.4.2 failed to do_package_qa task

I am working with Yocto project version Rocko 2.4.2, Linux LTS4.4, cortexA15 ARM arch
When I bitbake weston package (v2.0), the error generated
ERROR: weston-2.0.0-r0 do_package_qa: QA Issue: /usr/lib/libweston-2/gl-renderer.so contained in package libweston-2 requires libGLESv2.so, but no providers found in RDEPENDS_libweston-2? [file-rdeps]
ERROR: weston-2.0.0-r0 do_package_qa: QA Issue: /usr/bin/weston-simple-egl contained in package weston-examples requires libGLESv2.so, but no providers found in RDEPENDS_weston-examples? [file-rdeps]
ERROR: weston-2.0.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: weston-2.0.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/server-build/RZG_YoctoProject/build/tmp/work/cortexa15hf-neon-poky-linux-gnueabi/weston/2.0.0-r0/temp/log.do_package_qa.8133
ERROR: Task (/home/server-build/RZG_YoctoProject/build/../poky/meta/recipes-graphics/wayland/weston_2.0.0.bb:do_package_qa) failed with exit code '1'
I tried to set "RDEPENDS_weston-examples = "libGLESv2" but it's still failed.
ERROR: Nothing RPROVIDES 'libGLESv2' (but /home/server-build/RZG_YoctoProject/build/../poky/meta/recipes-graphics/wayland/weston_2.0.0.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'libGLESv2' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libGLESv2']
ERROR: Required build target 'weston' has no buildable providers.
Missing or unbuildable dependency chain was: ['weston', 'libGLESv2']
This error happened due to new structure and syntax of Yocto 2.4.2.
Anyone who is running into the same issue ?
Thanks for any help.

Yocto: oe_runmake failed, iMX6 Apalis

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.