Skip to content
Back to formatted view

Raw Message

Message-ID: <b55f4652-266d-cd50-87d2-30dcbdcbd8c2@stats.ox.ac.uk>
Date: 2023-04-04T18:14:55Z
From: Brian Ripley
Subject: Symbol not found: _timespec_get
In-Reply-To: <c3481e39-a76f-1173-c4b9-cf269b2fd40f@gmail.com>

On 04/04/2023 18:45, Tomas Kalibera wrote:
> 
> On 4/4/23 18:26, Jennifer Wokaty wrote:
>> Hi,
>>
>> I tried installing the x86_64 alpha available today at 
>> https://mac.r-project.org/big-sur-x86_64/R-4.3-branch/R-4.3-branch-x86_64.pkg; however, I'm getting the following error:
>>
>> $ sudo installer -pkg R-4.3-branch-x86_64.pkg -target /
>> installer: Package name is R 4.3.0 for macOS (X86_64)
>> installer: Upgrading at base path /
>> installer: The upgrade was successful.
>> $ R
>> dyld: lazy symbol binding failed: Symbol not found: _timespec_get
>> ?? Referenced from: 
>> /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libR.dylib (which was built for Mac OS X 11.0)
>> ?? Expected in: /usr/lib/libSystem.B.dylib
>>
>> dyld: Symbol not found: _timespec_get
>> ?? Referenced from: 
>> /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libR.dylib (which was built for Mac OS X 11.0)
>> ?? Expected in: /usr/lib/libSystem.B.dylib
>>
>> Abort trap: 6
>>
>> Is this a problem with the .pkg file?
> 
> Hi Jen,
> 
> could you please report your macOS version, e.g. via sessionInfo()? Is 
> it at least 11?

'they' probably cannot run R to run sessionInfo().  Use 'About this Mac' 
from the Apple menu to find the version without R.

The header has

__API_AVAILABLE(macosx(10.15), ios(13.0), tvos(13.0), watchos(6.0))
int timespec_get(struct timespec *ts, int base);

which says timespec_get is available from macOS 10.15 (Catalina)

We have had trouble with this before: configure.ac says

## timespec_get is C11.
## macOS added timespec_get in 10.15 but used 10.15's SDK for 10.14 
(Darwin 18)

and it skips detection for Darwin <= 18.

> 
> Tomas
> 
>>
>> Jennifer Wokaty (they/them)
>>
>> Waldron Lab at CUNY SPH
>> Bioconductor Core Team-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford