webosose / meta-webosose

Yocto layer for webOS
GNU General Public License v2.0
109 stars 42 forks source link

webruntime building issue #18

Closed cmdn2002 closed 4 years ago

cmdn2002 commented 4 years ago

i try to build webos according to the guidance. https://github.com/webosose/build-webos

but i encounter webruntime building faillure issue.

my building system is , DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS" NAME="Ubuntu" VERSION="18.04.2 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.2 LTS" VERSION_ID="18.04"

my purpose is building arm architecture 32bit system image, so i choose Raspberry Pi 3 as target device according to the building guide:

git clone https://github.com/webosose/build-webos.git ./mcf -p 0 -b 4 raspberrypi3 make webos-image unluckly, build failed, the log is: 3: webruntime-72.0.3626.121-23-r25.1 do_configure - 5s (pid 28462) $<50>ERROR: Logfile of failure stored in: /home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/temp/log.do_configure.28462 Log data follows: | DEBUG: Executing shell function do_configure | GN_ARGS is cros_host_ar="ar" cros_host_cc="gcc " cros_host_cxx="g++ " cros_host_extra_ldflags="-L/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/usr/lib -L/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/lib -Wl,-rpath-link,/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/lib -Wl,-rpath,/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/lib -Wl,-O1" cros_target_ar="arm-webos-linux-gnueabi-ar" cros_target_cc="arm-webos-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot" cros_target_cxx="arm-webos-linux-gnueabi-g++ -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot" enable_memorymanager_webapi=true ffmpeg_branding="Chrome" host_os="linux" is_app_shell_cbe=true is_clang=false is_cross_linux_build=true is_webos=true is_debug=false is_component_build=false ozone_auto_platforms=false ozone_platform_wayland_external=true proprietary_codecs=true target_os="linux" target_sysroot="/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot" treat_warnings_as_errors=false use_bundled_fontconfig=false use_cbe=true use_cups=false use_custom_libcxx=false use_custom_libcxx_for_host=true use_kerberos=false use_ozone=true use_pmlog=true use_sysroot=false use_system_debugger_abort=true use_webos_v8_snapshot=true use_xkbcommon=true enable_av1_decoder=false symbol_level=1 blink_symbol_level=0 use_gst_media=true enable_webm_video_codecs=false use_jumbo_build=true jumbo_file_merge_limit=8 use_webos_gpu_info_collector=false use_lttng=true use_neva_media=true is_host_clang=true fatal_linker_warnings=false enable_nacl=false disable_ftp_support=true enable_print_preview=false enable_remoting=false use_gnome_keyring=false use_pulseaudio=false linux_use_bundled_binutils=false use_debug_fission=false use_gold=true target_cpu="arm" arm_arch="armv7ve" arm_version=7 arm_float_abi="hard" host_pkg_config="pkg-config-native" closure_compile=false | BUILD_TARGETS are webos:weboswebruntime app_shell | ERROR at //BUILD.gn:1061:3: Empty sources for copy command. | copy("layout_test_data_mojo_bindings") { | ^--------------------------------------- | You have to specify at least one file to copy in the "sources". | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_configure (log file is located at /home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/temp/log.do_configure.28462)

can you give some advice where is wrong? Thanks.

cmdn2002 commented 4 years ago

same environment, i also try to build for pi4: ./mcf -p 0 -b 4 raspberrypi4 make webos-image

same fail log as above.

GlebMan-n commented 4 years ago

i try to build webos according to the guidance. https://github.com/webosose/build-webos

but i encounter webruntime building faillure issue.

my building system is , DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS" NAME="Ubuntu" VERSION="18.04.2 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.2 LTS" VERSION_ID="18.04"

my purpose is building arm architecture 32bit system image, so i choose Raspberry Pi 3 as target device according to the building guide:

git clone https://github.com/webosose/build-webos.git ./mcf -p 0 -b 4 raspberrypi3 make webos-image unluckly, build failed, the log is: 3: webruntime-72.0.3626.121-23-r25.1 do_configure - 5s (pid 28462) $<50>ERROR: Logfile of failure stored in: /home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/temp/log.do_configure.28462 Log data follows: | DEBUG: Executing shell function do_configure | GN_ARGS is cros_host_ar="ar" cros_host_cc="gcc " cros_host_cxx="g++ " cros_host_extra_ldflags="-L/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/usr/lib -L/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/lib -Wl,-rpath-link,/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/lib -Wl,-rpath,/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot-native/lib -Wl,-O1" cros_target_ar="arm-webos-linux-gnueabi-ar" cros_target_cc="arm-webos-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot" cros_target_cxx="arm-webos-linux-gnueabi-g++ -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot" enable_memorymanager_webapi=true ffmpeg_branding="Chrome" host_os="linux" is_app_shell_cbe=true is_clang=false is_cross_linux_build=true is_webos=true is_debug=false is_component_build=false ozone_auto_platforms=false ozone_platform_wayland_external=true proprietary_codecs=true target_os="linux" target_sysroot="/home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/recipe-sysroot" treat_warnings_as_errors=false use_bundled_fontconfig=false use_cbe=true use_cups=false use_custom_libcxx=false use_custom_libcxx_for_host=true use_kerberos=false use_ozone=true use_pmlog=true use_sysroot=false use_system_debugger_abort=true use_webos_v8_snapshot=true use_xkbcommon=true enable_av1_decoder=false symbol_level=1 blink_symbol_level=0 use_gst_media=true enable_webm_video_codecs=false use_jumbo_build=true jumbo_file_merge_limit=8 use_webos_gpu_info_collector=false use_lttng=true use_neva_media=true is_host_clang=true fatal_linker_warnings=false enable_nacl=false disable_ftp_support=true enable_print_preview=false enable_remoting=false use_gnome_keyring=false use_pulseaudio=false linux_use_bundled_binutils=false use_debug_fission=false use_gold=true target_cpu="arm" arm_arch="armv7ve" arm_version=7 arm_float_abi="hard" host_pkg_config="pkg-config-native" closure_compile=false | BUILD_TARGETS are webos:weboswebruntime app_shell | ERROR at //BUILD.gn:1061:3: Empty sources for copy command. | copy("layout_test_data_mojo_bindings") { | ^--------------------------------------- | You have to specify at least one file to copy in the "sources". | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_configure (log file is located at /home/android/webos/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/webruntime/72.0.3626.121-23-r25.1/temp/log.do_configure.28462)

can you give some advice where is wrong? Thanks.

Hi, how many RAM do you have (16 GB at least, 32 GB will be better)? I advise you to increase amount of swap. After that you should remove BUILD and sstate-cache folders and try to build again. I believe that you did all preconditions as mentioned in manuals (https://www.webosose.org/docs/guides/setup/building-webos-ose/ especially sudo scripts/prerequisites.sh)

cmdn2002 commented 4 years ago

Thanks for your suggestion. i increase the swap partition size to two times than DDR memory. it's valid.