Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failure on macOS #23819

Closed
josefsachsconning opened this issue Sep 22, 2017 · 14 comments
Closed

build failure on macOS #23819

josefsachsconning opened this issue Sep 22, 2017 · 14 comments
Labels
system:mac Affects only macOS

Comments

@josefsachsconning
Copy link
Contributor

(My most recent successful build was at 5ad2246)

Josefs-MacBook-Pro$ make
make[4]: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreFoundation.framework', needed by `libgit2_clar'.  Stop.
make[3]: *** [CMakeFiles/libgit2_clar.dir/all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [scratch/libgit2-15e119375018fba121cf58e02a9f17fe22df0df8/build-compiled] Error 2
make: *** [julia-deps] Error 2
@ViralBShah ViralBShah added the system:mac Affects only macOS label Sep 22, 2017
@josefsachsconning
Copy link
Contributor Author

Note that I updated Xcode to version 9.0 on September 20. Not sure whether that is relevant.

@yuyichao
Copy link
Contributor

Is this a clean build?

@Keno
Copy link
Member

Keno commented Sep 22, 2017

Seconded on @yuyichao's question. It looks like the configuration step picked up an old SDK which no longer exists. That would happen if you configured before upgrading xcode and then built with the new xcode.

@josefsachsconning
Copy link
Contributor Author

Problem was not on a clean build. I will try that.

@ViralBShah
Copy link
Member

Reopen if persists.

@josefsachsconning
Copy link
Contributor Author

In a clean install, I get this:

ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
make[4]: *** [testlsame] Error 1
make[3]: *** [lapack_install] Error 2
make[2]: *** [netlib] Error 2
*** Clean the OpenBLAS build with 'make -C deps clean-openblas'. Rebuild with 'make OPENBLAS_USE_THREAD=0' if OpenBLAS had trouble linking libpthread.so, and with 'make OPENBLAS_TARGET_ARCH=NEHALEM' if there were errors building SandyBridge support. Both these options can also be used simultaneously. ***
make[1]: *** [scratch/openblas-5dde4e65d321076582a2fafe16949d2160551e81/build-compiled] Error 1
make: *** [julia-deps] Error 2

@yuyichao
Copy link
Contributor

According to Homebrew/legacy-homebrew#45011 returned by googling the error message, you need to reinstall gcc after updating xcode.

@josefsachsconning
Copy link
Contributor Author

Thanks for the multiple tips, and for your forbearance. I forgot that surrounding my Google search string in quotation marks would improve my search results.

After brew reinstall gcc, make now gives me the following.

Josefs-MacBook-Pro$ make
Making all in lib
  CC       libcurl_la-connect.lo
/Users/sachs/src/julia-master/deps/srccache/curl-7.55.1/lib/connect.c:1069:12: error:
      'connectx' is only available on macOS 10.11 or newer
      [-Werror,-Wunguarded-availability]
      rc = connectx(sockfd, &endpoints, SAE_ASSOCID_ANY,
           ^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/socket.h:713:5: note:
      'connectx' has been explicitly marked partial here
int connectx(int, const sa_endpoints_t *, sae_associd_t, unsigned int,
    ^
/Users/sachs/src/julia-master/deps/srccache/curl-7.55.1/lib/connect.c:1069:12: note:
      enclose 'connectx' in a __builtin_available check to silence this warning
      rc = connectx(sockfd, &endpoints, SAE_ASSOCID_ANY,
           ^~~~~~~~
1 error generated.
make[4]: *** [libcurl_la-connect.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [scratch/curl-7.55.1/build-compiled] Error 2
make: *** [julia-deps] Error 2

@yuyichao
Copy link
Contributor

Upstream issue afaict curl/curl#1330
You should be able to workaround this by passing -Wno-error C flags.

@josefsachsconning
Copy link
Contributor Author

I don't understand the connection to curl/curl#1330
since I am running on macOS 10.12.6

As you suggested, I do seem to have gotten around the problem by using make CFLAGS=-Wno-error. Thanks again.

@iamed2
Copy link
Contributor

iamed2 commented Oct 3, 2017

Looks like whichever version of curl comes next (EDIT: next release after 7.55.1) should fix it, as this commit supposedly fixes the issue: curl/curl@870d849

@iamed2
Copy link
Contributor

iamed2 commented Oct 3, 2017

@josefsachsconning it looks like it can happen if you have XCode 9.0 tools, even if you don't have High Sierra yet.

@iamed2
Copy link
Contributor

iamed2 commented Oct 3, 2017

@ViralBShah Do you think this should be reopened or should I make a new issue with this root cause?

@ViralBShah
Copy link
Member

I think a new issue would be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:mac Affects only macOS
Projects
None yet
Development

No branches or pull requests

5 participants