recipe for target 'arch/arm64/boot/dts/qcom/msm8917-pmi8937-qrd-sku5.dtb' failed - device-tree

I am getting the following exception while building the recovery for a lineageos project and need some help diagnosing and resolving the issue:
ERROR (phandle_references): Reference to non-existent node or label "smb_int_default"
ERROR (phandle_references): Reference to non-existent node or label "gpio_led_off"
ERROR: Input tree has errors, aborting (use -f to force output)
scripts/Makefile.lib:292: recipe for target 'arch/arm64/boot/dts/qcom/msm8917-pmi8937-qrd-sku5.dtb' failed
make[3]: *** [arch/arm64/boot/dts/qcom/msm8917-pmi8937-qrd-sku5.dtb] Error 2
make[3]: *** Waiting for unfinished jobs....
CC drivers/media/platform/msm/camera_v2/isp/msm_isp40.o
CC drivers/media/platform/msm/camera_v2/jpeg_10/msm_jpeg_hw.o
CC drivers/media/radio/radio-iris.o
LD drivers/media/platform/msm/camera_v2/msm_vb2/built-in.o
CC drivers/media/platform/msm/camera_v2/jpeg_10/msm_jpeg_platform.o
CC drivers/media/radio/radio-iris-transport.o
LD drivers/media/platform/msm/camera_v2/jpeg_10/built-in.o
CC drivers/media/platform/msm/camera_v2/isp/msm_isp.o
/home/lineageos/kernel/lenovo/msm8917/scripts/Makefile.build:402: recipe for target 'arch/arm64/boot/dts/qcom' failed
make[2]: *** [arch/arm64/boot/dts/qcom] Error 2
/home/lineageos/kernel/lenovo/msm8917/arch/arm64/Makefile:92: recipe for target 'dtbs' failed
make[1]: *** [dtbs] Error 2
make[1]: *** Waiting for unfinished jobs....
Device tree:= https://github.com/darran-kelinske-fivestars/android_device_lenovo_tb8504f/tree/lineage-15.1
Vendor tree:= https://github.com/darran-kelinske-fivestars/android_vendor_lenovo_tb8504f/tree/lineage-15.1
Kernel source:= https://github.com/darran-kelinske-fivestars/android_kernel_lenovo_tb8504f/tree/lineage-15.1
ROM Source:= https://github.com/LineageOS/android
Command: source build/envsetup.sh && breakfast tb8504f && repo sync --force-sync -q -j6 && mka recoveryimage -j6 | tee recovery.log
Full log:
https://pastebin.com/9V7tQu9G

I really appreciate the help from danlor.
I took at different approach to solving this problem.
I was using a kernel defconfig that was recommended by another rom builder and I'm not sure if it was correct so I found a way to get the defconfig from the kernel of the device.
I pulled the boot.img file off the device
I then grabbed the config from the kernel
/usr/src/linux-headers-4.18.0-25-generic/scripts/extract-ikconfig kernel > lineageos_tb8504f_defconfig
I then uploaded it to the kernel repo:
https://github.com/darran-kelinske-fivestars/android_kernel_lenovo_tb8504f/commit/72370bfa987297398662e314a6c6e898dd193ddb
From there, I set to user it in the make files of the device repo.
https://github.com/darran-kelinske-fivestars/android_device_lenovo_tb8504f/commit/460d9657ab0572e448be39422b98fc0b23b0c257
To get the device tree, I used the following tool:
https://github.com/PabloCastellano/extract-dtb
I extracted the device tree
./extract-dtb.py ../../../boot.img
I then found the dbt file for the tree that was referenced above and dumped it to a file
fdtdump 26_dtbdump_Qualcomm_Technologies,_Inc._MSM8917-PMI8937_QRD_SKU5.dtb > sku5.txt
I then updated the device tree file to what was in the dump:
https://github.com/darran-kelinske-fivestars/android_kernel_lenovo_tb8504f/commit/6ae1722b1906a06bb5d0b6cf8e0d8c7501ff9555
I was then able to successfully build the recovery.
[ 99% 1462/1467] Prebuilt: (/home/lineageos/out/target/product/tb8504f/kernel)
[ 99% 1463/1467] Target boot image: /home/lineageos/out/target/product/tb8504f/boot.img
/home/lineageos/out/target/product/tb8504f/boot.img maxsize=68395008 blocksize=135168 total=27078656 reserve=811008
[ 99% 1464/1467] Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat '/home/lineageos/out/target/product/tb8504f/root/init.recovery.*.rc': No such file or directory
----- Making uncompressed recovery ramdisk ------
[ 99% 1465/1467] ----- Making compressed recovery ramdisk ------
[ 99% 1466/1467] ----- Making recovery image ------
+/home/lineageos/out/target/product/tb8504f/recovery.img maxsize=68395008 blocksize=135168 total=33243136 reserve=811008
----- Made recovery image: /home/lineageos/out/target/product/tb8504f/recovery.img --------
[100% 1467/1467] build /home/lineageos/out/target/product/tb8504f/system/etc/recovery-resource.dat
#### build completed successfully (04:41 (mm:ss)) ####

Related

how to fix the problem to complete the build?

I am struggling with build error which show "oe_runmake failed."
Does anyone have an idea to solve this error ??
I am using Ubuntu20.04 on VMware.
To conduct build, right now use "bitbake imx-image-core" command.
here, I wrote down terminal log below...
Excerpt error part from the whole log
==========
| {standard input}: Assembler messages:
| {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
| g++: fatal error: Killed signal terminated program cc1plus
| compilation terminated.
| make[1]: *** [Makefile:1143: gimple-match.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| rm gcc.pod
| make[1]: Leaving directory '/home/test/imx-yocto-bsp/L5.15.32-2.0.0/tmp/work/x86_64-linux/gcc-cross-aarch64/11.2.0-r0/gcc-11.2.0/build.x86_64-linux.aarch64-poky-linux/gcc'
| make: *** [Makefile:4443: all-gcc] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/test/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-cross_11.2.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 276 tasks of which 0 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/test/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-cross_11.2.bb:do_compile
Summary: There were 2 ERROR messages, returning a non-zero exit code.
I have tried editting a file, "conf/local.conf", by adding some sentences, but I am not sure wether what types of sentence is appropriate to fix my problem...
if more info needed, I can add them.

fatal error: lipo: can't open input file: wireguard-go-bridge/libwg-go-arm64.a (No such file or directory

I have developed a framework which was working fine in debug mood also working in mobile phone but when I make a build for distribution compiler send me error
I have used Wireguard vpn use and its integration in app.
Makefile:68: warning: overriding commands for target `/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy'
Makefile:65: warning: ignoring old commands for target `/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy'
Makefile:68: warning: overriding commands for target `of'
Makefile:65: warning: ignoring old commands for target `of'
Makefile:71: warning: overriding commands for target `/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy'
Makefile:68: warning: ignoring old commands for target `/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy'
Makefile:71: warning: overriding commands for target `of'
Makefile:68: warning: ignoring old commands for target `of'
make: Circular /Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy <- /Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy dependency dropped.
make: Circular of <- /Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy dependency dropped.
make: Circular of <- of dependency dropped.
go build -ldflags=-w -trimpath -v -o "/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy of OortVPN/IntermediateBuildFilesPath/FriendsVPN.build/Debug-iphoneos/wireguard-go-bridge/libwg-go-arm64.a" -buildmode c-archive
runtime/cgo
net
golang.zx2c4.com/wireguard/apple
rm -f "/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy of OortVPN/IntermediateBuildFilesPath/FriendsVPN.build/Debug-iphoneos/wireguard-go-bridge/libwg-go-arm64.h"
lipo -create -output "of" OortVPN/IntermediateBuildFilesPath/FriendsVPN.build/Debug-iphoneos/wireguard-go-bridge/libwg-go-arm64.a /usr/local/Cellar/go/1.17/libexec/.prepared go.mod
fatal error: lipo: can't open input file: OortVPN/IntermediateBuildFilesPath/FriendsVPN.build/Debug-iphoneos/wireguard-go-bridge/libwg-go-arm64.a (No such file or directory)
make: *** [of] Error 1
Command ExternalBuildToolExecution failed with a nonzero exit code

Makefile:144: recipe for target 'all' failed Error Build Static QT

The command (cia cmd.exe) in Windows 10
configure -release -opensource -confirm-license -prefix C:\Qt\6.1.3\Build
went through without problems, but now I get the following error message with
make -j8
I always get the following error message and it aborts.
make[1]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all] Error 2
[ 15%] Linking CXX static library ......\lib\libQt6DeviceDiscoverySupport.a
Generating version linker script
[ 15%] Built target DeviceDiscoverySupport
Makefile:144: recipe for target 'all' failed
make: *** [all] Error 2
Thank you, I will do from now on.
Have here times a little of the error message which occurred before with attached, vlt. can someone with it what begin and help me.
C:/Qt/6.1.3/Src/qtbase/src/corelib/text/qstringconverter.h:189:87: internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:6590
Q_CORE_EXPORT static const Interface encodingInterfaces[Encoding::LastEncoding + 1];
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://sourceforge.net/projects/mingw-w64> for instructions.
qtbase\src\tools\androiddeployqt\CMakeFiles\androiddeployqt.dir\build.make:90: recipe for target 'qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj' failed
make[2]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj] Error 1
CMakeFiles\Makefile2:12798: recipe for target 'qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all' failed
make[1]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all] Error 2
[ 15%] Linking CXX static library ..\..\..\lib\libQt6DeviceDiscoverySupport.a
Generating version linker script
[ 15%] Built target DeviceDiscoverySupport
Makefile:144: recipe for target 'all' failed
make: *** [all] Error 2

Rhel + Kernel header files not in any of the expected locations - when installing network driver

