Bug 1450505

Summary: trojita FTBFS on s390x
Product: [Fedora] Fedora Reporter: Raphael Groner <projects.rg>
Component: trojitaAssignee: Kevin Kofler <kevin>
Status: POST --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: extras-qa, kde-sig, kevin, lxqt-sig, projects.rg
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1402580 Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1402577    
Bug Blocks: 485231    

Description Raphael Groner 2017-05-12 20:00:56 UTC
Description of problem:
trojita FTBFS on s309x
 
/builddir/build/BUILD/trojita-0.7/src/Imap/Parser/Rfc5322HeaderParser.cpp:2238:3: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]

Version-Release number of selected component (if applicable):
0.7-7

How reproducible:
yes

Steps to Reproduce:
1. koji build --scratch rawhide trojita-0.7-7.srpm
2.
3.

Actual results:
build.log has many times of the above mentioned error message.

Expected results:
builds successfully

Additional info:
Temporarily solved by adding ExcludeArch.

https://koji.fedoraproject.org/koji/taskinfo?taskID=19492104

Comment 2 Raphael Groner 2018-01-09 21:38:56 UTC
Still FTBFS in rawhide.

Comment 4 Fedora Admin user for bugzilla script actions 2020-07-22 14:55:03 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 5 Fedora Admin user for bugzilla script actions 2020-07-23 02:48:56 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 6 Raphael Groner 2024-07-04 16:42:55 UTC
> /builddir/build/BUILD/trojita-0.7/src/Imap/Parser/Rfc5322HeaderParser.cpp:2238:3: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]

Wiki page for s390x tells me that char is unsigned by default, see some FAQ. But meanwhile it might be outdated information.

https://www.arm.linux.org.uk/docs/faqs/signedchar.php

Comment 7 Kevin Kofler 2024-07-05 00:27:45 UTC
Not sure why you are putting me on needinfo here. Yes, this is clearly a bug related to unsigned char. See also bug #1402580, which is the same on ARM, where char is also unsigned by default.

The bug there was "fixed" by using pregenerated Ragel output. That should fix this issue on s390x too, so if this still FTBFS on s390x, there is another reason.