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

LLVM 14 incompatible with MacOS 11? #53

Closed
aminya opened this issue Apr 20, 2022 · 3 comments · Fixed by #65
Closed

LLVM 14 incompatible with MacOS 11? #53

aminya opened this issue Apr 20, 2022 · 3 comments · Fixed by #65
Labels
bug Something isn't working question Further information is requested

Comments

@aminya
Copy link
Owner

aminya commented Apr 20, 2022

https://github.com/aminya/project_options/runs/6100965907?check_suite_focus=true

ld: warning: dylib (/Users/runner/hostedtoolcache/llvm/14.0.0/x64/lib/libc++.dylib) was built for newer macOS version (11.6) than being linked (11.0)
ld: warning: dylib (/Users/runner/hostedtoolcache/llvm/14.0.0/x64/lib/libunwind.dylib) was built for newer macOS version (11.6) than being linked (11.0)
ld: warning: dylib (/Users/runner/hostedtoolcache/llvm/14.0.0/x64/lib/libunwind.dylib) was built for newer macOS version (11.6) than being linked (11.0)
ThinLTO: CMakeFiles/main.dir/Release/src/main/main.cpp.o0: error: Invalid record
LLVM ERROR: Can't load module, abort.
clang-14: error: unable to execute command: Abort trap: 6
clang-14: error: linker command failed due to signal (use -v to see invocation)

aminya/project_options#122 (comment)

@aminya aminya added bug Something isn't working question Further information is requested labels Apr 20, 2022
@ClausKlein
Copy link

No, it works on my OSX:

bash-3.2$ cmake -B ../build -G Ninja
-- The CXX compiler identification is Clang 14.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/clausklein/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/local/bin/git (found version "2.36.0") 
-- Version: 7.1.3
-- Build type: 
-- CXX_STANDARD: 11
-- Performing Test has_std_11_flag
-- Performing Test has_std_11_flag - Success
-- Performing Test has_std_0x_flag
-- Performing Test has_std_0x_flag - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Performing Test FMT_HAS_VARIANT
-- Performing Test FMT_HAS_VARIANT - Success
-- Required features: cxx_variadic_templates
-- Performing Test HAS_NULLPTR_WARNING
-- Performing Test HAS_NULLPTR_WARNING - Success
-- Looking for strtod_l
-- Looking for strtod_l - found
-- CPM: adding package fmt@7.1.3 (7.1.3 at /Users/clausklein/.cache/CPM/fmt/9dd47b889fbf7c876d24be56ca097a884004b789)
-- cxxopts version 2.2.0
-- The C compiler identification is Clang 14.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/clausklein/llvm/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CPM: adding package cxxopts@2.2.0 (v2.2.0 at /Users/clausklein/.cache/CPM/cxxopts/d5c328043c71a6a5670c290d8646b093756db962)
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/clausklein/cmake/TheLartians/PackageProject/build
bash-3.2$ cmake --build ../build --target all
[11/11] Linking CXX static library _deps/fmt-build/libfmt.a
bash-3.2$ cmake --build ../build --target test
[0/1] Running tests...
Test project /Users/clausklein/cmake/TheLartians/PackageProject/build
    Start 1: test
1/1 Test #1: test .............................   Passed    0.24 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.24 sec
bash-3.2$ git status
Auf Branch master
Ihr Branch ist auf demselben Stand wie 'origin/master'.

nichts zu committen, Arbeitsverzeichnis unverändert
bash-3.2$ 

@aminya
Copy link
Owner Author

aminya commented Apr 24, 2022

Could you build with libc++?

@aminya
Copy link
Owner Author

aminya commented Apr 27, 2022

The libraries shipped with llvm are built for macOS 11.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants