All of lore.kernel.org
 help / color / mirror / Atom feed
* Building Linux Error
@ 2019-12-10 10:12 Kamel Ghalgaoui
  2019-12-10 11:03 ` Ross Burton
  0 siblings, 1 reply; 12+ messages in thread
From: Kamel Ghalgaoui @ 2019-12-10 10:12 UTC (permalink / raw)
  To: openembedded-devel

Hello,

I try to build an embedded linux system for my raspberrypi3 board using
yocto on Ubuntu 16.04 I use stable branch fido. But I got this error:

kamel@ThinkPad-E590:/opt/yocto/poky/build$ bitbake core-image-minimal
Parsing recipes: 100%
|########################################################################################################|
Time: 0:00:33 Parsing of 1499 .bb files complete (0 cached, 1499 parsed).
2061 targets, 132 skipped, 0 masked, 0 errors. NOTE: Resolving any missing
task queue dependencies Build Configuration: BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS =
"arm-poky-linux-gnueabi" MACHINE = "raspberrypi3" DISTRO = "poky"
DISTRO_VERSION = "2.2.4" TUNE_FEATURES = "arm armv7ve vfp thumb neon vfpv4
callconvention-hard cortexa7" TARGET_FPU = "hard" meta meta-poky
meta-yocto-bsp = "fido:e56be3cee517c5262486136dbd6d649b68c3a8b7" meta-oe =
"fido:997caf9146cd3797cd054e2adebd1fbb4df91911" meta-raspberrypi =
"fido:2a192261a914892019f4f428d7462bb3c585ebac" Initialising tasks: 100%
|#####################################################################################################|
Time: 0:00:06 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks
**ERROR:** *quilt-native-0.64-r0 do_populate_lic: Error executing a python
function in exec_python_func() autogenerated: The stack trace of python
calls that resulted in this exception/failure was: File:
'exec_python_func() autogenerated', lineno: 2, function: <module>*

Note:
- I have install all pre-requisites:
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo
gcc-multilib build-essential chrpath socat make xsltproc docbook-utils fop
dblatex xmlto libsdl1.2-dev xterm install python-git

- I tried with warrior and thud branch, but I got the same error

How do I resolve these ?

Thank you

KAMEL.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-10 10:12 Building Linux Error Kamel Ghalgaoui
@ 2019-12-10 11:03 ` Ross Burton
  2019-12-10 19:12   ` Kamel Ghalgaoui
  0 siblings, 1 reply; 12+ messages in thread
From: Ross Burton @ 2019-12-10 11:03 UTC (permalink / raw)
  To: Kamel Ghalgaoui, openembedded-devel

On 10/12/2019 10:12, Kamel Ghalgaoui wrote:
> kamel@ThinkPad-E590:/opt/yocto/poky/build$ bitbake core-image-minimal
> Parsing recipes: 100%
> |########################################################################################################|
> Time: 0:00:33 Parsing of 1499 .bb files complete (0 cached, 1499 parsed).
> 2061 targets, 132 skipped, 0 masked, 0 errors. NOTE: Resolving any missing
> task queue dependencies Build Configuration: BB_VERSION = "1.32.0"
> BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS =
> "arm-poky-linux-gnueabi" MACHINE = "raspberrypi3" DISTRO = "poky"
> DISTRO_VERSION = "2.2.4" TUNE_FEATURES = "arm armv7ve vfp thumb neon vfpv4
> callconvention-hard cortexa7" TARGET_FPU = "hard" meta meta-poky
> meta-yocto-bsp = "fido:e56be3cee517c5262486136dbd6d649b68c3a8b7" meta-oe =
> "fido:997caf9146cd3797cd054e2adebd1fbb4df91911" meta-raspberrypi =
> "fido:2a192261a914892019f4f428d7462bb3c585ebac" Initialising tasks: 100%
> |#####################################################################################################|
> Time: 0:00:06 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks
> **ERROR:** *quilt-native-0.64-r0 do_populate_lic: Error executing a python
> function in exec_python_func() autogenerated: The stack trace of python
> calls that resulted in this exception/failure was: File:
> 'exec_python_func() autogenerated', lineno: 2, function: <module>*

You stopped including the message at the point that the actual error was 
shown.

That's Fido which is *very* old.  Please use Zeus if possible, Warrior 
if not (as you said that release already), and include the entire output.

Immediate hunch is that you don't have sufficient permissions in your 
build dir.

Ross


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-10 11:03 ` Ross Burton
@ 2019-12-10 19:12   ` Kamel Ghalgaoui
  2019-12-10 20:17     ` Andrey Zhizhikin
  0 siblings, 1 reply; 12+ messages in thread
From: Kamel Ghalgaoui @ 2019-12-10 19:12 UTC (permalink / raw)
  To: Ross Burton; +Cc: openembedded-devel

I try with zeus, but I got the same error:

kamel@ThinkPad-E590:/opt/yocto/poky/build$ git branch
  fido
  morty
  thud
  warrior
* zeus
kamel@ThinkPad-E590:/opt/yocto/poky/build$
kamel@ThinkPad-E590:/opt/yocto/poky/build$ bitbake core-image-minimal
Loading cache: 100%
|##########################################################################################################|
Time: 0:00:00
Loaded 2061 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "raspberrypi3"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2.4"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard
cortexa7"
TARGET_FPU        = "hard"
meta
meta-poky
meta-yocto-bsp    = "zeus:e56be3cee517c5262486136dbd6d649b68c3a8b7"
meta-oe           = "zeus:997caf9146cd3797cd054e2adebd1fbb4df91911"
meta-raspberrypi  = "zeus:2a192261a914892019f4f428d7462bb3c585ebac"

Initialising tasks: 100%
|#####################################################################################################|
Time: 0:00:04
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: quilt-native-0.64-r0 do_populate_lic: Error executing a python
function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:sstate_task_postfunc(d)
     0003:
File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 670, function:
sstate_task_postfunc
     0666:
     0667:python sstate_task_postfunc () {
     0668:    shared_state = sstate_state_fromvars(d)
     0669:
 *** 0670:    sstate_install(shared_state, d)
     0671:    for intercept in shared_state['interceptfuncs']:
     0672:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR",
True),))
     0673:    omask = os.umask(0o002)
     0674:    if omask != 0o002:
File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 274, function:
sstate_install
     0270:
     0271:    # Run the actual file install
     0272:    for state in ss['dirs']:
     0273:        if os.path.exists(state[1]):
 *** 0274:            oe.path.copyhardlinktree(state[1], state[2])
     0275:
     0276:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or
'').split():
     0277:        # All hooks should run in the SSTATE_INSTDIR
     0278:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/opt/yocto/poky/meta/lib/oe/path.py', lineno: 81, function:
copyhardlinktree
     0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0078:        # Need to copy directories only with tar first since cp
