[build] Currently broken with Xcode 8?
 
            Current develop appears not to build with XCode 8.0 causing Travis tests to fail, for example: https://travis-ci.org/boostorg/config/jobs/318188889 Thanks, John. --- This email has been checked for viruses by AVG. http://www.avg.com
 
            AMDG On 12/19/2017 06:05 AM, John Maddock via Boost wrote:
Current develop appears not to build with XCode 8.0 causing Travis tests to fail, for example: https://travis-ci.org/boostorg/config/jobs/318188889
It's probably this: https://github.com/boostorg/build/commit/0c6d0165b096b9e026c933194eff4e12468... Does anyone know the correct way to detect whether struct stat has st_mtim (or does it have a different name on OSX?). In Christ, Steven Watanabe
 
            On 12/19/2017 10:15 AM, Steven Watanabe via Boost wrote:
AMDG
On 12/19/2017 06:05 AM, John Maddock via Boost wrote:
Current develop appears not to build with XCode 8.0 causing Travis tests to fail, for example: https://travis-ci.org/boostorg/config/jobs/318188889
It's probably this:
https://github.com/boostorg/build/commit/0c6d0165b096b9e026c933194eff4e12468...
Does anyone know the correct way to detect whether struct stat has st_mtim (or does it have a different name on OSX?).
tti in c++ ?
In Christ, Steven Watanabe
 
            AMDG On 12/19/2017 09:37 AM, Edward Diener via Boost wrote:
On 12/19/2017 10:15 AM, Steven Watanabe via Boost wrote:
Does anyone know the correct way to detect whether struct stat has st_mtim (or does it have a different name on OSX?).
tti in c++ ?
Unfortunately, this is C and cannot depend on Boost (or anything other than standard system libraries). In Christ, Steven Watanabe
 
            On 12/19/2017 12:22 PM, Steven Watanabe via Boost wrote:
AMDG
On 12/19/2017 09:37 AM, Edward Diener via Boost wrote:
On 12/19/2017 10:15 AM, Steven Watanabe via Boost wrote:
Does anyone know the correct way to detect whether struct stat has st_mtim (or does it have a different name on OSX?).
tti in c++ ?
Unfortunately, this is C and cannot depend on Boost (or anything other than standard system libraries).
I can understand why Boost Build does not depend on Boost, but what is the reason for C as opposed to C++ ?
In Christ, Steven Watanabe
 
            Steven Watanabe wrote:
It's probably this:
https://github.com/boostorg/build/commit/0c6d0165b096b9e026c933194eff4e12468...
Does anyone know the correct way to detect whether struct stat has st_mtim (or does it have a different name on OSX?).
Judging by https://github.com/tavianator/bfs/issues/12 https://github.com/tavianator/bfs/pull/13 the field is `struct timespec st_mtimespec;` on MacOS, although the code works on xcode 8.3/9/9.1: https://travis-ci.org/boostorg/config/builds/318188812 so it's not clear whether the field is renamed there, or there's a macro st_mtim. In either case the various xcodes should probably be added to Build's .travis.
 
            On Dec 19, 2017, at 8:15 AM, Steven Watanabe via Boost <boost@lists.boost.org<mailto:boost@lists.boost.org>> wrote: AMDG On 12/19/2017 06:05 AM, John Maddock via Boost wrote: Current develop appears not to build with XCode 8.0 causing Travis tests to fail, for example: https://travis-ci.org/boostorg/config/jobs/318188889 It's probably this: https://github.com/boostorg/build/commit/0c6d0165b096b9e026c933194eff4e12468... Does anyone know the correct way to detect whether struct stat has st_mtim (or does it have a different name on OSX?). With macOS Sierra (10.12.6) you get stat.st_mtime like this: #if !defined(__DARWIN_64_BIT_INO_T) struct stat { dev_t st_dev; /* [XSI] ID of device containing file */ ino_t st_ino; /* [XSI] File serial number */ mode_t st_mode; /* [XSI] Mode of file (see below) */ nlink_t st_nlink; /* [XSI] Number of hard links */ uid_t st_uid; /* [XSI] User ID of the file */ gid_t st_gid; /* [XSI] Group ID of the file */ dev_t st_rdev; /* [XSI] Device ID */ #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) struct timespec st_atimespec; /* time of last access */ struct timespec st_mtimespec; /* time of last data modification */ struct timespec st_ctimespec; /* time of last status change */ #else time_t st_atime; /* [XSI] Time of last access */ long st_atimensec; /* nsec of last access */ time_t st_mtime; /* [XSI] Last data modification time */
participants (5)
- 
                 Belcourt, Kenneth Belcourt, Kenneth
- 
                 Edward Diener Edward Diener
- 
                 John Maddock John Maddock
- 
                 Peter Dimov Peter Dimov
- 
                 Steven Watanabe Steven Watanabe