Issue in building Firefox Web browser using yocto

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Issue in building Firefox Web browser using yocto

5,788 次查看
himanshu_bhavani
Contributor I

Hello ,

I am trying to build firefox for im8m mini using yocto.

MACHINE ??= 'imx8mm-lpddr4-evk'
DISTRO ?= 'fsl-imx-xwayland'

But while bitbake firefox I am getting below errors in do_compile.

ERROR: firefox-68.9.0esr-r0 do_compile: Execution of '/data/imx_bsp_imx8miniquad/imx-yocto-bsp/build_imx8mm/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/temp/run.do_compile.3017514' failed with exit code 2
ERROR: Logfile of failure stored in: /data/imx_bsp_imx8miniquad/imx-yocto-bsp/build_imx8mm/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/temp/log.do_compile.3017514
ERROR: Task (/data/imx_bsp_imx8miniquad/imx-yocto-bsp/sources/meta-browser/meta-firefox/recipes-browser/firefox/firefox_68.9.0esr.bb:do_compile) failed with exit code '1'

 

I have added meta-rust and meta-clang that were required to build firefox.

Any help regarding this will be appreciated.

 

0 项奖励
回复
16 回复数

5,671 次查看
Harvey021
NXP TechSupport
NXP TechSupport

@himanshu_bhavani 

More specific steps for compiling firefox as below, which has been implemented with success.

#######################################

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx-5.10.72-2.2.0.xml

DISTRO=imx8mm-lpddr4-evk MACHINE=fsl-imx-xwayland source imx-setup-release.sh -b build-mnlpddr4

Change directory to sources/meta-openembedded/

run git clone https://github.com/meta-rust/meta-rust.git

Then change directory to build-mnlpddr4/conf/

edit bblayers.conf with the line:  ${BSPDIR}/sources/meta-openembedded/meta-rust \

edit bblayers.confi with the line: BBLAYERS += "${BSPDIR}/sources/meta-browser/meta-firefox"

and edit local.conf with the line: CORE_IMAGE_EXTRA_INSTALL += "firefox"

go back to build directory, bitbake firefox -c fetch.

bitbake firefox -c compile -f

I have succeed to compile it and integrate into rootfs.

#####################

You'd better follow these steps from scratch.

 

Best regards

Harvey

 

0 项奖励
回复

5,654 次查看
himanshu_bhavani
Contributor I

@Harvey021 ,

I followed steps suggested from scratch. But still the same error in compilation.

Is there any changes you forgot to add?

Just change in DISTRO Command.

Repo Init

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx-5.10.72-2.2.0.xml

 

Distro Command

EULA=1 DISTRO=fsl-imx-xwayland MACHINE=imx8mm-lpddr4-evk source imx-setup-release.sh -b build-mnlpddr4

 

bblayer.conf

 

LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

BBFILES ?= ""
BBLAYERS = " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
  \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-rust \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  ${BSPDIR}/sources/meta-openembedded/meta-python \
  \
  ${BSPDIR}/sources/meta-freescale \
  ${BSPDIR}/sources/meta-freescale-3rdparty \
  ${BSPDIR}/sources/meta-freescale-distro \
"

# i.MX Yocto Project Release layers
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-bsp"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-sdk"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-ml"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-v2x"
BBLAYERS += "${BSPDIR}/sources/meta-nxp-demo-experience"

BBLAYERS += "${BSPDIR}/sources/meta-browser/meta-chromium"
BBLAYERS += "${BSPDIR}/sources/meta-browser/meta-firefox"
BBLAYERS += "${BSPDIR}/sources/meta-clang"
BBLAYERS += "${BSPDIR}/sources/meta-openembedded/meta-gnome"
BBLAYERS += "${BSPDIR}/sources/meta-openembedded/meta-networking"
BBLAYERS += "${BSPDIR}/sources/meta-openembedded/meta-filesystems"
BBLAYERS += "${BSPDIR}/sources/meta-qt5"
BBLAYERS += "${BSPDIR}/sources/meta-python2"
BBLAYERS += "${BSPDIR}/sources/meta-virtualization"

 