will error if two
     0079:        # writers try and create a directory at the same time
     0080:        cmd = "cd %s; find . -type d -print | tar --xattrs
--xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar
--xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
 *** 0081:        subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)
     0082:        source = ''
     0083:        if os.path.isdir(src):
     0084:            import glob
     0085:            if len(glob.glob('%s/.??*' % src)) > 0:
File: '/usr/lib/python3.5/subprocess.py', lineno: 626, function:
check_output
     0622:        # empty string. That is maintained here for backwards
compatibility.
     0623:        kwargs['input'] = '' if kwargs.get('universal_newlines',
False) else b''
     0624:
     0625:    return run(*popenargs, stdout=PIPE, timeout=timeout,
check=True,
 *** 0626:               **kwargs).stdout
     0627:
     0628:
     0629:class CompletedProcess(object):
     0630:    """A process that has finished running.
File: '/usr/lib/python3.5/subprocess.py', lineno: 708, function: run
     0704:            raise
     0705:        retcode = process.poll()
     0706:        if check and retcode:
     0707:            raise CalledProcessError(retcode, process.args,
 *** 0708:                                     output=stdout, stderr=stderr)
     0709:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0710:
     0711:
     0712:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd
/opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir;
find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C
/opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir
-p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf -
-C /opt/yocto/poky/build/tmp/deploy/licenses' returned non-zero exit status
64

Subprocess output:
tar: unrecognized option '--xattrs'
Try `tar --help' or `tar --usage' for more information.
tar: unrecognized option '--xattrs'
Try `tar --help' or `tar --usage' for more information.

ERROR: quilt-native-0.64-r0 do_populate_lic: Function failed:
sstate_task_postfunc
ERROR: Logfile of failure stored in:
/opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/temp/log.do_populate_lic.4692
ERROR: Task
(/opt/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:do_populate_lic)
failed with exit code '1'
ERROR: quilt-native-0.64-r0 do_populate_sysroot: Error executing a python
function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:sstate_task_postfunc(d)
     0003:
File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 670, function:
sstate_task_postfunc
     0666:
     0667:python sstate_task_postfunc () {
     0668:    shared_state = sstate_state_fromvars(d)
     0669:
 *** 0670:    sstate_install(shared_state, d)
     0671:    for intercept in shared_state['interceptfuncs']:
     0672:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR",
True),))
     0673:    omask = os.umask(0o002)
     0674:    if omask != 0o002:
File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 274, function:
sstate_install
     0270:
     0271:    # Run the actual file install
     0272:    for state in ss['dirs']:
     0273:        if os.path.exists(state[1]):
 *** 0274:            oe.path.copyhardlinktree(state[1], state[2])
     0275:
     0276:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or
'').split():
     0277:        # All hooks should run in the SSTATE_INSTDIR
     0278:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/opt/yocto/poky/meta/lib/oe/path.py', lineno: 81, function:
copyhardlinktree
     0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0078:        # Need to copy directories only with tar first since cp
will error if two
     0079:        # writers try and create a directory at the same time
     0080:        cmd = "cd %s; find . -type d -print | tar --xattrs
--xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar
--xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
 *** 0081:        subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)
     0082:        source = ''
     0083:        if os.path.isdir(src):
     0084:            import glob
     0085:            if len(glob.glob('%s/.??*' % src)) > 0:
File: '/usr/lib/python3.5/subprocess.py', lineno: 626, function:
check_output
     0622:        # empty string. That is maintained here for backwards
compatibility.
     0623:        kwargs['input'] = '' if kwargs.get('universal_newlines',
False) else b''
     0624:
     0625:    return run(*popenargs, stdout=PIPE, timeout=timeout,
check=True,
 *** 0626:               **kwargs).stdout
     0627:
     0628:
     0629:class CompletedProcess(object):
     0630:    """A process that has finished running.
File: '/usr/lib/python3.5/subprocess.py', lineno: 708, function: run
     0704:            raise
     0705:        retcode = process.poll()
     0706:        if check and retcode:
     0707:            raise CalledProcessError(retcode, process.args,
 *** 0708:                                     output=stdout, stderr=stderr)
     0709:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0710:
     0711:
     0712:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd
/opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/sysroot-destdir/opt/yocto/poky/build/tmp/sysroots/x86_64-linux;
find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C
/opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/sysroot-destdir/opt/yocto/poky/build/tmp/sysroots/x86_64-linux
-p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf -
-C /opt/yocto/poky/build/tmp/sysroots/x86_64-linux' returned non-zero exit
status 64

Subprocess output:
tar: unrecognized option '--xattrs'
Try `tar --help' or `tar --usage' for more information.
tar: unrecognized option '--xattrs'
Try `tar --help' or `tar --usage' for more information.

ERROR: quilt-native-0.64-r0 do_populate_sysroot: Function failed:
sstate_task_postfunc
ERROR: Logfile of failure stored in:
/opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/temp/log.do_populate_sysroot.4691
ERROR: Task
(/opt/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:do_populate_sysroot)
failed with exit code '1'

Second Keyboard Interrupt, stopping...


Summary: 2 tasks failed:
  /opt/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:
do_populate_lic
  /opt/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:
do_populate_sysroot
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

On Tue, Dec 10, 2019 at 12:03 PM Ross Burton <ross.burton@intel.com> wrote:

> On 10/12/2019 10:12, Kamel Ghalgaoui wrote:
> > kamel@ThinkPad-E590:/opt/yocto/poky/build$ bitbake core-image-minimal
> > Parsing recipes: 100%
> >
> |########################################################################################################|
> > Time: 0:00:33 Parsing of 1499 .bb files complete (0 cached, 1499 parsed).
> > 2061 targets, 132 skipped, 0 masked, 0 errors. NOTE: Resolving any
> missing
> > task queue dependencies Build Configuration: BB_VERSION = "1.32.0"
> > BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS =
> > "arm-poky-linux-gnueabi" MACHINE = "raspberrypi3" DISTRO = "poky"
> > DISTRO_VERSION = "2.2.4" TUNE_FEATURES = "arm armv7ve vfp thumb neon
> vfpv4
> > callconvention-hard cortexa7" TARGET_FPU = "hard" meta meta-poky
> > meta-yocto-bsp = "fido:e56be3cee517c5262486136dbd6d649b68c3a8b7" meta-oe
> =
> > "fido:997caf9146cd3797cd054e2adebd1fbb4df91911" meta-raspberrypi =
> > "fido:2a192261a914892019f4f428d7462bb3c585ebac" Initialising tasks: 100%
> >
> |#####################################################################################################|
> > Time: 0:00:06 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue
> Tasks
> > **ERROR:** *quilt-native-0.64-r0 do_populate_lic: Error executing a
> python
> > function in exec_python_func() autogenerated: The stack trace of python
> > calls that resulted in this exception/failure was: File:
> > 'exec_python_func() autogenerated', lineno: 2, function: <module>*
>
> You stopped including the message at the point that the actual error was
> shown.
>
> That's Fido which is *very* old.  Please use Zeus if possible, Warrior
> if not (as you said that release already), and include the entire output.
>
> Immediate hunch is that you don't have sufficient permissions in your
> build dir.
>
> Ross
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-10 19:12   ` Kamel Ghalgaoui
@ 2019-12-10 20:17     ` Andrey Zhizhikin
  2019-12-10 20:57       ` S. Lockwood-Childs
  0 siblings, 1 reply; 12+ messages in thread
From: Andrey Zhizhikin @ 2019-12-10 20:17 UTC (permalink / raw)
  To: Kamel Ghalgaoui; +Cc: openembedded-devel

On Tue, Dec 10, 2019 at 8:13 PM Kamel Ghalgaoui
<kamelghalgaoui7@gmail.com> wrote:
>
> I try with zeus, but I got the same error:
>
> kamel@ThinkPad-E590:/opt/yocto/poky/build$ git branch
>   fido
>   morty
>   thud
>   warrior
> * zeus
> kamel@ThinkPad-E590:/opt/yocto/poky/build$
> kamel@ThinkPad-E590:/opt/yocto/poky/build$ bitbake core-image-minimal
> Loading cache: 100%
> |##########################################################################################################|
> Time: 0:00:00
> Loaded 2061 entries from dependency cache.
> NOTE: Resolving any missing task queue dependencies
>
> Build Configuration:
> BB_VERSION        = "1.32.0"
> BUILD_SYS         = "x86_64-linux"
> NATIVELSBSTRING   = "universal"
> TARGET_SYS        = "arm-poky-linux-gnueabi"
> MACHINE           = "raspberrypi3"
> DISTRO            = "poky"
> DISTRO_VERSION    = "2.2.4"
> TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard
> cortexa7"
> TARGET_FPU        = "hard"
> meta
> meta-poky
> meta-yocto-bsp    = "zeus:e56be3cee517c5262486136dbd6d649b68c3a8b7"
> meta-oe           = "zeus:997caf9146cd3797cd054e2adebd1fbb4df91911"
> meta-raspberrypi  = "zeus:2a192261a914892019f4f428d7462bb3c585ebac"
>
> Initialising tasks: 100%
> |#####################################################################################################|
> Time: 0:00:04
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> ERROR: quilt-native-0.64-r0 do_populate_lic: Error executing a python
> function in exec_python_func() autogenerated:
>
> The stack trace of python calls that resulted in this exception/failure was:
> File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
>      0001:
>  *** 0002:sstate_task_postfunc(d)
>      0003:
> File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 670, function:
> sstate_task_postfunc
>      0666:
>      0667:python sstate_task_postfunc () {
>      0668:    shared_state = sstate_state_fromvars(d)
>      0669:
>  *** 0670:    sstate_install(shared_state, d)
>      0671:    for intercept in shared_state['interceptfuncs']:
>      0672:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR",
> True),))
>      0673:    omask = os.umask(0o002)
>      0674:    if omask != 0o002:
> File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 274, function:
> sstate_install
>      0270:
>      0271:    # Run the actual file install
>      0272:    for state in ss['dirs']:
>      0273:        if os.path.exists(state[1]):
>  *** 0274:            oe.path.copyhardlinktree(state[1], state[2])
>      0275:
>      0276:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or
> '').split():
>      0277:        # All hooks should run in the SSTATE_INSTDIR
>      0278:        bb.build.exec_func(postinst, d, (sstateinst,))
> File: '/opt/yocto/poky/meta/lib/oe/path.py', lineno: 81, function:
> copyhardlinktree
>      0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
>      0078:        # Need to copy directories only with tar first since cp
> will error if two
>      0079:        # writers try and create a directory at the same time
>      0080:        cmd = "cd %s; find . -type d -print | tar --xattrs
> --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar
> --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
>  *** 0081:        subprocess.check_output(cmd, shell=True,
> stderr=subprocess.STDOUT)
>      0082:        source = ''
>      0083:        if os.path.isdir(src):
>      0084:            import glob
>      0085:            if len(glob.glob('%s/.??*' % src)) > 0:
> File: '/usr/lib/python3.5/subprocess.py', lineno: 626, function:
> check_output
>      0622:        # empty string. That is maintained here for backwards
> compatibility.
>      0623:        kwargs['input'] = '' if kwargs.get('universal_newlines',
> False) else b''
>      0624:
>      0625:    return run(*popenargs, stdout=PIPE, timeout=timeout,
> check=True,
>  *** 0626:               **kwargs).stdout
>      0627:
>      0628:
>      0629:class CompletedProcess(object):
>      0630:    """A process that has finished running.
> File: '/usr/lib/python3.5/subprocess.py', lineno: 708, function: run
>      0704:            raise
>      0705:        retcode = process.poll()
>      0706:        if check and retcode:
>      0707:            raise CalledProcessError(retcode, process.args,
>  *** 0708:                                     output=stdout, stderr=stderr)
>      0709:    return CompletedProcess(process.args, retcode, stdout, stderr)
>      0710:
>      0711:
>      0712:def list2cmdline(seq):
> Exception: subprocess.CalledProcessError: Command 'cd
> /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir;
> find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C
> /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir
> -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf -
> -C /opt/yocto/poky/build/tmp/deploy/licenses' returned non-zero exit status
> 64
>
> Subprocess output:
> tar: unrecognized option '--xattrs'
> Try `tar --help' or `tar --usage' for more information.
> tar: unrecognized option '--xattrs'
> Try `tar --help' or `tar --usage' for more information.

My best guess would be: this error (and you would see much more of
those) is comming from the tar version which is included in Ubuntu
16.04 as this version is relatively old. I believe the next error with
that host distro would be from git: something with --set-upstream-to
would be an unrecognized option (modern git has changed syntax to
--set-upstream).

If you have any possibility to upgrade host distro - I would strongl
suggest you to do that. Otherwise - Docker with a bit newer distro
would be a good choice.

Ross,
Poky master still has ubuntu-16.04 as SANITY_TESTED_DISTROS, are we
absolutely sure that it is still supported? I guess with this report
this is not valid anymore... Or is this build error - something else?

Thanks a lot!

