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

MPLAPACK build is broken on macOS Monterey, Xcode 1.4.0 #60

Open
nakatamaho opened this issue Sep 28, 2022 · 2 comments
Open

MPLAPACK build is broken on macOS Monterey, Xcode 1.4.0 #60

nakatamaho opened this issue Sep 28, 2022 · 2 comments

Comments

@nakatamaho
Copy link
Owner

libtool: link: ccache g++-mp-10 -fopenmp -I../../../../include -I/Volumes/Users/maho/tm/mplapack/external/i/GMP/include/ -I/Volumes/Users/maho/
tm/mplapack/external/i/MPFR/include/ -I/Volumes/Users/mah
o/tm/mplapack/external/i/MPC/include/ -I../../../../mpfrc++ -D___MPLAPACK_BUILD_WITH_MPFR___ -D___MPLAPACK_INTERNAL___ -I../../../../mplapack/test/fable -march=native -O2 -finline-functions -funroll-all-loops -Wl,-rpath -Wl,/Volumes/Users/maho/MPLAPACK/lib -o .libs/xlintstR_mpfr ../common/xlintstR_mpfr-Rchkaa.o -Wl,-bind_at_load -L../../../../mplapack/test/lin /Volumes/Users/maho/tm/mplapack/mplapack/test/lin/.libs/liblin_mpfr.dylib /Volumes/Users/maho/tm/mplapack/mplapack/test/lin/.libs/liblin_override_mpfr.dylib -L../../../../mplapack/test/matgen /Volumes/Users/maho/tm/mplapack/mplapack/test/matgen/.libs/libmatgen_mpfr.dylib -L../../../../mplapack/reference /Volumes/Users/maho/tm/mplapack/mplapack/reference/.libs/libmplapack_mpfr.dylib -L../../../../mpblas/reference /Volumes/Users/maho/tm/mplapack/mpblas/reference/.libs/libmpblas_mpfr.dylib -L/Volumes/Users/maho/tm/mplapack/external/i/MPC/lib/ -L/Volumes/Users/maho/tm/mplapack/external/i/MPFR/lib/ -L/Volumes/Users/maho/tm/mplapack/external/i/GMP/lib/ /Volumes/Users/maho/tm/mplapack/external/mpc/../i/MPC/lib/libmpc.dylib -L/Volumes/Users/maho/tm/mplapack/external/i/GMP/lib /Volumes/Users/maho/tm/mplapack/external/mpfr/../i/MPFR/lib/libmpfr.dylib /Volumes/Users/maho/tm/mplapack/external/gmp/../i/GMP/lib/libgmpxx.dylib /Volumes/Users/maho/tm/mplapack/external/gmp/../i/GMP/lib/libgmp.dylib -lm -L/Volumes/Users/maho/tm/mplapack/external/i/LAPACK/lib/ -llapacke -llapack -lblas -lgfortran -fopenmp
0 0x104d7affa __assert_rtn + 139
1 0x104bae28d mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions const&) + 4989
2 0x104b9ef8f mach_o::relocatable::Parser<x86_64>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 207
3 0x104c159d4 ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 2036
4 0x104c18fa0 ___ZN2ld4tool10InputFilesC2ER7Options_block_invoke + 48
5 0x7ff803e3534a _dispatch_client_callout2 + 8
6 0x7ff803e468f5 _dispatch_apply_invoke + 213
7 0x7ff803e35317 _dispatch_client_callout + 8
8 0x7ff803e44c0c _dispatch_root_queue_drain + 673
9 0x7ff803e4525c _dispatch_worker_thread2 + 160
10 0x7ff803fe8f8a _pthread_wqthread + 256
A linker snapshot was created at:
/tmp/xlintstR_mpfr-2022-09-28-072133.ld-snapshot
ld: Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file macho_relocatable_file.cpp, line 2061.
collect2: error: ld returned 1 exit status
make[4]: *** [xlintstR_mpfr] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

% xcodebuild -version
Xcode 14.0.1
Build version 14A400

@nakatamaho
Copy link
Owner Author

https://stackoverflow.com/questions/73714336/xcode-update-to-version-2395-ld-compile-problem-occurs-computedatomcount-m

Downgrade your command line tools version to 13.4 and it will be resolved.

@nakatamaho
Copy link
Owner Author

How to workaround

% sudo xcode-select --switch /Library/Developer/CommandLineTools

  • Make sure that 13.4 command line tool has been installed successfully.

% pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 13.4.0.0.1.1651278267
volume: /
location: /
install-time: 1664332287
groups: com.apple.FindSystemFiles.pkg-group

nakatamaho added a commit that referenced this issue Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant