Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 259161

Summary: suspected miscompilation of sqlite breaks monotone on ppc
Product: [Fedora] Fedora Reporter: Roland McGrath <roland>
Component: monotoneAssignee: Roland McGrath <roland>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 7CC: jakub
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-28 05:13:11 UTC Type: ---
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:    
Bug Blocks: 238953, 179260    

Description Roland McGrath 2007-08-28 07:34:23 UTC
Starting with monotone-0.36, the monotone test suite fails in "make check" only
on ppc and ppc64.  Upstream reports it works on other powerpc platforms/distros.

See http://koji.fedoraproject.org/koji/taskinfo?taskID=98891 for a build log
with the failure.  Rebuilding any monotone-0.36 rpm, or hand-building from
upstream sources, will show failures in "make check" on ppc/ppc64 under Fedora
[678], which all have the same compiler.

The suspected issue is a miscompilation of some C++ code in the sqlite sources
included in the monotone build.  There was a similar problem seen using gcc 4.2
and worked around, see
http://www.nabble.com/sqlite-fix-for-gcc-4.2.x-bug..-t4198798.html and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32575 about that.  The code that is
failing now has the workaround shown in that link already.  Without that
workaround, the Fedora gcc does produce code that gets even more errors in
monotone's test suite, though our gcc is 4.1.x-based and not 4.2.  But even with
it, something goes wrong inside sqlite and so we suspect a similar
miscompilation issue.

Since this only arises on ppc and ppc64 and I don't know how to work around it,
for the time being I'm building a new monotone with ExcludeArch: ppc ppc64.

Comment 1 Roland McGrath 2007-10-28 05:13:11 UTC
Seems to have disappeared in 0.37 or with newer compilers or something.