>
> ERROR: quilt-native-0.64-r0 do_populate_lic: Function failed:
> sstate_task_postfunc
> ERROR: Logfile of failure stored in:
> /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/temp/log.do_populate_lic.4692
> ERROR: Task
> (/opt/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:do_populate_lic)
> failed with exit code '1'
> ERROR: quilt-native-0.64-r0 do_populate_sysroot: Error executing a python
> function in exec_python_func() autogenerated:
>
> The stack trace of python calls that resulted in this exception/failure was:
> File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
>      0001:
>  *** 0002:sstate_task_postfunc(d)
>      0003:
> File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 670, function:
> sstate_task_postfunc
>      0666:
>      0667:python sstate_task_postfunc () {
>      0668:    shared_state = sstate_state_fromvars(d)
>      0669:
>  *** 0670:    sstate_install(shared_state, d)
>      0671:    for intercept in shared_state['interceptfuncs']:
>      0672:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR",
> True),))
>      0673:    omask = os.umask(0o002)
>      0674:    if omask != 0o002:
> File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 274, function:
> sstate_install
>      0270:
>      0271:    # Run the actual file install
>      0272:    for state in ss['dirs']:
>      0273:        if os.path.exists(state[1]):
>  *** 0274:            oe.path.copyhardlinktree(state[1], state[2])
>      0275:
>      0276:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or
> '').split():
>      0277:        # All hooks should run in the SSTATE_INSTDIR
>      0278:        bb.build.exec_func(postinst, d, (sstateinst,))
> File: '/opt/yocto/poky/meta/lib/oe/path.py', lineno: 81, function:
> copyhardlinktree
>      0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
>      0078:        # Need to copy directories only with tar first since cp
> will error if two
>      0079:        # writers try and create a directory at the same time
>      0080:        cmd = "cd %s; find . -type d -print | tar --xattrs
> --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar
> --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
>  *** 0081:        subprocess.check_output(cmd, shell=True,
> stderr=subprocess.STDOUT)
>      0082:        source = ''
>      0083:        if os.path.isdir(src):
>      0084:            import glob
>      0085:            if len(glob.glob('%s/.??*' % src)) > 0:
> File: '/usr/lib/python3.5/subprocess.py', lineno: 626, function:
> check_output
>      0622:        # empty string. That is maintained here for backwards
> compatibility.
>      0623:        kwargs['input'] = '' if kwargs.get('universal_newlines',
> False) else b''
>      0624:
>      0625:    return run(*popenargs, stdout=PIPE, timeout=timeout,
> check=True,
>  *** 0626:               **kwargs).stdout
>      0627:
>      0628:
>      0629:class CompletedProcess(object):
>      0630:    """A process that has finished running.
> File: '/usr/lib/python3.5/subprocess.py', lineno: 708, function: run
>      0704:            raise
>      0705:        retcode = process.poll()
>      0706:        if check and retcode:
>      0707:            raise CalledProcessError(retcode, process.args,
>  *** 0708:                                     output=stdout, stderr=stderr)
>      0709:    return CompletedProcess(process.args, retcode, stdout, stderr)
>      0710:
>      0711:
>      0712:def list2cmdline(seq):
> Exception: subprocess.CalledProcessError: Command 'cd
> /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/sysroot-destdir/opt/yocto/poky/build/tmp/sysroots/x86_64-linux;
> find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C
> /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/sysroot-destdir/opt/yocto/poky/build/tmp/sysroots/x86_64-linux
> -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf -
> -C /opt/yocto/poky/build/tmp/sysroots/x86_64-linux' returned non-zero exit
> status 64
>
> Subprocess output:
> tar: unrecognized option '--xattrs'
> Try `tar --help' or `tar --usage' for more information.
> tar: unrecognized option '--xattrs'
> Try `tar --help' or `tar --usage' for more information.
>
> ERROR: quilt-native-0.64-r0 do_populate_sysroot: Function failed:
> sstate_task_postfunc
> ERROR: Logfile of failure stored in:
> /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/temp/log.do_populate_sysroot.4691
> ERROR: Task
> (/opt/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:do_populate_sysroot)
> failed with exit code '1'
>
> Second Keyboard Interrupt, stopping...
>
>
> Summary: 2 tasks failed:
>   /opt/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:
> do_populate_lic
>   /opt/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:
> do_populate_sysroot
> Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
>
> On Tue, Dec 10, 2019 at 12:03 PM Ross Burton <ross.burton@intel.com> wrote:
>
> > On 10/12/2019 10:12, Kamel Ghalgaoui wrote:
> > > kamel@ThinkPad-E590:/opt/yocto/poky/build$ bitbake core-image-minimal
> > > Parsing recipes: 100%
> > >
> > |########################################################################################################|
> > > Time: 0:00:33 Parsing of 1499 .bb files complete (0 cached, 1499 parsed).
> > > 2061 targets, 132 skipped, 0 masked, 0 errors. NOTE: Resolving any
> > missing
> > > task queue dependencies Build Configuration: BB_VERSION = "1.32.0"
> > > BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS =
> > > "arm-poky-linux-gnueabi" MACHINE = "raspberrypi3" DISTRO = "poky"
> > > DISTRO_VERSION = "2.2.4" TUNE_FEATURES = "arm armv7ve vfp thumb neon
> > vfpv4
> > > callconvention-hard cortexa7" TARGET_FPU = "hard" meta meta-poky
> > > meta-yocto-bsp = "fido:e56be3cee517c5262486136dbd6d649b68c3a8b7" meta-oe
> > =
> > > "fido:997caf9146cd3797cd054e2adebd1fbb4df91911" meta-raspberrypi =
> > > "fido:2a192261a914892019f4f428d7462bb3c585ebac" Initialising tasks: 100%
> > >
> > |#####################################################################################################|
> > > Time: 0:00:06 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue
> > Tasks
> > > **ERROR:** *quilt-native-0.64-r0 do_populate_lic: Error executing a
> > python
> > > function in exec_python_func() autogenerated: The stack trace of python
> > > calls that resulted in this exception/failure was: File:
> > > 'exec_python_func() autogenerated', lineno: 2, function: <module>*
> >
> > You stopped including the message at the point that the actual error was
> > shown.
> >
> > That's Fido which is *very* old.  Please use Zeus if possible, Warrior
> > if not (as you said that release already), and include the entire output.
> >
> > Immediate hunch is that you don't have sufficient permissions in your
> > build dir.
> >
> > Ross
> >
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Regards,
Andrey.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-10 20:57       ` S. Lockwood-Childs
@ 2019-12-10 20:57         ` Kamel Ghalgaoui
  2019-12-10 21:04           ` S. Lockwood-Childs
  2019-12-10 23:50           ` Khem Raj
  0 siblings, 2 replies; 12+ messages in thread
From: Kamel Ghalgaoui @ 2019-12-10 20:57 UTC (permalink / raw)
  To: S. Lockwood-Childs, openembedded-devel, Andrey Zhizhikin,
	Kamel Ghalgaoui

For information, I my kernel version is 5.3.11 and I have tar version: 1.26
$ which tar
/usr/local/bin/tar

Thank you

On Tue, Dec 10, 2019 at 9:54 PM S. Lockwood-Childs <sjl@vctlabs.com> wrote:

> On Tue, Dec 10, 2019 at 09:17:42PM +0100, Andrey Zhizhikin wrote:
> > On Tue, Dec 10, 2019 at 8:13 PM Kamel Ghalgaoui
> > <kamelghalgaoui7@gmail.com> wrote:
> > >
> > > I try with zeus, but I got the same error:
> > >
> > > kamel@ThinkPad-E590:/opt/yocto/poky/build$ git branch
> > >   fido
> > >   morty
> > >   thud
> > >   warrior
> > > * zeus
> > > kamel@ThinkPad-E590:/opt/yocto/poky/build$
> > > kamel@ThinkPad-E590:/opt/yocto/poky/build$ bitbake core-image-minimal
> > > Loading cache: 100%
> > >
> |##########################################################################################################|
> > > Time: 0:00:00
> > > Loaded 2061 entries from dependency cache.
> > > NOTE: Resolving any missing task queue dependencies
> > >
> > > Build Configuration:
> > > BB_VERSION        = "1.32.0"
> > > BUILD_SYS         = "x86_64-linux"
> > > NATIVELSBSTRING   = "universal"
> > > TARGET_SYS        = "arm-poky-linux-gnueabi"
> > > MACHINE           = "raspberrypi3"
> > > DISTRO            = "poky"
> > > DISTRO_VERSION    = "2.2.4"
> > > TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4
> callconvention-hard
> > > cortexa7"
> > > TARGET_FPU        = "hard"
> > > meta
> > > meta-poky
> > > meta-yocto-bsp    = "zeus:e56be3cee517c5262486136dbd6d649b68c3a8b7"
> > > meta-oe           = "zeus:997caf9146cd3797cd054e2adebd1fbb4df91911"
> > > meta-raspberrypi  = "zeus:2a192261a914892019f4f428d7462bb3c585ebac"
> > >
> > > Initialising tasks: 100%
> > >
> |#####################################################################################################|
> > > Time: 0:00:04
> > > NOTE: Executing SetScene Tasks
> > > NOTE: Executing RunQueue Tasks
> > > ERROR: quilt-native-0.64-r0 do_populate_lic: Error executing a python
> > > function in exec_python_func() autogenerated:
> > >
> > > The stack trace of python calls that resulted in this
> exception/failure was:
> > > File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
> > >      0001:
> > >  *** 0002:sstate_task_postfunc(d)
> > >      0003:
> > > File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 670,
> function:
> > > sstate_task_postfunc
> > >      0666:
> > >      0667:python sstate_task_postfunc () {
> > >      0668:    shared_state = sstate_state_fromvars(d)
> > >      0669:
> > >  *** 0670:    sstate_install(shared_state, d)
> > >      0671:    for intercept in shared_state['interceptfuncs']:
> > >      0672:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR",
> > > True),))
> > >      0673:    omask = os.umask(0o002)
> > >      0674:    if omask != 0o002:
> > > File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 274,
> function:
> > > sstate_install
> > >      0270:
> > >      0271:    # Run the actual file install
> > >      0272:    for state in ss['dirs']:
> > >      0273:        if os.path.exists(state[1]):
> > >  *** 0274:            oe.path.copyhardlinktree(state[1], state[2])
> > >      0275:
> > >      0276:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or
> > > '').split():
> > >      0277:        # All hooks should run in the SSTATE_INSTDIR
> > >      0278:        bb.build.exec_func(postinst, d, (sstateinst,))
> > > File: '/opt/yocto/poky/meta/lib/oe/path.py', lineno: 81, function:
> > > copyhardlinktree
> > >      0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
> > >      0078:        # Need to copy directories only with tar first since
> cp
> > > will error if two
> > >      0079:        # writers try and create a directory at the same time
> > >      0080:        cmd = "cd %s; find . -type d -print | tar --xattrs
> > > --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar
> > > --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
> > >  *** 0081:        subprocess.check_output(cmd, shell=True,
> > > stderr=subprocess.STDOUT)
> > >      0082:        source = ''
> > >      0083:        if os.path.isdir(src):
> > >      0084:            import glob
> > >      0085:            if len(glob.glob('%s/.??*' % src)) > 0:
> > > File: '/usr/lib/python3.5/subprocess.py', lineno: 626, function:
> > > check_output
> > >      0622:        # empty string. That is maintained here for backwards
> > > compatibility.
> > >      0623:        kwargs['input'] = '' if
> kwargs.get('universal_newlines',
> > > False) else b''
> > >      0624:
> > >      0625:    return run(*popenargs, stdout=PIPE, timeout=timeout,
> > > check=True,
> > >  *** 0626:               **kwargs).stdout
> > >      0627:
> > >      0628:
> > >      0629:class CompletedProcess(object):
> > >      0630:    """A process that has finished running.
> > > File: '/usr/lib/python3.5/subprocess.py', lineno: 708, function: run
> > >      0704:            raise
> > >      0705:        retcode = process.poll()
> > >      0706:        if check and retcode:
> > >      0707:            raise CalledProcessError(retcode, process.args,
> > >  *** 0708:                                     output=stdout,
> stderr=stderr)
> > >      0709:    return CompletedProcess(process.args, retcode, stdout,
> stderr)
> > >      0710:
> > >      0711:
> > >      0712:def list2cmdline(seq):
> > > Exception: subprocess.CalledProcessError: Command 'cd
> > >
> /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir;
> > > find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C
> > >
> /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir
> > > -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*'
> -xf -
> > > -C /opt/yocto/poky/build/tmp/deploy/licenses' returned non-zero exit
> status
> > > 64
> > >
> > > Subprocess output:
> > > tar: unrecognized option '--xattrs'
> > > Try `tar --help' or `tar --usage' for more information.
> > > tar: unrecognized option '--xattrs'
> > > Try `tar --help' or `tar --usage' for more information.
> >
> > My best guess would be: this error (and you would see much more of
> > those) is comming from the tar version which is included in Ubuntu
> > 16.04 as this version is relatively old. I believe the next error with
> > that host distro would be from git: something with --set-upstream-to
> > would be an unrecognized option (modern git has changed syntax to
> > --set-upstream).
> >
> > If you have any possibility to upgrade host distro - I would strongl
> > suggest you to do that. Otherwise - Docker with a bit newer distro
> > would be a good choice.
>
> Actually 16.04 does support --xattrs, so more likely is that there is
> a 'tar' executable coming from somewhere else. What does 'which tar'
> have to say?
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-10 20:17     ` Andrey Zhizhikin
@ 2019-12-10 20:57       ` S. Lockwood-Childs
  2019-12-10 20:57         ` Kamel Ghalgaoui
  0 siblings, 1 reply; 12+ messages in thread
From: S. Lockwood-Childs @ 2019-12-10 20:57 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Dec 10, 2019 at 09:17:42PM +0100, Andrey Zhizhikin wrote:
> On Tue, Dec 10, 2019 at 8:13 PM Kamel Ghalgaoui
> <kamelghalgaoui7@gmail.com> wrote:
> >
> > I try with zeus, but I got the same error:
> >
> > kamel@ThinkPad-E590:/opt/yocto/poky/build$ git branch
> >   fido
> >   morty
> >   thud
> >   warrior
> > * zeus
> > kamel@ThinkPad-E590:/opt/yocto/poky/build$
> > kamel@ThinkPad-E590:/opt/yocto/poky/build$ bitbake core-image-minimal
> > Loading cache: 100%
> > |##########################################################################################################|
> > Time: 0:00:00
> > Loaded 2061 entries from dependency cache.
> > NOTE: Resolving any missing task queue dependencies
> >
> > Build Configuration:
> > BB_VERSION        = "1.32.0"
> > BUILD_SYS         = "x86_64-linux"
> > NATIVELSBSTRING   = "universal"
> > TARGET_SYS        = "arm-poky-linux-gnueabi"
> > MACHINE           = "raspberrypi3"
> > DISTRO            = "poky"
> > DISTRO_VERSION    = "2.2.4"
> > TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard
> > cortexa7"
> > TARGET_FPU        = "hard"
> > meta
> > meta-poky
> > meta-yocto-bsp    = "zeus:e56be3cee517c5262486136dbd6d649b68c3a8b7"
> > meta-oe           = "zeus:997caf9146cd3797cd054e2adebd1fbb4df91911"
> > meta-raspberrypi  = "zeus:2a192261a914892019f4f428d7462bb3c585ebac"
> >
> > Initialising tasks: 100%
> > |#####################################################################################################|
> > Time: 0:00:04
> > NOTE: Executing SetScene Tasks
> > NOTE: Executing RunQueue Tasks
> > ERROR: quilt-native-0.64-r0 do_populate_lic: Error executing a python
> > function in exec_python_func() autogenerated:
> >
> > The stack trace of python calls that resulted in this exception/failure was:
> > File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
> >      0001:
> >  *** 0002:sstate_task_postfunc(d)
> >      0003:
> > File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 670, function:
> > sstate_task_postfunc
> >      0666:
> >      0667:python sstate_task_postfunc () {
> >      0668:    shared_state = sstate_state_fromvars(d)
> >      0669:
> >  *** 0670:    sstate_install(shared_state, d)
> >      0671:    for intercept in shared_state['interceptfuncs']:
> >      0672:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR",
> > True),))
> >      0673:    omask = os.umask(0o002)
> >      0674:    if omask != 0o002:
> > File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 274, function:
> > sstate_install
> >      0270:
> >      0271:    # Run the actual file install
> >      0272:    for state in ss['dirs']:
> >      0273:        if os.path.exists(state[1]):
> >  *** 0274:            oe.path.copyhardlinktree(state[1], state[2])
> >      0275:
> >      0276:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or
> > '').split():
> >      0277:        # All hooks should run in the SSTATE_INSTDIR
> >      0278:        bb.build.exec_func(postinst, d, (sstateinst,))
> > File: '/opt/yocto/poky/meta/lib/oe/path.py', lineno: 81, function:
> > copyhardlinktree
> >      0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
> >      0078:        # Need to copy directories only with tar first since cp
> > will error if two
> >      0079:        # writers try and create a directory at the same time
> >      0080:        cmd = "cd %s; find . -type d -print | tar --xattrs
> > --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar
> > --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
> >  *** 0081:        subprocess.check_output(cmd, shell=True,
> > stderr=subprocess.STDOUT)
> >      0082:        source = ''
> >      0083:        if os.path.isdir(src):
> >      0084:            import glob
> >      0085:            if len(glob.glob('%s/.??*' % src)) > 0:
> > File: '/usr/lib/python3.5/subprocess.py', lineno: 626, function:
> > check_output
> >      0622:        # empty string. That is maintained here for backwards
> > compatibility.
> >      0623:        kwargs['input'] = '' if kwargs.get('universal_newlines',
> > False) else b''
> >      0624:
> >      0625:    return run(*popenargs, stdout=PIPE, timeout=timeout,
> > check=True,
> >  *** 0626:               **kwargs).stdout
> >      0627:
> >      0628:
> >      0629:class CompletedProcess(object):
> >      0630:    """A process that has finished running.
> > File: '/usr/lib/python3.5/subprocess.py', lineno: 708, function: run
> >      0704:            raise
> >      0705:        retcode = process.poll()
> >      0706:        if check and retcode:
> >      0707:            raise CalledProcessError(retcode, process.args,
> >  *** 0708:                                     output=stdout, stderr=stderr)
> >      0709:    return CompletedProcess(process.args, retcode, stdout, stderr)
> >      0710:
> >      0711:
> >      0712:def list2cmdline(seq):
> > Exception: subprocess.CalledProcessError: Command 'cd
> > /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir;
> > find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C
> > /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir
> > -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf -
> > -C /opt/yocto/poky/build/tmp/deploy/licenses' returned non-zero exit status
> > 64
> >
> > Subprocess output:
> > tar: unrecognized option '--xattrs'
> > Try `tar --help' or `tar --usage' for more information.
> > tar: unrecognized option '--xattrs'
> > Try `tar --help' or `tar --usage' for more information.
> 
> My best guess would be: this error (and you would see much more of
> those) is comming from the tar version which is included in Ubuntu
> 16.04 as this version is relatively old. I believe the next error with
> that host distro would be from git: something with --set-upstream-to
> would be an unrecognized option (modern git has changed syntax to
> --set-upstream).
> 
> If you have any possibility to upgrade host distro - I would strongl
> suggest you to do that. Otherwise - Docker with a bit newer distro
> would be a good choice.

