Re: Compilation failure for openblas-0.3.7-1 under OSX 10.11.6
David Neuhaus <[email protected]>
| Newsgroups | gmane.os.apple.fink.beginners |
|---|---|
| Message-ID | <[email protected]> |
Hi Derek, I have not so far been able to find an update for CLT to reach 8.2.1; the only version I see on the Apple Developer site that is listed for use with OSX 10.11 and Xcode 8.2 turns out after re-installation to be the version I already had (8.2.0.0.1.1480973914). For what it's worth I did see the same version mismatch showing up in at least one message on the fink-beginners archive (https://sourceforge.net/p/fink/mailman/message/35611744), where as far as I could see the mismatch was not related to the problem (but I could well be wrong about that). I tried editing the install script as you requested even though CLT was not updated (I inserted the new lines immediately after the "if" block that starts "if [ "$darwin_vers" -ge 18 ]"), but that gave the same failure on attempting to compile openblas as before. If you can guide me to a proper update for CLT I will of course be happy to try again! Otherwise it's maybe starting to look like restriction might have to be the answer. Many thanks, David Neuhaus. On 20/02/2020, 14:05, "Homeier, Derek" <[email protected]> wrote: On 20 Feb 2020, at 4:47 am, Hanspeter Niederstrasser <[email protected]> wrote: > >> smallscaling.c: In function 'omp_bench': >> smallscaling.c:163:19: error: 'CLOCK_MONOTONIC' undeclared (first use in this function) >> 163 | clock_gettime(CLOCK_MONOTONIC, &tick); >> | ^~~~~~~~~~~~~~~ > > >> Distribution version: selfupdate-git Mon Feb 17 11:41:32 2020, 10.11, x86_64 >> Trees: local/main stable/main unstable/main >> Xcode.app: 8.2.1 >> Xcode command-line tools: 8.2.0.0.1.1480973914 > > Some older versions of OS X did not have CLOCK_MONOTONIC, but I don't remember when OS X acquired it. However, you do have a mismatch between Xcode and the command line tools. Do you still get the failure if you upgrade the CLT to 8.2.1? Sometimes mismatched header versions cause similar failures. > > After upgrading the command line tools, if you run `grep -rn CLOCK_MONOTONIC /usr/include`, hopefully /usr/include.time.h will show up as #defining CLOCK_MONOTONIC. If it does, then openblas should hopefully build. If it's not there, then openblas-0.3.7 might need to be restricted. I’ve seen some discussion online about OS X prior to 10.12 not making the clock_gettime function available. I do not have a 10.11 system available at the moment to try and debug this, but if you are still running into the error after updating your command line tools, could you test if a workaround is perhaps already provided for in the OpenBLAS build by editing the openblas.info file, to add the lines if [ "$darwin_vers" -lt 16 ]; then export MACOSX_DEPLOYMENT_TARGET="10.$darwin_vers" fi to the CompileScript? Cheers, Derek _______________________________________________ Fink-beginners mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-users/ Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-beginners