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.
Related
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)) ####
i want to run opencl on zedboard and now i'm failing to install ocl_icd on ubuntu12
i refer to the page "https://github.com/umaurmi/OPENCL_EXAMPLES_ZEDBOARD/wiki/Installing-POCL-dependencies-on-Ubuntu-linux-based-targets"
"./configure" complete without errors
but "make" cause errors ,show below
root#localhost:~/Downloads/ocl-icd-1.2.1# make
make all-am
make[1]: Entering directory `/root/Downloads/ocl-icd-1.2.1'
CC libOpenCL_la-ocl_icd_loader.lo
CC libOpenCL_la-ocl_icd_loader_gen.lo
In file included from ocl_icd_loader_gen.c:30:0:
ocl_icd_debug.h: In function 'debug_init':
ocl_icd_debug.h:66:5: error: implicit declaration of function 'getenv' [-Werror=implicit-function-declaration]
ocl_icd_debug.h:66:17: error: initialization makes pointer from integer without a cast [-Werror]
ocl_icd_debug.h:68:7: error: implicit declaration of function 'atoi' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [libOpenCL_la-ocl_icd_loader_gen.lo] Error 1
make[1]: Leaving directory `/root/Downloads/ocl-icd-1.2.1'
make: *** [all] Error 2
how can i do for that?
I am getting the following error in building qtsampleplayer:
ubuntu#ubuntu:~/Libdash/libdash/libdash/qtsampleplayer/build$ make
[ 3%] Automoc for target qtsampleplayer
[ 3%] Built target qtsampleplayer_automoc
Linking CXX executable qtsampleplayer
i386-linux-gnu/libQt5Gui.so.5.2.1:undefined reference to symbol 'inflateInit2_'
/libz.so.1:error adding symbols:DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [qtsampleplayer] Error 1
make[1]: *** [CMakeFiles/qtsampleplayer.dir/all] Error 2
make: *** [all] Error 2
Tried several options like giving path of libz.so in command line but no help
Regards
Mayank
collect2: error: ld returned 1 exit status that means basically that something before went wrong.
/libz.so.1:error adding symbols:DSO missing from command linethat means that he is not finding DSO so you have not included correctly the libz.so BUT before it says: i386-linux-gnu/libQt5Gui.so.5.2.1:undefined reference to symbol 'inflateInit2_' So your problem is not in libz.so, it can be in libQt5Gui .
Do you really have both libraries where your project is looking? Seems the program is not finding them
I am trying to wrap QT UI in QT5 using a command
QT5_UI_WRAP (ui_forms/file.h ui_file.ui)
I have include QT5Widgets. Somehow this isn't working. Now everywhere I read, this is what needs to be done but there is always an error saying the .h file was not found. I have included the ui_forms folder in include path. Is there anything more that needs to be done with this. ? Am I missing something ?
fatal error: ui_results_view.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/location_recognition.dir/src/results_scene.cpp.o] Error 1
make[1]: *** [CMakeFiles/location_recognition.dir/all] Error 2
make: *** [all] Error 2
I am trying to compile qt with dbus but it gives me the following exception. I have installed the dbus version 1.3 in the system and I am using the following configure command.
Can someone point me as to what should be done.
configure -dbus -I/usr/include/dbus-1.0 -L/usr/local/dbus/lib -ldbus-1 -fast -prefix /home/thwijeth/Software/qt-4.8.1-com-debug -v
thank you in advance.
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
In file included from qdbusconnection_p.h:51,
from qdbusconnection.cpp:33:
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make[1]: *** [qdbuserror.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [qdbusconnection.o] Error 1
In file included from qdbusconnectioninterface.cpp:33:
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make[1]: *** [qdbusconnectioninterface.o] Error 1
In file included from qdbusconnection_p.h:51,
from qdbusintegrator.cpp:33:
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make[1]: *** [qdbusintegrator.o] Error 1
make[1]: Leaving directory `/home/thwijeth/Software/qt-repo/qt-4.8.1-src/src/dbus'
make: *** [sub-dbus-make_default-ordered] Error 2
verify if /usr/include/dbus-1.0 contains a dbus directory, if it does not, verify whether /usr/include/dbus-1.0 contains dbus.h, if so you need to create a symbolic link to dbus-1.0 as dbus
ln -s dbus-1.0 /usr/include/dbus
and then try to rerun configure.
This solution worked fine for me for this missing header. However, I got then a different error fatal error: dbus/dbus-arch-deps.h: No such file. I worked around this error by copying this file from /usr/lib/x86_64-linux-gnu/dbus-1.0/include/dbus to /usr/include/dbus-1.0/dbus/. I don't know why this header was not in the /usr/include directory from the beginning. But this is my hack to the problem.
Regards