Actually 16.04 does support --xattrs, so more likely is that there is
a 'tar' executable coming from somewhere else. What does 'which tar'
have to say?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-10 20:57         ` Kamel Ghalgaoui
@ 2019-12-10 21:04           ` S. Lockwood-Childs
  2019-12-10 21:25             ` Andrey Zhizhikin
  2019-12-10 23:50           ` Khem Raj
  1 sibling, 1 reply; 12+ messages in thread
From: S. Lockwood-Childs @ 2019-12-10 21:04 UTC (permalink / raw)
  To: Kamel Ghalgaoui; +Cc: openembedded-devel


On Tue, Dec 10, 2019 at 09:57:01PM +0100, Kamel Ghalgaoui wrote:
> For information, I my kernel version is 5.3.11 and I have tar version: 1.26
> $ which tar
> /usr/local/bin/tar

Make sure you use system tar instead of whatever is lying in
/usr/local/bin and try again!


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-10 21:04           ` S. Lockwood-Childs
@ 2019-12-10 21:25             ` Andrey Zhizhikin
  0 siblings, 0 replies; 12+ messages in thread
From: Andrey Zhizhikin @ 2019-12-10 21:25 UTC (permalink / raw)
  To: S. Lockwood-Childs, Kamel Ghalgaoui, openembedded-devel,
	Andrey Zhizhikin

