Bug 1133066

Summary: FTBFS on ppc64/ppc64le
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: cbmcAssignee: Jerry James <loganjerry>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: breno.leitao, loganjerry, shakthimaan
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: cbmc-4.9-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-23 04:29:46 UTC 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:    
Bug Blocks: 1051573    
Attachments:
Description Flags
patch to retrieve arch
none
log with cbmc patched to retrieve arch ppc64 little endian none

Description Menanteau Guy 2014-08-22 15:16:49 UTC
Created attachment 929685 [details]
patch to retrieve arch

cbmc failed to build from source in mass rebuild on ppc64 and ppc64le arches

http://ppc.koji.fedoraproject.org/koji/packageinfo?packageID=16417

http://ppc.koji.fedoraproject.org/kojifiles/work/tasks/3751/2003751/build.log

architecture seems not correctly retrieved.

Using attached patch, arch is retreived but lot of tests are still in error.

Comment 1 Menanteau Guy 2014-08-22 15:22:02 UTC
Created attachment 929686 [details]
log with cbmc patched to retrieve arch ppc64 little endian

log with cbmc patched, arch powerpc 64 little endian retrieved.
I didn't have a look to tests in error yet.

Comment 2 Jerry James 2014-08-22 15:29:58 UTC
Thanks for the report and the patch.  I will try to figure out why tests still fail with it.

Comment 3 Jerry James 2014-09-03 21:15:12 UTC
After some back and forth with upstream, we've got a build that passes all of its tests on both ppc64 and ppc64le.  I have built it for Rawhide and F-21, and upstream has applied the resulting patch, so it will be part of the next release.

Comment 4 Fedora Update System 2014-09-03 21:17:10 UTC
cbmc-4.7-3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/cbmc-4.7-3.fc21

Comment 5 Fedora Update System 2014-09-06 01:01:44 UTC
Package cbmc-4.7-3.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cbmc-4.7-3.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-10235/cbmc-4.7-3.fc21
then log in and leave karma (feedback).

Comment 6 Menanteau Guy 2014-09-08 12:51:33 UTC
cbmc-4.7-3 scratch builds succeed on:
primary
http://koji.fedoraproject.org/koji/taskinfo?taskID=7543253
secondary
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=2094327

Comment 7 Fedora Update System 2014-09-16 18:44:10 UTC
Package cbmc-4.9-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cbmc-4.9-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-10235/cbmc-4.9-1.fc21
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2014-09-23 04:29:46 UTC
cbmc-4.9-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Breno Leitao 2014-10-13 21:18:26 UTC
Although it is not breaking the build on fedora/ppc64le, there are some tests fails that I am facing, as in the test: 

character_literals1

that has the following line:

STATIC_ASSERT('\xff' == (char)0xff);

and in this case ,it is causing the following error:

STATIC_ASSERT('\xff' == (char)0xff)

and the second argument is returning -1, which seems that char is not considered as unsgined.

Comment 10 Jerry James 2014-10-13 22:11:26 UTC
Breno, I did see that error when starting work on the problem, but the patch made it go away for me.  And not just for me, either; there is no sign of that error in the ppc64le build of cbmc-4.9-1.fc21:

http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=266344

Which version did you build, on what platform, to get this error?  If it is a koji build, can you post a link to the logs?  Thanks.

Comment 11 Breno Leitao 2014-10-15 14:32:30 UTC
Hi Jerry,

The problem appeared with the patch from Menanteau. I don't see any problem with the patch applied on Fedora packages, which is a bit different.

Thank you,
Breno