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

clang 9 broken on macOS #70243

Closed
Kha opened this issue Oct 2, 2019 · 0 comments · Fixed by #70364
Closed

clang 9 broken on macOS #70243

Kha opened this issue Oct 2, 2019 · 0 comments · Fixed by #70364
Assignees
Labels
0.kind: bug 6.topic: darwin Running or building packages on Darwin

Comments

@Kha
Copy link
Contributor

Kha commented Oct 2, 2019

Describe the bug
Compiling any C++ program with the new LLVM 9 package fails on macOS:

    /nix/store/x4z2imh49qa4s8ha8q5jmi2y1yqwk785-clang-wrapper-9.0.0/bin/clang++    -arch x86_64   -o CMakeFiles/cmTC_fc86f.dir/testCXXCompiler.cxx.o -c /Users/vsts/agent/2.155.1/work/1/s/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
    dyld: Library not loaded: /nix/store/l5v0m6cdgbga34p5r10wclqssi4nsg1l-clang-9.0.0-lib/lib/libclang-cpp.dylib
      Referenced from: /nix/store/fppa97556f5849wm59jqa7jc7rbvj7sh-clang-9.0.0/bin/clang++
      Reason: image not found

(see also https://dev.azure.com/leanprover/lean4/_build/results?buildId=288)

To Reproduce
(I don't have a Mac available to test a more minimal example)

Additional context
using https://github.com/nixos/nixpkgs/archive/3f4144c30a6351dd79b177328ec4dea03e2ce45f.tar.gz

I believe the issue is the use of . in the following patterns, which doesn't match the seemingly new library libclang-cpp:

moveToOutput "lib/libclang.*" "$lib"
substituteInPlace $out/lib/cmake/clang/ClangTargets-release.cmake \
--replace "\''${_IMPORT_PREFIX}/lib/libclang." "$lib/lib/libclang."

But again, I don't have a Mac available to test that unfortunately.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: clang_9
# a list of nixos modules affected by the problem
module:
@Kha Kha added the 0.kind: bug label Oct 2, 2019
Kha added a commit to leanprover/lean4 that referenced this issue Oct 2, 2019
@matthewbauer matthewbauer self-assigned this Oct 2, 2019
@veprbl veprbl added the 6.topic: darwin Running or building packages on Darwin label Oct 2, 2019
matthewbauer added a commit to matthewbauer/nixpkgs that referenced this issue Oct 4, 2019
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this issue Jan 6, 2020
rvem pushed a commit to serokell/nixpkgs that referenced this issue Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants