Compile errors on OS X

187 views
Skip to first unread message

shawn

unread,
Apr 29, 2015, 5:01:02 PM4/29/15
to fix8-s...@googlegroups.com
In file included from xml.cpp:38:
In file included from ../include/fix8/f8includes.hpp:84:
../include/fix8/tickval.hpp:67:34: error: in-class initializer for static data member is not a constant expression
static const ticks errorticks = f8_time_point::max().time_since_epoch().count(); // 2262-04-12 09:47:16.854775807
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/fix8/tickval.hpp:102:12: error: no member named 'from_time_t' in 'std::__1::chrono::steady_clock'; did you mean 'std::chrono::system_clock::from_time_t'?
: _value(std::chrono::high_resolution_clock::from_time_t(secs) + std::chrono::duration_cast<duration>(std::chrono::nanoseconds(nsecs))) {}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
std::chrono::system_clock::from_time_t
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/chrono:926:23: note: 'std::chrono::system_clock::from_time_t' declared here
static time_point from_time_t(time_t __t) _NOEXCEPT;
^
In file included from xml.cpp:38:
In file included from ../include/fix8/f8includes.hpp:84:
../include/fix8/tickval.hpp:102:5: error: no matching constructor for initialization of 'f8_time_point' (aka 'time_point<std::chrono::high_resolution_clock>')
: _value(std::chrono::high_resolution_clock::from_time_t(secs) + std::chrono::duration_cast<duration>(std::chrono::nanoseconds(nsecs))) {}
In file included from xml.cpp:38:
In file included from ../include/fix8/f8includes.hpp:84:
../include/fix8/tickval.hpp:196:60: error: no viable conversion from 'const time_point<std::chrono::high_resolution_clock>' to 'const time_point<std::__1::chrono::system_clock>'
const time_t insecs(std::chrono::system_clock::to_time_t(_value));

fix8-1.3.3 shawn$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

fix8-1.3.3 shawn$ autoconf -V
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.

dakka

unread,
Apr 30, 2015, 4:30:37 AM4/30/15
to fix8-s...@googlegroups.com
Raise a ticket in Jira, include as much detail as possible.
/dakka

Roderick Fairfowl

unread,
May 1, 2015, 11:21:45 PM5/1/15
to fix8-s...@googlegroups.com
Hi there,
I have it building fine on Yosemite. See the attached patch.
I'm pretty busy so could someone else submit this as a pull request to git?
RF
fix8-1.3.3-osx-10.10.patch

dakka

unread,
May 2, 2015, 6:31:00 PM5/2/15
to fix8-s...@googlegroups.com
Thanks Rod. 
Reply all
Reply to author
Forward
0 new messages