local.conf

 

MACHINE ??= 'imx8mm-lpddr4-evk'
DISTRO ?= 'fsl-imx-xwayland'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"
CORE_IMAGE_EXTRA_INSTALL += "firefox"

 

Commands

bitbake firefox -c fetch.

bitbake firefox -c compile -f

 

Error

ERROR: firefox-68.9.0esr-r0 do_compile: Execution of '/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/temp/run.do_compile.1730173' failed with exit code 2

 

0 项奖励
回复

5,647 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi @himanshu_bhavani 

 

These steps are correct. Please share the log do_compile.173017.

 

Best regards

Harvey

 

0 项奖励
回复

5,644 次查看
himanshu_bhavani
Contributor I

@Harvey021 ,

 

Please find logs below.

#!/bin/sh

__BITBAKE_LAST_LINE=0

# Emit a useful diagnostic if something fails:
bb_sh_exit_handler() {
    ret=$?
    if [ "$ret" != 0 ]; then
        echo "WARNING: exit code $ret from a shell command."
    fi
    exit $ret
}

bb_bash_exit_handler() {
    ret=$?
    { set +x; } > /dev/null
    trap "" DEBUG
    if [ "$ret" != 0 ]; then
        echo "WARNING: ${BASH_SOURCE[0]}:${__BITBAKE_LAST_LINE} exit $ret from '$1'"

        echo "WARNING: Backtrace (BB generated script): "
        for i in $(seq 1 $((${#FUNCNAME[@]} - 1))); do
            if [ "$i" -eq 1 ]; then
                echo -e "	#$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${__BITBAKE_LAST_LINE}"
            else
                echo -e "	#$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${BASH_LINENO[$((i-1))]}"
            fi
        done
    fi
    exit $ret
}

bb_bash_debug_handler() {
    local line=${BASH_LINENO[0]}
    # For some reason the DEBUG trap trips with lineno=1 when scripts exit; ignore it
    if [ "$line" -eq 1 ]; then
        return
    fi

    # Track the line number of commands as they execute. This is so we can have access to the failing line number
    # in the EXIT trap. See http://gnu-bash.2382.n7.nabble.com/trap-echo-quot-trap-exit-on-LINENO-quot-EXIT-gt-wrong-linenumber-td3666.html
    if [ "${FUNCNAME[1]}" != "bb_bash_exit_handler" ]; then
        __BITBAKE_LAST_LINE=$line
    fi
}

case $BASH_VERSION in
"") trap 'bb_sh_exit_handler' 0
    set -e
    ;;
*)  trap 'bb_bash_exit_handler "$BASH_COMMAND"' 0
    trap '{ bb_bash_debug_handler; } 2>/dev/null' DEBUG
    set -e
    shopt -s extdebug
    ;;
esac
export AR="aarch64-poky-linux-llvm-ar"
export AS="aarch64-poky-linux-clang -target aarch64-poky-linux  -mcpu=cortex-a53 -march=armv8-a+crc+crypto   -mlittle-endian -Qunused-arguments -fstack-protector-strong  -Os -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot"
export BUILD_AR="ar"
export BUILD_AS="as "
export BUILD_CC="gcc "
export BUILD_CCLD="gcc "
export BUILD_CFLAGS="-isystem/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export BUILD_CPP="gcc  -E"
export BUILD_CPPFLAGS="-isystem/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/include"
export BUILD_CXX="g++ "
export BUILD_CXXFLAGS="-isystem/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export BUILD_FC="gfortran "
export BUILD_LD="ld "
export BUILD_LDFLAGS="-L/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/lib                         -L/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/lib                         -Wl,-O1"
export BUILD_NM="nm"
export BUILD_RANLIB="ranlib"
export BUILD_STRIP="strip"
export CC="aarch64-poky-linux-clang -target aarch64-poky-linux  -mcpu=cortex-a53 -march=armv8-a+crc+crypto   -mlittle-endian -Qunused-arguments -fstack-protector-strong  -Os -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot"
export CCLD="aarch64-poky-linux-clang -target aarch64-poky-linux  -mcpu=cortex-a53 -march=armv8-a+crc+crypto   -mlittle-endian -Qunused-arguments -fstack-protector-strong  -Os -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot"
export CFLAGS=" -Os -fsigned-char -fno-strict-aliasing"
export CPP="aarch64-poky-linux-clang -target aarch64-poky-linux  -mcpu=cortex-a53 -march=armv8-a+crc+crypto   -mlittle-endian -Qunused-arguments -fstack-protector-strong  -Os -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot -E"
export CPPFLAGS=""
export CROSS_COMPILE="1"
export CXX="aarch64-poky-linux-clang++ -target aarch64-poky-linux  -mcpu=cortex-a53 -march=armv8-a+crc+crypto   -mlittle-endian -Qunused-arguments -fstack-protector-strong  -Os -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot"
export CXXFLAGS=" -Os -fsigned-char -fno-strict-aliasing  -fvisibility-inlines-hidden"
unset DISTRO
export FC="aarch64-poky-linux-gfortran -target aarch64-poky-linux  -mcpu=cortex-a53 -march=armv8-a+crc+crypto   -mlittle-endian -Qunused-arguments -fstack-protector-strong  -Os -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot"
export GIT_CEILING_DIRECTORIES="/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0"
export HOME="/home/himanshu"
export HOST_AR="ar"
export HOST_CC="gcc "
export HOST_CFLAGS="-isystem/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export HOST_CXX="g++ "
export HOST_CXXFLAGS="-isystem/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export HOST_LDFLAGS="-L/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/lib                         -L/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/lib                         -Wl,-O1"
export HOST_RANLIB="ranlib"
export LC_ALL="en_US.UTF-8"
export LD="aarch64-poky-linux-ld --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot "
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now"
export LOGNAME="himanshu"
unset MACHINE
export MAKE="make"
export MOZCONFIG="/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/mozconfig"
export MOZ_OBJDIR="/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/firefox-build-dir"
export NM="aarch64-poky-linux-llvm-nm"
export OBJCOPY="aarch64-poky-linux-objcopy"
export OBJDUMP="aarch64-poky-linux-objdump"
export OMP_NUM_THREADS="12"
export PATH="/home/himanshu/test/sources/poky/scripts:/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot/usr/bin/crossscripts:/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/sbin:/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/bin:/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/sbin:/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/bin:/home/himanshu/test/sources/poky/bitbake/bin:/home/himanshu/test/build-mnlpddr4/tmp/hosttools"
export PERL_HASH_SEED="0"
export PKG_CONFIG_DIR="/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot/usr/lib/pkgconfig"
export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
export PKG_CONFIG_LIBDIR="/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot/usr/lib/pkgconfig"
export PKG_CONFIG_PATH="/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot/usr/lib/pkgconfig:/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot/usr/share/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR="/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot"
export PKG_CONFIG_SYSTEM_INCLUDE_PATH="/usr/include"
export PKG_CONFIG_SYSTEM_LIBRARY_PATH="/lib:/usr/lib"
export PSEUDO_DISABLED="1"
export PSEUDO_UNLOAD="1"
export PYTHONHASHSEED="0"
export RANLIB="aarch64-poky-linux-llvm-ranlib"
export READELF="aarch64-poky-linux-readelf"
unset SHELL
export SOURCE_DATE_EPOCH="1590624328"
export SOURCE_DATE_EPOCH_FALLBACK="1302044400"
export STRINGS="aarch64-poky-linux-strings"
export STRIP="aarch64-poky-linux-strip"
unset TARGET_ARCH
export TZ="UTC"
export USER="himanshu"
export WRAPPER_TARGET_AR="aarch64-poky-linux-llvm-ar"
export WRAPPER_TARGET_CC="aarch64-poky-linux-clang -target aarch64-poky-linux  -mcpu=cortex-a53 -march=armv8-a+crc+crypto   -mlittle-endian -Qunused-arguments -fstack-protector-strong  -Os -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot"
export WRAPPER_TARGET_CCLD="aarch64-poky-linux-clang -target aarch64-poky-linux  -mcpu=cortex-a53 -march=armv8-a+crc+crypto   -mlittle-endian -Qunused-arguments -fstack-protector-strong  -Os -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot"
export WRAPPER_TARGET_CXX="aarch64-poky-linux-clang++ -target aarch64-poky-linux  -mcpu=cortex-a53 -march=armv8-a+crc+crypto   -mlittle-endian -Qunused-arguments -fstack-protector-strong  -Os -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot"
export WRAPPER_TARGET_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now"
export base_bindir="/bin"
export base_libdir="/lib"
export base_prefix=""
export base_sbindir="/sbin"
export bindir="/usr/bin"
export datadir="/usr/share"
export docdir="/usr/share/doc"
export exec_prefix="/usr"
export includedir="/usr/include"
export infodir="/usr/share/info"
export libdir="/usr/lib"
export libexecdir="/usr/libexec"
export localstatedir="/var"
export mandir="/usr/share/man"
export nonarch_base_libdir="/lib"
export nonarch_libdir="/usr/lib"
export oldincludedir="/usr/include"
export prefix="/usr"
export rustlibdir="/usr/lib/rust"
export sbindir="/usr/sbin"
export servicedir="/srv"
export sharedstatedir="/com"
export sysconfdir="/etc"
export systemd_system_unitdir="/lib/systemd/system"
export systemd_unitdir="/lib/systemd"
export systemd_user_unitdir="/usr/lib/systemd/user"

# line: 1, file: autogenerated
do_compile() {
    mozilla_do_compile
}

# line: 64, file: /home/himanshu/test/sources/meta-browser/meta-firefox/classes/mozilla.bbclass
mozilla_do_compile() {
	mozilla_run_mach build
}

# line: 29, file: /home/himanshu/test/sources/meta-browser/meta-firefox/classes/mozilla.bbclass
mozilla_run_mach() {
	export SHELL="/bin/sh"
	export RUSTFLAGS=" -L /home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0=/usr/src/debug/firefox/68.9.0esr-r0 -Cpanic=unwind"
	export RUST_HOST="x86_64-linux"
	export RUST_TARGET="aarch64-poky-linux"
	export RUST_TARGET_PATH="/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot-native/usr/lib/rustlib"
	export BINDGEN_MFLOAT=""
	export BINDGEN_CFLAGS="--target=aarch64-poky-linux --sysroot=/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/recipe-sysroot ${BINDGEN_MFLOAT}"

	export INSTALL_SDK=0
	export DESTDIR="/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/image"

	./mach "$@"
}

cd '/home/himanshu/test/build-mnlpddr4/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0'
do_compile

# cleanup
ret=$?
trap '' 0
exit $ret

 

Thanks.

0 项奖励
回复

5,638 次查看
Harvey021
NXP TechSupport
NXP TechSupport

@himanshu_bhavani 

Not this one, my bad, need the error log log.do_compile.17XXXX which should be under the same directory.

 

Best regards

Harvey

 

0 项奖励
回复

5,634 次查看
himanshu_bhavani
Contributor I

@Harvey021 ,

Sorry for the wrong data.

Please find attached logs.

Thanks.

 

0 项奖励
回复

5,601 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi 

Please try to build rust on your current Environment.

bitbake rust. 

Let's see how it goes.

 

Best regards

Harvey

 

0 项奖励
回复

5,598 次查看
himanshu_bhavani
Contributor I

@Harvey021 ,

 

Compilation issue in rust also.

Please find attached logs for your reference.

 

0 项奖励
回复

5,575 次查看
himanshu_bhavani
Contributor I

Hi @Harvey021 ,

Any updates?

0 项奖励
回复

5,618 次查看
Harvey021
NXP TechSupport
NXP TechSupport

@himanshu_bhavani 

What is your build platform? I successfully built the firefox on my Ubuntu 18.04.5 LTS.

Do you have to try to run sudo apt-get update && sudo apt-get upgrade on your platform before building?

And Host Packages according to Yocto user guide have been fully installed? 

 

Best regards

Harvey

 

0 项奖励
回复

5,611 次查看
himanshu_bhavani
Contributor I

@Harvey021 ,

Platform Used:

User-2:~/test/build-mnlpddr4$  lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal

 

Host Packages:

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm rsync curl

 

Also did before build start

run sudo apt-get update && sudo apt-get upgrade

 

Still error in compilation firefox.

0 项奖励
回复

5,689 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi @himanshu_bhavani 

I have experienced network slowness issue, which affect the proceeding further building. I am looking for internal assistance. please bear with some time.

Best regards

Harvey

0 项奖励
回复

5,766 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hello @himanshu_bhavani 

I am not sure that what bsp you have set up, as different release there are somewhat modifications for BSP recipe layers and its corresponding configurations. 

I tried as follows for your reference.

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx-5.10.72-2.2.0.xml

DISTRO=imx8mm-lpddr4-evk MACHINE=fsl-imx-xwayland source imx-setup-release.sh -b build-mnlpddr4

Change directory to sources/meta-openembedded/

run git clone https://github.com/meta-rust/meta-rust.git

Then change directory to build-mnlpddr4/conf/

edit bblayers.conf with the line:  ${BSPDIR}/sources/meta-openembedded/meta-rust \

and edit local.conf with the line: CORE_IMAGE_EXTRA_INSTALL += "firefox"

go back to build directory, bitbake firefox -c fetch.

bitbake <your target>

Hope this will help for you.

 

Best regards

Harvey

 

 

 

 

 

0 项奖励
回复

5,755 次查看
himanshu_bhavani
Contributor I

@Harvey021 

BSP Used:-

imx-yocto-L5.10.72_2.2.0

EULA Command : 

DISTRO=fsl-imx-xwayland MACHINE=imx8mm-lpddr4-evk source imx-setup-release.sh -b build_imx8mm

 

Thanks for support. I tried with the steps your have provided.

But still not firefox is not getting compiled. Below are the logs for your reference.

run bitbake firefox -c fetch is done successfully.

run bitbake -v imx-image-full   is giving error in firefox compile as below logs.

 

ERROR: firefox-68.9.0esr-r0 do_compile: Execution of '/data/imx_bsp_imx8miniquad/imx-yocto-bsp/build_imx8mm/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/temp/run.do_compile.58308' failed with exit code 2
ERROR: Logfile of failure stored in: /data/imx_bsp_imx8miniquad/imx-yocto-bsp/build_imx8mm/tmp/work/cortexa53-crypto-mx8mm-poky-linux/firefox/68.9.0esr-r0/temp/log.do_compile.58308
ERROR: Task (/data/imx_bsp_imx8miniquad/imx-yocto-bsp/sources/meta-browser/meta-firefox/recipes-browser/firefox/firefox_68.9.0esr.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3767 tasks of which 3766 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /data/imx_bsp_imx8miniquad/imx-yocto-bsp/sources/meta-browser/meta-firefox/recipes-browser/firefox/firefox_68.9.0esr.bb:do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

 

 

0 项奖励
回复

5,708 次查看
himanshu_bhavani
Contributor I

Hi @Harvey021 ,

 

I have followed steps as suggested. Still no solution. Can you please have a look again and share any suggestions feedback or solution?

 

 

0 项奖励
回复

4,446 次查看
michael_schweik
Contributor I

Hi, 

did you have solved your problem ?

thanks Michael

0 项奖励
回复