2020-06-22 06:13 PM
Hello dear.
I solved all errors and warnings.
But I am getting a do_compile error and I can't figure out the cause, so I need help.
I used the devtool build cherry0 command and bitbake cherry0 causes the same situation.
The build message is:
-------------------------------------------------------------------
moonlive@kheng:~/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/workspace$ devtool build cherry0
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 42503, PID: 7602
WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
Loading cache: 100% |###########################################################################################################################| Time: 0:00:11
Loaded 3573 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################| Time: 0:00:42
Parsing of 2529 .bb files complete (2525 cached, 4 parsed). 3574 targets, 396 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-ostl-linux-gnueabi"
MACHINE = "stm32mp1"
DISTRO = "openstlinux-eglfs"
DISTRO_VERSION = "2.6-snapshot-20200623"
TUNE_FEATURES = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU = "hard"
DISTRO_CODENAME = "thud"
ACCEPT_EULA_stm32mp1 = "0"
GCCVERSION = "8.%"
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"
meta-python
meta-oe
meta-oe
meta-gnome
meta-xfce
meta-initramfs
meta-multimedia
meta-networking
meta-webserver
meta-filesystems
meta-perl
meta-python = "HEAD:436cf0aa2b2802da706588d4daa1a8240d172df8"
meta-st-stm32mp = "HEAD:8055ad11c92144e4a147a00834de53a2de21e42d"
meta-qt5 = "HEAD:1520d5b2b2beec5e1c3209d3178219e93ef08bca"
meta-st-openstlinux = "HEAD:f023f39b13fa13f6391be5fbc10fb2bf7369402a"
meta = "HEAD:cd7cf933b3235560ec71576d8f3836dff736a39f"
workspace = "<unknown>:<unknown>"
Initialising tasks: 100% |######################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 4 Found 4 Missed 0 Current 114 (100% match, 100% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: cherry0: compiling from external source tree /home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/workspace/cherry0
ERROR: cherry0-1.0-r0 do_compile: Function failed: do_compile (log file is located at /home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/cherry0/1.0-r0/temp/log.do_compile.7671)
ERROR: Logfile of failure stored in: /home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/cherry0/1.0-r0/temp/log.do_compile.7671
Log data follows:
| DEBUG: Executing python function externalsrc_compile_prefunc
| NOTE: cherry0: compiling from external source tree /home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/workspace/cherry0
| DEBUG: Python function externalsrc_compile_prefunc finished
| DEBUG: Executing shell function do_compile
| WARNING: /home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/cherry0/1.0-r0/temp/run.do_compile.7671:1 exit 1 from 'arm-ostl-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/cherry0/1.0-r0/recipe-sysroot *.cc -o cherry0'
| ERROR: Function failed: do_compile (log file is located at /home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/cherry0/1.0-r0/temp/log.do_compile.7671)
ERROR: Task (/home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/workspace/recipes/cherry0/cherry0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 493 tasks of which 492 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Summary: 1 task failed:
/home/moonlive/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/workspace/recipes/cherry0/cherry0.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
--------------------------------------------------------------------------------------------------
I want solve it. Please help me.
Thank you in advance.
Solved! Go to Solution.
2020-06-24 01:55 AM
I solved this problem.
This is a problem in the process of building the source code that was executed on other existing hardware with STM32MP1.
When I was trying to build a devtool, I couldn't find out the contents of the fail, but when I built it in the developer package, I found the error and solved it
In conclusion, it was caused by a problem with the referenced library.
I solved the problem by building and referencing the library as STM32MP1.
2020-06-24 01:55 AM
I solved this problem.
This is a problem in the process of building the source code that was executed on other existing hardware with STM32MP1.
When I was trying to build a devtool, I couldn't find out the contents of the fail, but when I built it in the developer package, I found the error and solved it
In conclusion, it was caused by a problem with the referenced library.
I solved the problem by building and referencing the library as STM32MP1.