Bug 8324 - Fail to install adt on centos 6
Summary: Fail to install adt on centos 6
Status: VERIFIED FIXED
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.9
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.1 M2
Assignee: Scott Rifenbark
QA Contact: Yi Zhao
URL:
Whiteboard: 03 March 1016: Correction applied
Depends on:
Blocks:
 
Reported: 2015-09-18 06:45 UTC by Yi Zhao
Modified: 2016-03-03 16:56 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: Done (doc changes complete)


Attachments
adt_insaller.log (13.05 KB, text/x-log)
2015-09-18 06:45 UTC, Yi Zhao
no flags Details
ADT installer log; ADT successfully installed. (484.11 KB, text/x-log)
2016-01-26 22:59 UTC, Juro Bystricky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2015-09-18 06:45:35 UTC
Created attachment 2744 [details]
adt_insaller.log

adt-installer location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.8_M3.rc1/adt-installer-QA/

Git rev: master/ea562de57590c966cd5a75fda8defecd397e6436

Steps:
Download adt-installer.tar.bz2 and install it on CentOS 6.7 (i686 and x86_64)

Error message:
#########################
make[2]: Entering directory `/home/build/adt-installer/opkg/build/opkg-svn/src'
  CC     opkg.o
  CCLD   opkg
../libopkg/.libs/libopkg.a(opkg_archive.o): In function `ar_close':
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:777: undefined reference to `archive_read_free'
../libopkg/.libs/libopkg.a(opkg_archive.o): In function `inner_close':
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:60: undefined reference to `archive_read_free'
../libopkg/.libs/libopkg.a(opkg_archive.o): In function `extract_all':
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:477: undefined reference to `archive_write_free'
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:477: undefined reference to `archive_write_free'
../libopkg/.libs/libopkg.a(opkg_archive.o): In function `open_compressed_file':
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:638: undefined reference to `archive_read_support_filter_gzip'
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:668: undefined reference to `archive_read_free'
../libopkg/.libs/libopkg.a(opkg_archive.o): In function `ar_open_compressed_file':
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:748: undefined reference to `archive_read_free'
../libopkg/.libs/libopkg.a(opkg_archive.o): In function `open_inner':
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:533: undefined reference to `archive_read_support_filter_gzip'
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:561: undefined reference to `archive_read_free'
../libopkg/.libs/libopkg.a(opkg_archive.o): In function `extract_outer':
/home/build/adt-installer/opkg/build/opkg-svn/libopkg/opkg_archive.c:621: undefined reference to `archive_read_free'
collect2: ld returned 1 exit status
make[2]: *** [opkg] Error 1
make[2]: Leaving directory `/home/build/adt-installer/opkg/build/opkg-svn/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/build/adt-installer/opkg/build/opkg-svn'
make: *** [all] Error 2
######################
Comment 1 Alejandro del Castillo 2015-09-20 19:07:20 UTC
Seems to be the same issue as Yocto 8308: opkg 0.3.0 build requires libarchive.

*** This bug has been marked as a duplicate of bug 8308 ***
Comment 2 Yi Zhao 2015-09-21 03:22:22 UTC
Hi,

I add the comment to this bug because I was not permitted to edit bug 8308 in product opkg :(

I also encounter bug 8303 when I tested ADT, but I found if I installed libarchive-dev (ubuntu/debian) / libarchive-devel (fedora) on the host, the issue disappeared.

For bug 8324, the libarchive version is 2.8.3 on CentOS 6, looks like it is too old to make the okpg build failed.
Comment 3 Yi Zhao 2015-12-17 05:23:12 UTC
This issue still happens on 2.1 M1
Comment 4 Stephen K Jolley 2015-12-17 15:37:02 UTC
Juro will see if we are keeping ADT Installer in YP 2.1.
Comment 5 Juro Bystricky 2016-01-26 22:59:03 UTC
Created attachment 2950 [details]
ADT installer log; ADT successfully installed.
Comment 6 Juro Bystricky 2016-01-26 22:59:39 UTC
The new package manager OPKG needs newer libarchive-devel-3.1.3.
This library needs libarchive13, which in turn needs the library liblzma5.
 
I was able to install ADT on Cents6.7 using the following steps:

1. Download http://downloads.yoctoproject.org/releases/yocto/yocto-2.0/adt-installer/adt_installer.tar.bz2

2. Download and install libarchive-devel-3.1.3:
ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/AndreasStieger:/branches:/Archiving/CentOS_CentOS-6/x86_64/libarchive-devel-3.1.2-57.2.x86_64.rpm

3. Download an install libarchive:
ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/AndreasStieger:/branches:/Archiving/CentOS_CentOS-6/x86_64/libarchive13-3.1.2-57.2.x86_64.rpm

4. Download and install liblzma5:
ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/AndreasStieger:/branches:/Archiving/CentOS_CentOS-6/x86_64/liblzma5-5.2.0-103.1.x86_64.rpm

After this, I was able to install ADT, see the attached log.
Comment 7 Juro Bystricky 2016-01-26 23:12:37 UTC
Obviously, the libraries must be installed in reversed order.
Comment 8 Scott Rifenbark 2016-01-27 23:24:53 UTC
So this bug is assigned to me.  For 2.1 I think we are getting rid of the ADT installer in favor of the standard and extensible SDK stuff.  Does this bug apply to the documentation any longer?  

If it does, can someone summarize the additional host packages that would need to be installed for Debian/Ubuntu, Fedora, and CentOS?  

Thanks,
Scott
Comment 9 Yi Zhao 2016-01-29 03:10:02 UTC
(In reply to comment #6)
> The new package manager OPKG needs newer libarchive-devel-3.1.3.
> This library needs libarchive13, which in turn needs the library liblzma5.
>  
> I was able to install ADT on Cents6.7 using the following steps:
> 
> 1. Download
> http://downloads.yoctoproject.org/releases/yocto/yocto-2.0/adt-installer/
> adt_installer.tar.bz2
> 
> 2. Download and install libarchive-devel-3.1.3:
> ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/
> AndreasStieger:/branches:/Archiving/CentOS_CentOS-6/x86_64/libarchive-devel-
> 3.1.2-57.2.x86_64.rpm
> 
> 3. Download an install libarchive:
> ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/
> AndreasStieger:/branches:/Archiving/CentOS_CentOS-6/x86_64/libarchive13-3.1.
> 2-57.2.x86_64.rpm
> 
> 4. Download and install liblzma5:
> ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/
> AndreasStieger:/branches:/Archiving/CentOS_CentOS-6/x86_64/liblzma5-5.2.0-
> 103.1.x86_64.rpm
> 
> After this, I was able to install ADT, see the attached log.

Following the above steps, the adt-installer works on CentOS 6 for 2.1_M2 build
Comment 10 Scott Rifenbark 2016-02-02 23:53:17 UTC
Hey, 

Do we even care about ADT Installer for YP 2.1?  

Scott
Comment 11 Juro Bystricky 2016-02-04 16:17:30 UTC
(In reply to comment #8)
> So this bug is assigned to me.  For 2.1 I think we are getting rid of the
> ADT installer in favor of the standard and extensible SDK stuff.  Does this
> bug apply to the documentation any longer?  
> 
> If it does, can someone summarize the additional host packages that would
> need to be installed for Debian/Ubuntu, Fedora, and CentOS?  
> 
> Thanks,
> Scott

In the reference manual, there is already a section regarding Centos6 limitations. So it just needs to be expanded, i.e. ADT also needs libarchive-devel-3.1.3. (which needs libarchive3.x, which needs liblzma5)
Comment 12 Scott Rifenbark 2016-02-04 17:24:33 UTC
Hi, 

In the ref-manual, the only limitations stuff regarding CentOS is a note in the area involved with the host package requirements.  I updated that "Note" to a "Notes" box and added a bullet for the ADT installation script. I don't know if what I have there is totally correct.  Can you look at it and tell me if this works?

http://www.yoctoproject.org/docs/temp/ref-manual/ref-manual.html#centos-packages

Thanks,
Scott
Comment 13 Juro Bystricky 2016-02-04 18:13:21 UTC
(In reply to comment #12)
> Hi, 
> 
> In the ref-manual, the only limitations stuff regarding CentOS is a note in
> the area involved with the host package requirements.  I updated that "Note"
> to a "Notes" box and added a bullet for the ADT installation script. I don't
> know if what I have there is totally correct.  Can you look at it and tell
> me if this works?
> 
> http://www.yoctoproject.org/docs/temp/ref-manual/ref-manual.html#centos-
> packages
> 
> Thanks,
> Scott

Maybe the ADT Installer Extras should explicitly say "libarchive-devel-3.1.3 or later" instead of "libarchive-devel"
Unfortunately, CentOS does not provide the needed libraries, so a third party link has to be used, not sure how to handle this.
Comment 14 Scott Rifenbark 2016-02-04 18:32:48 UTC
Juro, 

I should have that note down in the "ADT Extras" anyway... let me work on that.
Comment 15 Scott Rifenbark 2016-02-04 18:40:08 UTC
Juro, 

I think this will work: http://www.yoctoproject.org/docs/temp/ref-manual/ref-manual.html#centos-packages.  Putting the note in the specific ADT part isolates it down.  I don't think we want to change the actual package name in the example sudo yum command because the restriction is for certain versions of CentOS right?  So we can leave that part alone.  The note is pretty clear regarding the version they need to deal with CentOS 6.x.

Does this work?

Scott
Comment 16 Paul Eggleton 2016-02-04 19:16:14 UTC
I should really have said something earlier - Juro I know you sent me an email, sorry I didn't reply.

Honestly I wouldn't spend any more time on this; it's fairly clear to me we won't be shipping the ADT in the upcoming release. I'd prefer to have removed it in M1 or even M2, but we're still in the situation where we don't have a complete replacement.
Comment 17 Juro Bystricky 2016-02-04 20:27:58 UTC
(In reply to comment #15)
> Juro, 
> 
> I think this will work:
> http://www.yoctoproject.org/docs/temp/ref-manual/ref-manual.html#centos-
> packages.  Putting the note in the specific ADT part isolates it down.  I
> don't think we want to change the actual package name in the example sudo
> yum command because the restriction is for certain versions of CentOS right?
> So we can leave that part alone.  The note is pretty clear regarding the
> version they need to deal with CentOS 6.x.
> 
> Does this work?
> 
> Scott

(or older)? I think it should say (or newer). But otherwise it is correct.
Comment 18 Juro Bystricky 2016-02-04 20:31:14 UTC
(In reply to comment #16)
> I should really have said something earlier - Juro I know you sent me an
> email, sorry I didn't reply.
> 
> Honestly I wouldn't spend any more time on this; it's fairly clear to me we
> won't be shipping the ADT in the upcoming release. I'd prefer to have
> removed it in M1 or even M2, but we're still in the situation where we don't
> have a complete replacement.

So is it official (yay!) ? Anyway, this bug is filed for 1.9 and also observed with 2.0 so if the document itself mentions ADT, it should be revised accordingly (single sentence is ok)
Comment 19 Juro Bystricky 2016-02-04 20:32:01 UTC
(In reply to comment #16)
> I should really have said something earlier - Juro I know you sent me an
> email, sorry I didn't reply.
> 
> Honestly I wouldn't spend any more time on this; it's fairly clear to me we
> won't be shipping the ADT in the upcoming release. I'd prefer to have
> removed it in M1 or even M2, but we're still in the situation where we don't
> have a complete replacement.

So is it official (yay!) ? Anyway, this bug is filed for 1.9 and also observed with 2.0 so if the document itself mentions ADT, it should be revised accordingly (single sentence is ok)
Comment 20 Paul Eggleton 2016-02-04 20:37:27 UTC
Right, I guess if it's observed with 2.0 and we have a workaround we should probably fix/document it for the purposes of a future point release.
Comment 21 Scott Rifenbark 2016-02-04 20:42:47 UTC
So just ignore this whole issue for 2.1?
Comment 22 Scott Rifenbark 2016-02-04 20:44:16 UTC
I will get those fixes into the jethro branch then.
Comment 23 Scott Rifenbark 2016-02-04 20:57:04 UTC
Changes pushed into the jethro branch only.  Marked as RESOLVED and set doc flag to "done."

Scott
Comment 24 Yi Zhao 2016-03-02 07:55:52 UTC
Verified it.
(In reply to comment #17)
> (In reply to comment #15)
> > Juro, 
> > 
> > I think this will work:
> > http://www.yoctoproject.org/docs/temp/ref-manual/ref-manual.html#centos-
> > packages.  Putting the note in the specific ADT part isolates it down.  I
> > don't think we want to change the actual package name in the example sudo
> > yum command because the restriction is for certain versions of CentOS right?
> > So we can leave that part alone.  The note is pretty clear regarding the
> > version they need to deal with CentOS 6.x.
> > 
> > Does this work?
> > 
> > Scott
> 
> (or older)? I think it should say (or newer). But otherwise it is correct.

Hi Scott,

I still get (or older) in this page: http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#required-packages-for-the-host-development-system

Should be (or newer) ?

Thanks,
Yi
Comment 25 Scott Rifenbark 2016-03-03 16:56:11 UTC
Hi, 

I know this is marked VERIFIED/FIXED....However, I went in and made that change because I did have it backwards.

See http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#centos-packages

Thanks, 
Scott