Conversation
|
Okay, this seems to be working now. Ready for review! |
RossComputerGuy
left a comment
There was a problem hiding this comment.
$ ./result/bin/cling
In file included from input_line_1:1:
/nix/store/8y16aj4mk0rbck2hlg538322d5r1gi7m-gcc-13.2.0/include/c++/13.2.0/new:40:10: fatal error: 'bits/c++config.h' file not found
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
Warning in cling::IncrementalParser::CheckABICompatibility():
Failed to extract C++ standard library version.
Replaced symbol atexit cannot be found in JIT!
Replaced symbol at_quick_exit cannot be found in JIT!
****************** CLING ******************
* Type C++ code and press enter to run it *
* Type .q to exit *
*******************************************
[cling]$
Builds fine on my M1 Pro under NixOS, but these errors are concerning. Though I don't know anything about cling but these errors still concern me.
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
| "-l" "${llvmPackages_9.libcxx}/lib/libc++.so" | ||
| "-I" "${lib.getDev llvmPackages_13.libcxx}/include/c++/v1" | ||
| "-L" "${llvmPackages_13.libcxx}/lib" | ||
| "-l" "${llvmPackages_13.libcxx}/lib/libc++.so" |
There was a problem hiding this comment.
| "-l" "${llvmPackages_13.libcxx}/lib/libc++.so" | |
| "-l" "${llvmPackages_13.libcxx}/lib/libc++${stdenv.hostPlatform.extensions.sharedLibrary}" |
Looks like enabling |
The problem is I am not under Darwin but under NixOS on Apple Silicon. |
|
Oh, that's not nice at all. But maybe enabling |
|
Well, I get even more interesting errors with that option enabled: |
|
So What if we replaced |
At least on
Amazing, it works. |
|
Thanks! Both changes should also be needed in 0.9, so I assume they are not regressions of this PR. I'll create a follow-up PR for that. |
Description of changes
Working on Cling 1.0, per the advice of @vgvassilev on #283989.
This currently builds, but has some path troubles. Marking as draft for now.
CC @a-n-n-a-l-e-e , @wegank
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)