Bug 1273830

Summary: thrift does not build on aarch64
Product: [Fedora] Fedora Reporter: Marcin Juszkiewicz <mjuszkie>
Component: thriftAssignee: Will Benton <willb>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: willb
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-30 09:42:01 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

Description Marcin Juszkiewicz 2015-10-21 10:56:51 UTC
Created attachment 1085087 [details]
patch + spec changeset

Description of problem:

thrift 0.9.1 does not build on aarch64.

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

0.9.1-16.6

How reproducible:

always

Steps to Reproduce:
1. do a build (arm-koji)

Actual results:

Build fails with:

Benchmark.cpp: In constructor 'Timer::Timer()':
Benchmark.cpp:38:28: error: 'gettimeofday' was not declared in this scope
     gettimeofday(&vStart, 0);
                            ^
Benchmark.cpp:38:28: note: suggested alternative:
In file included from /usr/include/sys/procfs.h:32:0,
                 from /usr/include/sys/ucontext.h:26,
                 from /usr/include/signal.h:326,
                 from /usr/include/sys/param.h:28,
                 from ../../../lib/cpp/src/thrift/protocol/TProtocol.h:83,
                 from ../../../lib/cpp/src/thrift/protocol/TBinaryProtocol.h:23,
                 from Benchmark.cpp:26:
/usr/include/sys/time.h:71:12: note:   'apache::thrift::protocol::gettimeofday'
 extern int gettimeofday (struct timeval *__restrict __tv,
            ^
Benchmark.cpp: In member function 'void Timer::start()':
Benchmark.cpp:41:28: error: 'gettimeofday' was not declared in this scope
     gettimeofday(&vStart, 0);

Expected results:

package builds

Additional info:

Fix from upstream attached

Comment 1 Marcin Juszkiewicz 2015-10-30 09:42:01 UTC
Scratch builds on ppc64(le), aarch64, i686, x86-64, arm were fine. 

s390 failed to initialize mock buildroot.