All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Simon Haines" <simon.haines@scalardata.com>
To: yocto@lists.yoctoproject.org
Subject: Exception: NotADirectoryError building Hardknott
Date: Sun, 18 Jul 2021 14:01:27 +1000	[thread overview]
Message-ID: <CACrbFVdaFGVGaSw0+WHSxb4Z05khof1y67wc_XDOWEzPqXLQNQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1102 bytes --]

I can't seem to find any information about this error, but I keep getting
variations of this when building hardknott:

Exception: NotADirectoryError: [Errno 20] Not a directory:
'/home/yocto/rpi64/build/tmp/sysroots-components/x86_64/gmp-native/usr/lib/pkgconfig/gmpxx.pc'
->
'/home/yocto/rpi64/build/tmp/work/x86_64-linux/libmpc-native/1.2.1-r0/recipe-sysroot-native/usr/lib/pkgconfig/gmpxx.pc'

I'm building in a container, and I've tried building the tip of the
hardknott branch, the hardknott-3.3.1 tag, and the release tarball (
http://downloads.yoctoproject.org/releases/yocto/yocto-3.3/poky-hardknott-25.0.0.tar.bz2).
All fail with the NotADirectory exception in different recipes. I've
attached logs from building the hardknott-3.3.1 tag and from the release
tarball.

The additional layers I'm using are (cloned from the tip of their
respective hardknott branches):
meta-openembedded
meta-raspberrypi
meta-security

It must be something with my setup because I've searched everywhere for
this issue and I can't find anything. Does this sound familiar to anyone?
Simon.

[-- Attachment #1.2: Type: text/html, Size: 1438 bytes --]

[-- Attachment #2: hardknott-3.3.1-log.do_unpack.386192 --]
[-- Type: application/octet-stream, Size: 1834 bytes --]

DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['virtual:native:/home/yocto/poky-hardknott/meta/recipes-extended/xz/xz_5.2.5.bb:do_populate_sysroot']
ERROR: 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:extend_recipe_sysroot(d)
     0003:
File: '/home/yocto/poky-hardknott/meta/classes/staging.bbclass', lineno: 582, function: extend_recipe_sysroot
     0578:                    if "/bin/" in l or "/sbin/" in l:
     0579:                        # defer /*bin/* files until last in case they need libs
     0580:                        binfiles[l] = (targetdir, dest)
     0581:                    else:
 *** 0582:                        staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0583:
     0584:    # Handle deferred binfiles
     0585:    for l in binfiles:
     0586:        (targetdir, dest) = binfiles[l]
File: '/home/yocto/poky-hardknott/meta/classes/staging.bbclass', lineno: 157, function: staging_copyfile
     0153:        os.symlink(linkto, dest)
     0154:        #bb.warn(c)
     0155:    else:
     0156:        try:
 *** 0157:            os.link(c, dest)
     0158:        except OSError as err:
     0159:            if err.errno == errno.EXDEV:
     0160:                bb.utils.copyfile(c, dest)
     0161:            else:
Exception: NotADirectoryError: [Errno 20] Not a directory: '/home/yocto/rpi64/build/tmp/sysroots-components/x86_64/xz-native/usr/lib/pkgconfig/liblzma.pc' -> '/home/yocto/rpi64/build/tmp/work/x86_64-linux/unifdef-native/2.12-r0/recipe-sysroot-native/usr/lib/pkgconfig/liblzma.pc'

DEBUG: Python function extend_recipe_sysroot finished

[-- Attachment #3: release-tarball-log.do_prepare_recipe_sysroot.27932 --]
[-- Type: application/octet-stream, Size: 2559 bytes --]

DEBUG: Executing python function do_prepare_recipe_sysroot
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['virtual:native:/home/yocto/poky-hardknott-25.0.0/meta/recipes-devtools/automake/automake_1.16.3.bb:do_populate_sysroot', '/home/yocto/poky-hardknott-25.0.0/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_populate_sysroot', '/home/yocto/poky-hardknott-25.0.0/meta/recipes-devtools/libtool/libtool-native_2.4.6.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky-hardknott-25.0.0/meta/recipes-devtools/autoconf/autoconf_2.71.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky-hardknott-25.0.0/meta/recipes-support/gmp/gmp_6.2.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky-hardknott-25.0.0/meta/recipes-support/mpfr/mpfr_4.1.0.bb:do_populate_sysroot']
ERROR: 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:extend_recipe_sysroot(d)
     0003:
File: '/home/yocto/poky-hardknott-25.0.0/meta/classes/staging.bbclass', lineno: 582, function: extend_recipe_sysroot
     0578:                    if "/bin/" in l or "/sbin/" in l:
     0579:                        # defer /*bin/* files until last in case they need libs
     0580:                        binfiles[l] = (targetdir, dest)
     0581:                    else:
 *** 0582:                        staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0583:
     0584:    # Handle deferred binfiles
     0585:    for l in binfiles:
     0586:        (targetdir, dest) = binfiles[l]
File: '/home/yocto/poky-hardknott-25.0.0/meta/classes/staging.bbclass', lineno: 157, function: staging_copyfile
     0153:        os.symlink(linkto, dest)
     0154:        #bb.warn(c)
     0155:    else:
     0156:        try:
 *** 0157:            os.link(c, dest)
     0158:        except OSError as err:
     0159:            if err.errno == errno.EXDEV:
     0160:                bb.utils.copyfile(c, dest)
     0161:            else:
Exception: NotADirectoryError: [Errno 20] Not a directory: '/home/yocto/rpi64/build/tmp/sysroots-components/x86_64/gmp-native/usr/lib/pkgconfig/gmpxx.pc' -> '/home/yocto/rpi64/build/tmp/work/x86_64-linux/libmpc-native/1.2.1-r0/recipe-sysroot-native/usr/lib/pkgconfig/gmpxx.pc'

DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Python function do_prepare_recipe_sysroot finished

             reply	other threads:[~2021-07-18  4:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-18  4:01 Simon Haines [this message]
2021-07-18 15:17 ` [yocto] Exception: NotADirectoryError building Hardknott Richard Purdie
2021-07-20  7:52   ` Simon Haines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACrbFVdaFGVGaSw0+WHSxb4Z05khof1y67wc_XDOWEzPqXLQNQ@mail.gmail.com \
    --to=simon.haines@scalardata.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.