Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report #918  -  Arx Libertatis build failure macOS 10.12 clock_gettime
Posted Oct 25, 2016 - updated Nov 04, 2016   Shortlink: http://arx.vg/918
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Not a bug" and resolution "CAN'T REPRODUCE".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Not a bug
  • Assigned to
    Not assigned to anyone
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Guest user
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
    CAN'T REPRODUCE
  • Priority
    Not determined
  • Reproducability
    Always
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
  • Fixed in
    icon_customdatatype.png Not determined
Issue description
macOS 10.12 now supplies clock_gettime causing a build failure

  1. int clock_gettime(clockid_t __clock_id, struct timespec *__tp);
  2. ^
  3. /tmp/arx-libertatis-20161025-23714-1w61kp9/arx-libertatis-1.1.2/src/platform/Time.cpp:56:2: error: no matching function for call to 'clock_gettime'
  4. clock_gettime(clock_id, &ts);
  5. ^~~~~~~~~~~~~
  6. /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/time.h:177:5: note: candidate function not viable: no known conversion from 'clock_t' (aka 'unsigned long') to 'clockid_t' for 1st argument
  7. int clock_gettime(clockid_t __clock_id, struct timespec *__tp);
  8. ^
  9. 2 errors generated.
  10. make[2]: *** [CMakeFiles/common.dir/src/platform/Time.cpp.o] Error 1
  11. make[2]: *** Waiting for unfinished jobs....
  12. [ 14%] Building CXX object CMakeFiles/common.dir/src/util/String.cpp.o
  13. /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DGL_GLEXT_PROTOTYPES -isystem /usr/local/include/freetype2 -isystem /usr/local/include -I/tmp/arx-libertatis-20161025-23714-1w61kp9/arx-libertatis-1.1.2/src -I/tmp/arx-libertatis-20161025-23714-1w61kp9/arx-libertatis-1.1.2/build -I/tmp/arx-libertatis-20161025-23714-1w61kp9/arx-libertatis-1.1.2/tools -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenAL.framework/Headers -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -isystem /usr/local/include/SDL -Wall -Wextra -Wformat=2 -Wundef -Wpointer-arith -Wcast-qual -Woverloaded-virtual -Wlogical-op -Woverflow -Wliteral-conversion -Wshift-overflow -Wbool-conversions -Wno-uninitialized -Wno-constant-logical-operand -Wno-undef -g2 -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -o CMakeFiles/common.dir/src/util/String.cpp.o -c /tmp/arx-libertatis-20161025-23714-1w61kp9/arx-libertatis-1.1.2/src/util/String.cpp
  14. make[1]: *** [CMakeFiles/common.dir/all] Error 2
  15. make: *** [all] Error 2
Steps to reproduce this issue
Nothing entered.

#1
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Oct 25, 04:57
Please try compiling the latest development code (git master) - the parameter type has already been fixed in commit 39fb9a0.
#3
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Nov 04, 11:36
Assuming this does not affect master since the argument type has been fixed.

Please let us know if there still is a problem.

The issue was updated with the following change(s):
  • The status has been updated, from New to Not a bug.
  • This issue has been closed
  • The resolution has been updated, from Not determined to CAN'T REPRODUCE.