win create failing at mcopy #poky #raspberrypi
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 44 lines · Mike Jones via lists.yoctoproject.org
Quoted 29 lines
Quoted 29 lines · Richard Purdie
On Mon, 2021-05-10 at 18:54 -0600, Mike Jones wrote:
I have a little more info on this and a more specific question.I copied the mtools code and hooked it into the layer so I could put in debug statements.
The problem occurs in
charsetConv.cin the functioncp_open, when it tries to do aniconv_openusing “CP850”, which fails.I ran “iconv —list” to see what it can convert, and CP850 is not listed.
To prove this is the problem, I hardcoded the
iconv_openwith “ASCII” and bit bake can go all the way through and “wic create” works properly.So I ran iconv —version and saw it was “GNU libc 2.31” so I poked around those layers.
Best I can guess is this line from the mtools layer should tell the libc to provide CP850 via this line:
RDEPENDS_${PN}_libc-glibc = "glibc-gconv-ibm850”
Except that that is for runtime, and this is build time.
So I am not sure how glibc decides what converters are used. Is it just a set of defaults? Is there a layer somewhere defining them I could not find?
It seems that somewhere along the way, mtools changed its default to use 850, and it is not compatible anymore.
Quoted 6 lines
Quoted 3 lines
The solution is probably to tell glibc to provide CP850.
Does anyone know how to do that?
Which version of Yocto Project are you using? Are you using buildtools-tarball or uninative in your build?
I run poky/scripts/install-buildtools with no command line options.
It contains these defaults:
Quoted 7 lines
DEFAULT_INSTALL_DIR= os.path.join(os.path.split(scripts_path)[0],'buildtools')DEFAULT_BASE_URL= 'http://downloads.yoctoproject.org/releases/yocto'DEFAULT_RELEASE= 'yocto-3.2_M3'DEFAULT_INSTALLER_VERSION= '3.1+snapshot'DEFAULT_BUILDDATE= '20200923'I see I can use command line options to use a different release if you have guidance on what to use.
After tweaking the script to change sha256 to sha256sum and removing one \s from the regular expression, I installed 3.2.3 and I will bitbake and see it it works.
I am guessing the script changes are due to an older version of poky, but poky is part of the openbmc project clone, not something we manually clone from a yocto repository.
If this works, I’ll have to address that issue on the openbmc listserv.
Mike
Quoted 13 lines
Mike
Quoted 7 lines
I suspect you need a newer buildtools-tarball version which includes CP850.
Cheers,
Richard