To whom it may concern,
My name is Kevin Dious and I am writing because I am trying to use the linaro_android_build_cmds.sh script to build Linaro Android for the Versatile Express. Specifically, I am trying to build the following:
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-14.04-release/
Script link:
http://snapshots.linaro.org/android/~linaro-android/vexpress-linaro-14.04-release/1/linaro_android_build_cmds.sh
When I run the script, I get the following error initially (highlighted in yellow):
Package acpica-tools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package acpica-tools has no installation candidate
kdious@eco-build1:/local/mnt/workspace/vexpress-linaro-build-309$
I noticed that the acpica-tools package is only available for Ubuntu 14.04 (Trusty Tahr). However, the script mentioned that it can be used for Ubunuu versions as old as 10.04 (see yellow heighted portion below). The acpica-tools package
is part of the list of packages that the script tries to download (see below highlighted line below):
UBUNTU=`cat /etc/issue.net | cut -d' ' -f2`
HOST_ARCH=`uname -m`
if [ ${HOST_ARCH} == "x86_64" ] ; then
PKGS='gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc uboot-mkimage
openjdk-6-jdk openjdk-6-jre vim-common python-parted python-yaml wget uuid-dev
acpica-tools'
else
echo "ERROR: Only 64bit Host(Build) machines are supported at the moment."
exit 1
fi
if [[ ${UBUNTU} =~ "13." || ${UBUNTU} =~ "12.10" ]]; then
#Install basic dev package missing in chrooted environments
sudo apt-get install software-properties-common
sudo dpkg --add-architecture i386
PKGS+=' libstdc++6:i386 git-core'
elif [[ ${UBUNTU} =~ "12.04" || ${UBUNTU} =~ "10.04" ]] ; then
#Install basic dev package missing in chrooted environments
sudo apt-get install python-software-properties
if [[ ${UBUNTU} =~ "12.04" ]]; then
PKGS+=' libstdc++6:i386 git-core'
else
PKGS+=' ia32-libs libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext'
fi
else
echo "ERROR: Only Ubuntu 10.04, 12.* and 13.04 versions are supported."
exit 1
fi
If I remove the reference to the acpica-tools package (the blue highlighted section above), the script does progress further but the following error is hit (See green highlighted error message below):
Your Name [Kevin Dious]:
Your Email [kdious@eco-build1.qualcomm.com]: kdious@quicinc.com
Your identity is: Kevin Dious <kdious@quicinc.com>
is this correct [y/N]? y
repo has been initialized in /local/mnt/workspace/vexpress-linaro-build-309/git-1.7.9.5/android
cp: missing destination file operand after `.repo/manifest.xml'
Try `cp --help' for more information.
kdious@eco-build1:/local/mnt/workspace/vexpress-linaro-build-309$
From looking at the script, it seems as if the following line is failing (See green highlighted line below):
# download the android code
./repo init -u ${MANIFEST_REPO} -b ${MANIFEST_BRANCH} -m ${MANIFEST_FILENAME} --repo-url=git://android.git.linaro.org/tools/repo -g common,vexpress
if [ ${EXACT} -eq 1 ] ; then
rm .repo/manifest.xml
cp $MANIFEST .repo/manifest.xml
fi
So I have a few questions:
a)
Is the acpica-tools package truly necessary in order to build Linaro Android? If so, how are you able to build it on versions of Ubuntu older than 14.04?
b)
IS there some workaround that we can use to get around the cp error referenced above?
Any help that you can provide would be greatly appreciated. Thank you.
Regards,
Kevin Dious
Qualcomm Innovation Center, Inc.
5755 Morehouse Drive
San Diego, CA 92121-1714
(858) 651-2014 (Phone)
(858) 845-7478 (Fax)
kdious@quicinc.com