On Tue, Dec 10, 2019 at 10:01 PM S. Lockwood-Childs <sjl@vctlabs.com> wrote:
>
>
> On Tue, Dec 10, 2019 at 09:57:01PM +0100, Kamel Ghalgaoui wrote:
> > For information, I my kernel version is 5.3.11 and I have tar version: 1.26
> > $ which tar
> > /usr/local/bin/tar
>
> Make sure you use system tar instead of whatever is lying in
> /usr/local/bin and try again!

Good catch!

I've just recalled that all those issues I had in the past with
incompatible host tools were on Ubuntu 14.04, which is already long
gone from SANITY_TESTED_DISTROS!

Please discard my question above - looks like it's a user problem and
not the distro problem.

-- 
Regards,
Andrey.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-10 20:57         ` Kamel Ghalgaoui
  2019-12-10 21:04           ` S. Lockwood-Childs
@ 2019-12-10 23:50           ` Khem Raj
  2019-12-11 19:00             ` Ross Burton
  1 sibling, 1 reply; 12+ messages in thread
From: Khem Raj @ 2019-12-10 23:50 UTC (permalink / raw)
  To: Kamel Ghalgaoui; +Cc: openembeded-devel

On Tue, Dec 10, 2019 at 12:57 PM Kamel Ghalgaoui
<kamelghalgaoui7@gmail.com> wrote:
>
> For information, I my kernel version is 5.3.11 and I have tar version: 1.26
> $ which tar
> /usr/local/bin/tar
>

