Re: Exception: NotADirectoryError building Hardknott


Richard Purdie
 

On Sun, 2021-07-18 at 14:01 +1000, Simon Haines wrote:
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?
How is your container filesystem setup/configured? It looks like the filesystem
isn't liking the build trying to create hardlinked files. It is odd it would
get as far as gmp-native before having problems. That file definitely isn't a
directory too, it is an odd error.

I'd suspect it is something like the copy-on-write mode of the filesystem
having issues.

Cheers,

Richard

Join yocto@lists.yoctoproject.org to automatically receive all group messages.