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

0.6 Build fail: ld: library not found for -lcrt1.10.6.o #19588

Closed
dlfivefifty opened this issue Dec 13, 2016 · 8 comments
Closed

0.6 Build fail: ld: library not found for -lcrt1.10.6.o #19588

dlfivefifty opened this issue Dec 13, 2016 · 8 comments
Labels
system:mac Affects only macOS

Comments

@dlfivefifty
Copy link
Contributor

dlfivefifty commented Dec 13, 2016

This is a fresh build on OS X Sierra, with the following Make.user

override USE_SYSTEM_BLAS = 1
override USE_SYSTEM_LAPACK = 0

I get the following error very quickly:

100   327  100   327    0     0    121      0  0:00:02  0:00:02 --:--:--   121
100 24.3M  100 24.3M    0     0   329k      0  0:01:15  0:01:15 --:--:--  537k
patching file SuiteSparse_config/SuiteSparse_config.h
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   311  100   311    0     0    154      0  0:00:02  0:00:02 --:--:--   154
100 6165k  100 6165k    0     0   457k      0  0:00:13  0:00:13 --:--:--  770k
ld: library not found for -lcrt1.10.6.o
collect2: error: ld returned 1 exit status
make[3]: *** [testlsame] Error 1
/bin/sh: ./testlsame: No such file or directory
/bin/sh: ./testslamch: No such file or directory
/bin/sh: ./testdlamch: No such file or directory
/bin/sh: ./testsecond: No such file or directory
/bin/sh: ./testdsecnd: No such file or directory
/bin/sh: ./testieee: No such file or directory
/bin/sh: ./testversion: No such file or directory
make[2]: *** [lapack_install] Error 127
make[1]: *** [scratch/lapack-3.5.0/build-compiled0] Error 2
make: *** [julia-deps] Error 2
@tkelman tkelman added the system:mac Affects only macOS label Dec 14, 2016
@tkelman
Copy link
Contributor

tkelman commented Dec 14, 2016

Does it build without a Make.user? Where is your gfortran from? Have you run xcode-select --install since upgrading?

@dlfivefifty
Copy link
Contributor Author

  1. I started a build without Make.user, and appears to be going fine
  2. Homebrew. It's update to date.
  3. I just tried rerunning xcode-select --install (after having upgraded XCode again), but the same error happens

@tkelman
Copy link
Contributor

tkelman commented Dec 14, 2016

In the build that has a Make.user, can you do make VERBOSE=1 ?

@dlfivefifty
Copy link
Contributor Author

[Macintosh-3:~/Projects/julia6] solver% make VERBOSE=1
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C scratch/lapack-3.5.0/ lapacklib NOOPT=" -O2 -fPIC  -cpp -ffree-line-length-0 -ffixed-line-length-0 -Dsasum=sasum_gfort -Dscasum=scasum_gfort -Dscnrm2=scnrm2_gfort -Dsdot=sdot_gfort -Dsdsdot=sdsdot_gfort -Dsnrm2=snrm2_gfort -Dcdotc=cdotc_gfort -Dcdotu=cdotu_gfort -Dzdotc=zdotc_gfort -Dzdotu=zdotu_gfort -DSASUM=SASUM_GFORT -DSCASUM=SCASUM_GFORT -DSCNRM2=SCNRM2_GFORT -DSDOT=SDOT_GFORT -DSDSDOT=SDSDOT_GFORT -DSNRM2=SNRM2_GFORT -DCDOTC=CDOTC_GFORT -DCDOTU=CDOTU_GFORT -DZDOTC=ZDOTC_GFORT -DZDOTU=ZDOTU_GFORT -O0" OPTS=" -O2 -fPIC  -cpp -ffree-line-length-0 -ffixed-line-length-0 -Dsasum=sasum_gfort -Dscasum=scasum_gfort -Dscnrm2=scnrm2_gfort -Dsdot=sdot_gfort -Dsdsdot=sdsdot_gfort -Dsnrm2=snrm2_gfort -Dcdotc=cdotc_gfort -Dcdotu=cdotu_gfort -Dzdotc=zdotc_gfort -Dzdotu=zdotu_gfort -DSASUM=SASUM_GFORT -DSCASUM=SCASUM_GFORT -DSCNRM2=SCNRM2_GFORT -DSDOT=SDOT_GFORT -DSDSDOT=SDSDOT_GFORT -DSNRM2=SNRM2_GFORT -DCDOTC=CDOTC_GFORT -DCDOTU=CDOTU_GFORT -DZDOTC=ZDOTC_GFORT -DZDOTU=ZDOTU_GFORT" FORTRAN="gfortran -mmacosx-version-min=10.7 -m64" LOADER="gfortran -mmacosx-version-min=10.7 -m64" BLASLIB="-Wl,-rpath,'@loader_path/' -L/Users/solver/Projects/julia6/usr/lib -lgfortblas"
( cd INSTALL; /Applications/Xcode.app/Contents/Developer/usr/bin/make; ./testlsame; ./testslamch; ./testdlamch; \
	./testsecond; ./testdsecnd; ./testieee; ./testversion )
gfortran -mmacosx-version-min=10.7 -m64  -o testlsame lsame.o lsametst.o
ld: library not found for -lcrt1.10.6.o
collect2: error: ld returned 1 exit status
make[3]: *** [testlsame] Error 1
/bin/sh: ./testlsame: No such file or directory
/bin/sh: ./testslamch: No such file or directory
/bin/sh: ./testdlamch: No such file or directory
/bin/sh: ./testsecond: No such file or directory
/bin/sh: ./testdsecnd: No such file or directory
/bin/sh: ./testieee: No such file or directory
/bin/sh: ./testversion: No such file or directory
make[2]: *** [lapack_install] Error 127
make[1]: *** [scratch/lapack-3.5.0/build-compiled0] Error 2
make: *** [julia-deps] Error 2

@tkelman
Copy link
Contributor

tkelman commented Dec 14, 2016

Can your gfortran compile a working hello world?

@dlfivefifty
Copy link
Contributor Author

I'm not sure how to make a fortran hollow world. I tried:

      PROGRAM HELLO
*     The PRINT statement is like WRITE,
*     but prints to the standard output unit
        PRINT '(A)', 'Hello, world'
        STOP
      END

but got an error:

[Macintosh-3:~/Desktop] solver% gfortran helloworld.f 
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status

@tkelman
Copy link
Contributor

tkelman commented Dec 14, 2016

That sounds like a no. You may need to reinstall the homebrew gcc? bat-signaling @staticfloat in case he (or anyone else) knows the right invocation for that

@dlfivefifty
Copy link
Contributor Author

Ah, brew upgrade gcc fixed it! Thanks!

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

2 participants