we try to installe the network driver - i40e on rhel server 7.2 version , ( kernel - 3.10.0-512 )
as the following
# tar zxf i40e-2.12.6.tar.gz
# cd i40e-2.12.6/src
# make install
common.mk:82: *** Kernel header files not in any of the expected locations.
common.mk:83: *** Install the appropriate kernel development package, e.g.
common.mk:84: *** kernel-devel, for building kernel modules and try again. Stop.
on other server ( rhel 7.2 ) its installed successfully as the following ( this is the second make install , so the output is little different from the first time )
# cd src/
# make install
*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entering directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
Installing modules...
*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entering directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
INSTALL /tmp/i40e-2.12.6/src/i40e.ko
DEPMOD 3.10.0-327.el7.x86_64
make[1]: Leaving directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
/sbin/depmod -e -F /lib/modules/3.10.0-327.el7.x86_64/source/System.map -a 3.10.0-327.el7.x86_64
Updating initramfs...
make mandocs_install
make[1]: Entering directory `/tmp/i40e-2.12.6/src'
Copying manpages...
make[1]: Leaving directory `/tmp/i40e-2.12.6/src'
what is the reason ? that we get the following errors:
common.mk:82: *** Kernel header files not in any of the expected locations.
common.mk:83: *** Install the appropriate kernel development package, e.g.
common.mk:84: *** kernel-devel, for building kernel modules and try again. Stop.
reference - https://downloadcenter.intel.com/download/24411/Intel-Network-Adapter-Driver-for-PCIe-40-Gigabit-Ethernet-Network-Connections-Under-Linux-

kamailio v5.2 make error "ln: failed to create symbolic link 'libkamailio_ims.so.0': File exists"

Tried to upgrade a server running version 5.1.4 to 5.2 , encounred following error which blocks make install
ln: failed to create symbolic link 'libkamailio_ims.so.0': File exists
../../Makefile.libs:107: recipe for target 'libkamailio_ims.so.0' failed
make[3]: [libkamailio_ims.so.0] Error 1 (ignored)
ln: failed to create symbolic link 'libkamailio_ims.so': File exists
../../Makefile.libs:113: recipe for target 'libkamailio_ims.so' failed
make[3]: [libkamailio_ims.so] Error 1 (ignored)
LD (gcc) [L libkamailio_ims.so.0.1] libkamailio_ims.so.0.1
/usr/bin/ld: cannot find -lxml2
collect2: error: ld returned 1 exit status
../../Makefile.rules:191: recipe for target 'libkamailio_ims.so.0.1' failed
make[3]: *** [libkamailio_ims.so.0.1] Error 1
../../Makefile.rules:157: recipe for target '../../lib/ims/libkamailio_ims.so' failed
make[2]: *** [../../lib/ims/libkamailio_ims.so] Error 2
Makefile:511: recipe for target 'modules' failed
make[1]: *** [modules] Error 1
make[1]: Leaving directory '/home/ubuntu/kamailio_source_code/src'
Makefile:27: recipe for target 'modules' failed
make: *** [modules] Error 2
further clarifying this belong to IMS ICSCF module of kamailio and I have tried skipping all ims related modules while make both through modules list and command line make but to no avail. Maybe missing something here? Same
modules.lst
# the list of sub-directories with modules
modules_dirs:=modules
# the list of module groups to compile
cfg_group_include=
# the list of extra modules to compile
include_modules= db_mysql app_lua uuid topos topos_redis ndb_redis
# the list of static modules
static_modules=
# the list of modules to skip from compile list
skip_modules=ims_auth ims_charging ims_dialog ims_diameter_server ims_icscf ims_isc ims_ocs ims_qos ims_registrar_pcscf ims_registrar_scscf ims_usrloc_pcscf ims_usrloc_scscf
# the list of modules to exclude from compile list
exclude_modules= acc_radius app_java app_mono app_perl app_python auth_ephemeral auth_identity auth_radius carrierroute cdp cdp_avp cnxcc cplc crypto db2_ldap db_berkeley db_cassandra db_mongodb db_oracle db_perlvdb db_postgres db_sqlite db_unixodbc dialplan dnssec erlang evapi geoip geoip2 gzcompress h350 http_async_client http_client jansson janssonrpcc json jsonrpcc kazoo lcr ldap log_systemd memcached misc_radius ndb_cassandra ndb_mongodb nsq osp outbound peering phonenum presence presence_conference presence_dialoginfo presence_mwi presence_profile presence_reginfo presence_xml pua pua_bla pua_dialoginfo pua_reginfo pua_rpc pua_usrloc pua_xmpp rabbitmq regex rls sctp snmpstats tls utils websocket xcap_client xcap_server xhttp_pi xmlops xmlrpc xmpp $(skip_modules) $(skip_modules)
modules_all= $(filter-out modules/CVS,$(wildcard modules/*))
modules_noinc= $(filter-out $(addprefix modules/, $(exclude_modules) $(static_modules)), $(modules_all))
modules= $(filter-out $(modules_noinc), $(addprefix modules/, $(include_modules) )) $(modules_noinc)
modules_configured:=1
command line
make skip_modules="*ims*" modules
had to reset the config file by make cfg, it's ok now

Resources