Tool/software: Linux
Gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.tx comes from the following link:
releases.linaro.org/.../gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz
I encountered the following problems in the compilation process. How can I solve them?
[root@MSO:build]#
[root@MSO:build]#
[root@MSO:build]# . conf/setenv
[root@MSO:build]# MACHINE=am57xx-evm bitbake opencl
Loading cache: 100% |#########################################################################################################################################################################| Time: 0:00:01
Loaded 3236 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-linux-gnueabi"
MACHINE = "am57xx-evm"
DISTRO = "arago"
DISTRO_VERSION = "2017.05"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-processor-sdk = "HEAD:3d2f620a6a98b1b6abb1103d7dc986921436ed19"
meta-arago-distro
meta-arago-extras = "HEAD:b727bf8fce8e9cb5a6b5d5b48c45f0088e67eb53"
meta-browser = "HEAD:880a7bd1d3b9a1b2003f5b0620350f03158bbd43"
meta-qt5 = "HEAD:3601fd2c5306ac6d5d0d536e0be8cbb90da9b4c1"
meta-networking
meta-ruby
meta-python
meta-oe
meta-gnome = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-ti = "HEAD:41d6fdc0fe5ea6054616cfccda13baac3ff33791"
meta-linaro-toolchain
meta-optee = "HEAD:d84874bad834657dd04ea69c35a74dd9dbd535b8"
meta = "HEAD:ddf907ca95a19f54785079b4396935273b3747f6"
Initialising tasks: 100% |####################################################################################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: external-linaro-toolchain-2016.11-r0.arago35.tisdk0 do_install: Function failed: do_install (log file is located at /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/temp/log.do_install.29918)
ERROR: Logfile of failure stored in: /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/temp/log.do_install.29918
Log data follows:
| DEBUG: Executing shell function do_install
| cp: cannot stat ‘/root/factory/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/libc/usr/share/*’: No such file or directory
| WARNING: /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/temp/run.do_install.29918:1 exit 1 from 'cp -a /root/factory/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/libc/usr/share/* /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/image/usr/share'
| ERROR: Function failed: do_install (log file is located at /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/temp/log.do_install.29918)
ERROR: Task (/root/psdk/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 162 tasks of which 161 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/root/psdk/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb:do_install
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[root@MSO:build]# \
> ^C
[root@MSO:build]#
[root@MSO:build]#
[root@MSO:build]#
[root@MSO:build]#
[root@MSO:build]#
[root@MSO:build]# echo $PATH
/root/psdk/tisdk/sources/meta-browser/scripts:/root/psdk/tisdk/sources/oe-core/scripts:/root/psdk/tisdk/sources/bitbake/bin:/root/psdk/tisdk/sources/meta-browser/scripts:/root/psdk/tisdk/sources/oe-core/scripts:/root/psdk/tisdk/sources/bitbake/bin:/root/psdk/tisdk/sources/meta-browser/scripts:/root/psdk/tisdk/sources/oe-core/scripts:/root/psdk/tisdk/sources/bitbake/bin:/root/psdk/cross_compile/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/root/factory/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
[root@MSO:build]#
[root@MSO:build]#
[root@MSO:build]#
[root@MSO:build]# echo ~/.
./ .bashrc .dbus/ .lesshst .pki/ .subversion/ .viminfo .xsession-errors.old
../ .cache/ .dmrc .local/ .profile .swt/ .wgetrc
.aptitude/ .compiz/ .gconf/ .minirc.dfl .python-history .ti/ .Xauthority
.bash_history .config/ .ICEauthority .oracle_jre_usage/ .ssh/ .vim/ .xsession-errors
[root@MSO:build]# echo ~/.bashrc
/root/.bashrc
[root@MSO:build]# cat ~/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='[${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]]\$ '
else
PS1='[${debian_chroot:+($debian_chroot)}\u@\h:\W]\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi
#export PATH=$PATH:/home/mso/ti-processor-sdk-linux-rt-am57xx-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
#export PATH=$PATH:/home/mso/ti-processor-sdk-linux-rt-am57xx-evm-04.00.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
#export PATH=$PATH:/home/mso/ti-processor-sdk-linux-rt-am57xx-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
export PATH=/root/psdk/cross_compile/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf:$PATH
export PATH=$PATH:/root/factory/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
#export PATH=$PATH:/root/f***_dsp/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
export TOOLCHAIN_PATH_ARMV7=/root/psdk/cross_compile/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf
export TOOLCHAIN_PATH_ARMV8=/root/psdk/cross_compile/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu
#export http_proxy='<a href="127.0.0.1:8123/.../a>
#export https_proxy='<a href="127.0.0.1:8123/.../a>
#export ftp_proxy='<a href="127.0.0.1:8123/.../a>
#export ALL_PROXY='socks://127.0.0.1:8123/'
#export all_proxy='socks://127.0.0.1:8123/'
#export no_proxy='example.com'
#export GIT_PROXY_COMMAND="oe-git-proxy"
#export NO_PROXY=$no_proxy
[root@MSO:build]#
I made some errors while executing the "MACHINE=am57xx-evm bitbake arago-base-tisdk-image" command.
By analyzing the log, I found that the link of some files failed and the corresponding file could not be searched on the previous path of the link.The link "downloads.yoctoproject.org/.../git2_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.gz", for example, git2_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.gz this file no.How can I solve this problem?Or can you compile a DSP binary file of 512M? I will directly copy the DSP binary file you compiled.
def base_do_fetch(d):
src_uri = (d.getVar('SRC_URI', True) or "").split()
if len(src_uri) == 0:
return
try:
fetcher = bb.fetch2.Fetch(src_uri, d)
fetcher.download()
except bb.fetch2.BBFetchException as e:
bb.fatal(str(e))
base_do_fetch(d)