Wind River Support Network

HomeDefectsLIN7-3371
Fixed

LIN7-3371 : CLONE - archiver feature causes build failure

Created: Apr 7, 2015    Updated: Sep 8, 2018
Resolved Date: Apr 19, 2015
Previous ID: LIN6-9679
Found In Version: 7.0
Fix Version: 7.0.0.5
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Build & Config

Description

When creating a project with the feature/archiver the build fails due to Exception: IOError: [Errno 13] Permission denied: 'libgpg-error-1.12/.pc/pkgconfig.patch/src/gpg-error.pc.in'

Workaround

not really a worakround but confirms the issue with the archiver feature:
- remove the --with-template=feature/archiver
- make reconfig; make
and the build succeeds.

Steps to Reproduce

create a project like this:
/net/ala-lpd-test2/data/fast_prod/wrlinuxcgp-60017/lp02_14sp/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-rootfs=glibc-core --enable-kernel=standard  --with-template=feature/archiver --with-license-flags-blacklist=GPLv3,LGPLv3 

the build fails with:
...
The stack trace of python calls that resulted in this exception/failure was:
File: 'do_ar_configured', lineno: 37, function: <module>
     0033:                    'build.%s.ar_configured' % d.getVar('PF', True)))
     0034:        create_tarball(d, srcdir, 'configured', ar_outdir)
     0035:
     0036:
 *** 0037:do_ar_configured(d)
     0038:
File: 'do_ar_configured', lineno: 34, function: do_ar_configured
     0030:        if srcdir != builddir:
     0031:            if os.path.exists(builddir):
     0032:                oe.path.copytree(builddir, os.path.join(srcdir, \
     0033:                    'build.%s.ar_configured' % d.getVar('PF', True)))
 *** 0034:        create_tarball(d, srcdir, 'configured', ar_outdir)
     0035:
     0036:
     0037:do_ar_configured(d)
     0038:
File: 'archiver.bbclass', lineno: 21, function: create_tarball
     0017:    os.chdir(dirname)
     0018:    bb.note('Creating %s' % tarname)
     0019:    tar = tarfile.open(tarname, 'w:gz')
     0020:    if os.path.exists(basename):
 *** 0021:        tar.add(basename)
     0022:    tar.close()
     0023:
File: '/builds/intel_x86_64_gplv2_defect2/bitbake_build/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python2.7/tarfile.py', lineno: 1999, function: add
     1995:            self.addfile(tarinfo)
     1996:            if recursive:
     1997:                for f in os.listdir(name):
     1998:                    self.add(os.path.join(name, f), os.path.join(arcname, f),
 *** 1999:                            recursive, exclude, filter)
     2000:
     2001:        else:
     2002:            self.addfile(tarinfo)
     2003:
File: '/builds/intel_x86_64_gplv2_defect2/bitbake_build/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python2.7/tarfile.py', lineno: 1999, function: add
     1995:            self.addfile(tarinfo)
     1996:            if recursive:
     1997:                for f in os.listdir(name):
     1998:                    self.add(os.path.join(name, f), os.path.join(arcname, f),
 *** 1999:                            recursive, exclude, filter)
     2000:
     2001:        else:
     2002:            self.addfile(tarinfo)
     2003:
File: '/builds/intel_x86_64_gplv2_defect2/bitbake_build/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python2.7/tarfile.py', lineno: 1999, function: add
     1995:            self.addfile(tarinfo)
     1996:            if recursive:
     1997:                for f in os.listdir(name):
     1998:                    self.add(os.path.join(name, f), os.path.join(arcname, f),
 *** 1999:                            recursive, exclude, filter)
     2000:
     2001:        else:
     2002:            self.addfile(tarinfo)
     2003:
File: '/builds/intel_x86_64_gplv2_defect2/bitbake_build/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python2.7/tarfile.py', lineno: 1999, function: add
     1995:            self.addfile(tarinfo)
     1996:            if recursive:
     1997:                for f in os.listdir(name):
     1998:                    self.add(os.path.join(name, f), os.path.join(arcname, f),
 *** 1999:                            recursive, exclude, filter)
     2000:
     2001:        else:
     2002:            self.addfile(tarinfo)
     2003:
File: '/builds/intel_x86_64_gplv2_defect2/bitbake_build/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python2.7/tarfile.py', lineno: 1990, function: add
     1986:                return
     1987:
     1988:        # Append the tar header and data to the archive.
     1989:        if tarinfo.isreg():
 *** 1990:            f = bltn_open(name, "rb")
     1991:            self.addfile(tarinfo, f)
     1992:            f.close()
     1993:
     1994:        elif tarinfo.isdir():
Exception: IOError: [Errno 13] Permission denied: 'libgcrypt-1.5.3/.pc/add-pkgconfig-support.patch/src/libgcrypt.pc.in'

ERROR: Function failed: do_ar_configured
ERROR: Logfile of failure stored in: /builds/intel_x86_64_gplv2_defect2/bitbake_build/tmp/work/x86_64-linux/libgcrypt-native/1.5.3-r0/temp/do_ar_configured/log.do_ar_configured.20195
ERROR: Task 2830 (virtual:native:/builds/intel_x86_64_gplv2_defect2/layers/oe-core/meta/recipes-support/libgcrypt/libgcrypt_1.5.3.bb, do_ar_configured) failed with exit code '1'

(see attached log)

Other Downloads


Live chat
Online