Interesting. I wonder if we should poison /usr/local for hosttools.

> Thank you
>
> On Tue, Dec 10, 2019 at 9:54 PM S. Lockwood-Childs <sjl@vctlabs.com> wrote:
>
> > On Tue, Dec 10, 2019 at 09:17:42PM +0100, Andrey Zhizhikin wrote:
> > > On Tue, Dec 10, 2019 at 8:13 PM Kamel Ghalgaoui
> > > <kamelghalgaoui7@gmail.com> wrote:
> > > >
> > > > I try with zeus, but I got the same error:
> > > >
> > > > kamel@ThinkPad-E590:/opt/yocto/poky/build$ git branch
> > > >   fido
> > > >   morty
> > > >   thud
> > > >   warrior
> > > > * zeus
> > > > kamel@ThinkPad-E590:/opt/yocto/poky/build$
> > > > kamel@ThinkPad-E590:/opt/yocto/poky/build$ bitbake core-image-minimal
> > > > Loading cache: 100%
> > > >
> > |##########################################################################################################|
> > > > Time: 0:00:00
> > > > Loaded 2061 entries from dependency cache.
> > > > NOTE: Resolving any missing task queue dependencies
> > > >
> > > > Build Configuration:
> > > > BB_VERSION        = "1.32.0"
> > > > BUILD_SYS         = "x86_64-linux"
> > > > NATIVELSBSTRING   = "universal"
> > > > TARGET_SYS        = "arm-poky-linux-gnueabi"
> > > > MACHINE           = "raspberrypi3"
> > > > DISTRO            = "poky"
> > > > DISTRO_VERSION    = "2.2.4"
> > > > TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4
> > callconvention-hard
> > > > cortexa7"
> > > > TARGET_FPU        = "hard"
> > > > meta
> > > > meta-poky
> > > > meta-yocto-bsp    = "zeus:e56be3cee517c5262486136dbd6d649b68c3a8b7"
> > > > meta-oe           = "zeus:997caf9146cd3797cd054e2adebd1fbb4df91911"
> > > > meta-raspberrypi  = "zeus:2a192261a914892019f4f428d7462bb3c585ebac"
> > > >
> > > > Initialising tasks: 100%
> > > >
> > |#####################################################################################################|
> > > > Time: 0:00:04
> > > > NOTE: Executing SetScene Tasks
> > > > NOTE: Executing RunQueue Tasks
> > > > ERROR: quilt-native-0.64-r0 do_populate_lic: Error executing a python
> > > > function in exec_python_func() autogenerated:
> > > >
> > > > The stack trace of python calls that resulted in this
> > exception/failure was:
> > > > File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
> > > >      0001:
> > > >  *** 0002:sstate_task_postfunc(d)
> > > >      0003:
> > > > File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 670,
> > function:
> > > > sstate_task_postfunc
> > > >      0666:
> > > >      0667:python sstate_task_postfunc () {
> > > >      0668:    shared_state = sstate_state_fromvars(d)
> > > >      0669:
> > > >  *** 0670:    sstate_install(shared_state, d)
> > > >      0671:    for intercept in shared_state['interceptfuncs']:
> > > >      0672:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR",
> > > > True),))
> > > >      0673:    omask = os.umask(0o002)
> > > >      0674:    if omask != 0o002:
> > > > File: '/opt/yocto/poky/meta/classes/sstate.bbclass', lineno: 274,
> > function:
> > > > sstate_install
> > > >      0270:
> > > >      0271:    # Run the actual file install
> > > >      0272:    for state in ss['dirs']:
> > > >      0273:        if os.path.exists(state[1]):
> > > >  *** 0274:            oe.path.copyhardlinktree(state[1], state[2])
> > > >      0275:
> > > >      0276:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or
> > > > '').split():
> > > >      0277:        # All hooks should run in the SSTATE_INSTDIR
> > > >      0278:        bb.build.exec_func(postinst, d, (sstateinst,))
> > > > File: '/opt/yocto/poky/meta/lib/oe/path.py', lineno: 81, function:
> > > > copyhardlinktree
> > > >      0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
> > > >      0078:        # Need to copy directories only with tar first since
> > cp
> > > > will error if two
> > > >      0079:        # writers try and create a directory at the same time
> > > >      0080:        cmd = "cd %s; find . -type d -print | tar --xattrs
> > > > --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar
> > > > --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
> > > >  *** 0081:        subprocess.check_output(cmd, shell=True,
> > > > stderr=subprocess.STDOUT)
> > > >      0082:        source = ''
> > > >      0083:        if os.path.isdir(src):
> > > >      0084:            import glob
> > > >      0085:            if len(glob.glob('%s/.??*' % src)) > 0:
> > > > File: '/usr/lib/python3.5/subprocess.py', lineno: 626, function:
> > > > check_output
> > > >      0622:        # empty string. That is maintained here for backwards
> > > > compatibility.
> > > >      0623:        kwargs['input'] = '' if
> > kwargs.get('universal_newlines',
> > > > False) else b''
> > > >      0624:
> > > >      0625:    return run(*popenargs, stdout=PIPE, timeout=timeout,
> > > > check=True,
> > > >  *** 0626:               **kwargs).stdout
> > > >      0627:
> > > >      0628:
> > > >      0629:class CompletedProcess(object):
> > > >      0630:    """A process that has finished running.
> > > > File: '/usr/lib/python3.5/subprocess.py', lineno: 708, function: run
> > > >      0704:            raise
> > > >      0705:        retcode = process.poll()
> > > >      0706:        if check and retcode:
> > > >      0707:            raise CalledProcessError(retcode, process.args,
> > > >  *** 0708:                                     output=stdout,
> > stderr=stderr)
> > > >      0709:    return CompletedProcess(process.args, retcode, stdout,
> > stderr)
> > > >      0710:
> > > >      0711:
> > > >      0712:def list2cmdline(seq):
> > > > Exception: subprocess.CalledProcessError: Command 'cd
> > > >
> > /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir;
> > > > find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C
> > > >
> > /opt/yocto/poky/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/license-destdir
> > > > -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*'
> > -xf -
> > > > -C /opt/yocto/poky/build/tmp/deploy/licenses' returned non-zero exit
> > status
> > > > 64
> > > >
> > > > Subprocess output:
> > > > tar: unrecognized option '--xattrs'
> > > > Try `tar --help' or `tar --usage' for more information.
> > > > tar: unrecognized option '--xattrs'
> > > > Try `tar --help' or `tar --usage' for more information.
> > >
> > > My best guess would be: this error (and you would see much more of
> > > those) is comming from the tar version which is included in Ubuntu
> > > 16.04 as this version is relatively old. I believe the next error with
> > > that host distro would be from git: something with --set-upstream-to
> > > would be an unrecognized option (modern git has changed syntax to
> > > --set-upstream).
> > >
> > > If you have any possibility to upgrade host distro - I would strongl
> > > suggest you to do that. Otherwise - Docker with a bit newer distro
> > > would be a good choice.
> >
> > Actually 16.04 does support --xattrs, so more likely is that there is
> > a 'tar' executable coming from somewhere else. What does 'which tar'
> > have to say?
> >
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-10 23:50           ` Khem Raj
@ 2019-12-11 19:00             ` Ross Burton
  2019-12-11 19:42               ` Khem Raj
  0 siblings, 1 reply; 12+ messages in thread
From: Ross Burton @ 2019-12-11 19:00 UTC (permalink / raw)
  To: openembedded-devel

On 10/12/2019 23:50, Khem Raj wrote:
> On Tue, Dec 10, 2019 at 12:57 PM Kamel Ghalgaoui
> <kamelghalgaoui7@gmail.com> wrote:
>>
>> For information, I my kernel version is 5.3.11 and I have tar version: 1.26
>> $ which tar
>> /usr/local/bin/tar
>>
> 
> Interesting. I wonder if we should poison /usr/local for hosttools.

Probably not a great idea, as people may be installing stuff in 
/usr/local *because* their /usr is old.

Ross



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-11 19:00             ` Ross Burton
@ 2019-12-11 19:42               ` Khem Raj
  2019-12-11 19:57                 ` S. Lockwood-Childs
  0 siblings, 1 reply; 12+ messages in thread
From: Khem Raj @ 2019-12-11 19:42 UTC (permalink / raw)
  To: Ross Burton; +Cc: openembedded-devel

On Wed, Dec 11, 2019 at 11:00 AM Ross Burton <ross.burton@intel.com> wrote:

> On 10/12/2019 23:50, Khem Raj wrote:
> > On Tue, Dec 10, 2019 at 12:57 PM Kamel Ghalgaoui
> > <kamelghalgaoui7@gmail.com> wrote:
> >>
> >> For information, I my kernel version is 5.3.11 and I have tar version:
> 1.26
> >> $ which tar
> >> /usr/local/bin/tar
> >>
> >
> > Interesting. I wonder if we should poison /usr/local for hosttools.
>
> Probably not a great idea, as people may be installing stuff in
> /usr/local *because* their /usr is old.


That means we are letting the default tested distro information not convey
what it means. Perhaps it’s. Better to blacklist it and then let users
enable it explicitly so they know what they are doing

Otherwise these kind of issues will always keep coming up where an tested
distro with local overrides will do unexplained stuff

>
>
> Ross
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Building Linux Error
  2019-12-11 19:42               ` Khem Raj
@ 2019-12-11 19:57                 ` S. Lockwood-Childs
  0 siblings, 0 replies; 12+ messages in thread
From: S. Lockwood-Childs @ 2019-12-11 19:57 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

On Wed, Dec 11, 2019 at 11:42:59AM -0800, Khem Raj wrote:
> On Wed, Dec 11, 2019 at 11:00 AM Ross Burton <ross.burton@intel.com> wrote:
> 
> > On 10/12/2019 23:50, Khem Raj wrote:
> > > On Tue, Dec 10, 2019 at 12:57 PM Kamel Ghalgaoui
> > > <kamelghalgaoui7@gmail.com> wrote:
> > >>
> > >> For information, I my kernel version is 5.3.11 and I have tar version:
> > 1.26
> > >> $ which tar
> > >> /usr/local/bin/tar
> > >>
> > >
> > > Interesting. I wonder if we should poison /usr/local for hosttools.
> >
> > Probably not a great idea, as people may be installing stuff in
> > /usr/local *because* their /usr is old.
> 
> 
> That means we are letting the default tested distro information not convey
> what it means. Perhaps it’s. Better to blacklist it and then let users
> enable it explicitly so they know what they are doing
> 
> Otherwise these kind of issues will always keep coming up where an tested
> distro with local overrides will do unexplained stuff

That's what I was thinking -- allow /usr/local to be un-blacklisted by advanced
users as needed; novice users should be highly encouraged to start with 
something supported as build system.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-12-11 19:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10 10:12 Building Linux Error Kamel Ghalgaoui
2019-12-10 11:03 ` Ross Burton
2019-12-10 19:12   ` Kamel Ghalgaoui
2019-12-10 20:17     ` Andrey Zhizhikin
2019-12-10 20:57       ` S. Lockwood-Childs
2019-12-10 20:57         ` Kamel Ghalgaoui
2019-12-10 21:04           ` S. Lockwood-Childs
2019-12-10 21:25             ` Andrey Zhizhikin
2019-12-10 23:50           ` Khem Raj
2019-12-11 19:00             ` Ross Burton
2019-12-11 19:42               ` Khem Raj
2019-12-11 19:57                 ` S. Lockwood-Childs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.