Description of problem: When building and testing Cantera on s390x architecture, a series of tests fail with ruamel.yaml.reader.ReaderError: unacceptable character (e.g. https://download.copr.fedorainfracloud.org/results/fuller/cantera-test/fedora-rawhide-s390x/03195208-cantera/builder-live.log.gz) These errors do not occur when testing and building the same software on other architectures (e.g. https://copr.fedorainfracloud.org/coprs/fuller/cantera-test/build/3197399/) The reported unacceptable characters are not present in our input (https://github.com/Cantera/cantera/issues/1174#issuecomment-1015791019) Version-Release number of selected component (if applicable): Fedora 34, 35 builds Proposed solution/workaround: This issue has been reported upstream (https://sourceforge.net/p/ruamel-yaml/tickets/417/). The developer suggests patching to increase the buffer size (https://github.com/Cantera/cantera/issues/1174#issuecomment-1016472121)
> The developer suggests patching to increase the buffer size Do you have a suggestion for the size or could you sent a PR at https://src.fedoraproject.org/rpms/python-ruamel-yaml/pull-requests ?
Unfortunately no - I don't have any technical insight and the developer's comment on the issue on GH for cantera simply suggested a larger value than current.
There is bunch of issues in the C(ython) code related to the implicit type casts few leading to the type demotions, information loss. AFAIK all of those are reported by the C compiler warnings. I have fix for the bit that causes issues on the s390x and break in fmf/tmt for me. I'm about to open MR/PR for the packaged with fix and update to the latest upstream versions, for both the clib and python bits of ruamel-yaml. Here is copr repo with the fixed and updated packages https://copr.fedorainfracloud.org/coprs/jcajka/tmt/.
Just opened https://src.fedoraproject.org/rpms/python-ruamel-yaml-clib/pull-request/3 and https://src.fedoraproject.org/rpms/python-ruamel-yaml/pull-request/7
FTR, the Jakub's MR/PR have been merged, the packages built, and currently provided in rawhide. https://koji.fedoraproject.org/koji/taskinfo?taskID=87480513 https://koji.fedoraproject.org/koji/buildinfo?buildID=1965518
I can confirm that this issue is no longer present when building in rawhide or F36, but is still there in F35 (as expected) - closing and thank you
EDIT: Still present in F36- as expected, fixed in rawhide
Created attachment 2014343 [details] fix-typecasts-s390x.patch I had to tweak the patch some more to make the type errors go away. Upstream reference: https://sourceforge.net/p/ruamel-yaml-clib/tickets/22/