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 1259666

Summary: fix ftbfs on aarch64 in condor
Product: [Fedora] Fedora Reporter: Marcin Juszkiewicz <mjuszkie>
Component: condorAssignee: matt
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bbockelm, bcotton, eerlands, matt, pbrobinson, tstclair
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: 8.3.6-4.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-23 04:08:30 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: 922257    
Attachments:
Description Flags
patch + spec changeset
none
CMakeCache.txt none

Description Marcin Juszkiewicz 2015-09-03 10:14:05 UTC
Created attachment 1069725 [details]
patch + spec changeset

Description of problem:

Condor defines uint64_t type but this is conflicting with definition in stdint.h and build fails.

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

8.3.6-3

How reproducible:

always

Steps to Reproduce:
1. do build on aarch64 (use arm-koji)

Actual results:

http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=3160851

In file included from /usr/lib/gcc/aarch64-redhat-linux/5.1.1/include/stdint.h:9:0,
                 from /usr/include/c++/5.1.1/cstdint:41,
                 from /usr/include/c++/5.1.1/bits/char_traits.h:380,
                 from /usr/include/c++/5.1.1/string:40,
                 from /builddir/build/BUILD/htcondor-8_3_6/src/condor_utils/condor_event.h:36,
                 from /builddir/build/BUILD/htcondor-8_3_6/src/condor_utils/read_user_log.h:45,
                 from /builddir/build/BUILD/htcondor-8_3_6/src/condor_userlog/condor_userlog_job_counter.cpp:30:
/usr/include/stdint.h:40:19: error: conflicting declaration 'typedef long int int64_t'
 typedef long int  int64_t;
                   ^

Expected results:

package builds

Additional info:

Fix is not perfect but solved problem.

Comment 1 Brian Bockelman 2015-09-09 03:17:18 UTC
Hi Marcin,

Thank you very much for the bug report!

To me, this appears to be a cmake issue - cmake was supposed to determine whether this typedef already existed (I suspect the typedef in condor is for old compilers for windows / solaris).

Is there any way to pull CMakeCache.txt from the failed build? 

Brian

Comment 2 Marcin Juszkiewicz 2015-09-09 05:22:24 UTC
Will do a build and attach it.

Comment 3 Marcin Juszkiewicz 2015-09-09 08:23:16 UTC
Created attachment 1071611 [details]
CMakeCache.txt

Comment 4 Brian Bockelman 2015-09-09 14:12:57 UTC
Ah - I see the issue:

CMake properly detects int64_t already detects.  *However*, this particular file doesn't include the config.h because the header read_user_log.h is meant to be part of the public API.

Probably this header needs to be generated separately by cmake.

Will file a ticket with upstream HTCondor.

For now, the proposed patch looks fine.

Comment 5 Peter Robinson 2015-09-14 15:52:09 UTC
> For now, the proposed patch looks fine.

Can we get it applied and pushed for F-23+ then?

Comment 6 Marcin Juszkiewicz 2015-09-17 15:23:14 UTC
pushed to rawhide

Comment 7 Fedora Update System 2015-09-17 18:38:18 UTC
condor-8.3.6-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16124

Comment 8 Fedora Update System 2015-09-17 21:29:17 UTC
condor-8.3.6-4.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update condor'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16124

Comment 9 Fedora Update System 2015-09-23 04:08:28 UTC
condor-8.3.6-4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.