Bug 8308 - [ADT] Fail to install adt-installer
Summary: [ADT] Fail to install adt-installer
Status: VERIFIED FIXED
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium critical
Target Milestone: 2.0
Assignee: Juro Bystricky
QA Contact: Valentin Hangan
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-09-16 07:22 UTC by Valentin Hangan
Modified: 2015-12-14 10:11 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valentin Hangan 2015-09-16 07:22:37 UTC
Spider mode enabled. Check if remote file exists.
--2015-09-16 10:19:10--  http://adtrepo-dev.yoctoproject.org//1.8+snapshot-ea562de57590c966cd5a75fda8defecd397e6436-master
Resolving proxy-jf.intel.com (proxy-jf.intel.com)... 10.7.211.16
Connecting to proxy-jf.intel.com (proxy-jf.intel.com)|10.7.211.16|:911... connected.
Proxy request sent, awaiting response... 301 Moved Permanently
Location: http://adtrepo-dev.yoctoproject.org/1.8+snapshot-ea562de57590c966cd5a75fda8defecd397e6436-master/ [following]
Spider mode enabled. Check if remote file exists.
--2015-09-16 10:19:10--  http://adtrepo-dev.yoctoproject.org/1.8+snapshot-ea562de57590c966cd5a75fda8defecd397e6436-master/
Connecting to proxy-jf.intel.com (proxy-jf.intel.com)|10.7.211.16|:911... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Remote file exists and could contain further links,
but recursion is disabled -- not retrieving.

OPKG is not setup, setting up opkg in local, which is required for installing yocto ADT...

Configure opkg ...

Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
configure: error: Package requirements (libarchive) were not met:

No package 'libarchive' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBARCHIVE_CFLAGS
and LIBARCHIVE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Comment 1 Beth Flanagan 2015-09-16 10:43:43 UTC
This isn't an issue with adt so much as an issue with the opkg upgrade at http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=08e09222b2b8a0ac4f60f02c002b185318a2110b

opkg builds now requires libtool, automake, autoconf and libarchive. Once those are installed on the host system, things work smoothly.
Comment 2 Alejandro del Castillo 2015-09-20 19:07:20 UTC
*** Bug 8324 has been marked as a duplicate of this bug. ***
Comment 3 Alejandro del Castillo 2015-09-20 19:11:42 UTC
Yes, opkg added a dependency on libarchive on 0.3.0. I think it has always depended on autoconf, libtool and automake, I guess it's more common for hosts to have those tools than libarchive. Since what's missing is a prerequisite on the host, I am thinking the solution should be just a message instructing the user to install libarchive on his host before proceeding. Would that be sufficient?
Comment 4 Alejandro del Castillo 2015-09-23 21:07:26 UTC
Re-categorizing as ADT since the solution would be to add checks for opkg build dependencies (libtool, autoreconf, automake, libarchive) to the adt-installer script to give a meaningful error to the user if one of the tools is missing.
Comment 5 Juro Bystricky 2015-09-24 23:36:36 UTC
The error message is a bit misleading, the package that needs to be installed is
"libarchive-dev". 
Once that is installed, I get another error:

Link the ld.so.cache file into the host filesystem
ln: failed to create symbolic link ‘/opt/adt/sysroots/x86_64-pokysdk-linux//etc/ld.so.cache’: No such file or directory
Comment 6 Juro Bystricky 2015-10-14 19:55:45 UTC
ADT installer builds with 
"master:556c0ea92eb32ddb9c9a5e30a74b2ca24ac69c68"

(Providing "libarchive-dev" is installed on the host system).
However, it is not possible to test it at this time, as 
http://adtrepo.yoctoproject.org/2.0 is not built yet.
Comment 7 Alexandru Georgescu 2015-10-15 07:12:21 UTC
(In reply to comment #6)
> ADT installer builds with 
> "master:556c0ea92eb32ddb9c9a5e30a74b2ca24ac69c68"
> 
> (Providing "libarchive-dev" is installed on the host system).
> However, it is not possible to test it at this time, as 
> http://adtrepo.yoctoproject.org/2.0 is not built yet.

Maybe Beth can help you with this one?
Comment 8 Beth Flanagan 2015-10-15 10:12:18 UTC
You should use the QA adt installer:

https://autobuilder.yoctoproject.org/pub/releases/yocto-2.0.rc1/adt-installer-QA/
Comment 9 Alexandru Georgescu 2015-11-06 14:00:27 UTC
filled in the regression type
Comment 10 Yi Zhao 2015-11-09 06:51:59 UTC
For 2.0 rc3 (jethro/fc45deac89ef63ca1c44e763c38ced7dfd72cbe1), the adt-installer only failed to install on centos 6 (both i686 and x86_64) as bug 8324 described.
Comment 11 Richard Purdie 2015-11-19 15:47:08 UTC
There is a separate bug covering the centos6 issue, the rest was documented and worked in the 2.0 release so we can close this.
Comment 12 Valentin Hangan 2015-11-26 11:04:04 UTC
Verfied