-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
llvmPackages_10: init at rc2 #78482
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
llvmPackages_10: init at rc2 #78482
Conversation
The build failed for me, because of hash-mismatches when downloading using fetchBranchSub. I don't now how often the archive is updated, but maybe using git to get a commit of the release/10.x branch would be more stable until we have a release?
|
Possibly the @DieGoldeneEnte I'll have to overhaul the unpacking still, so I'd prefer not to fix these right now, maybe there is a small perl script somewhere that parses the error and EDIT: I am writing such a script. $ cat fix-wanted.awk
# hash mismatch in fixed-output derivation '/nix/store/gkixca1c9jcqs0qwj0pns4gfkycjn117-Xlldb-11-init.tar.gz':
# wanted: sha256:02gb3fbz09kyw8n71218v5v77ip559x3gqbcp8y3w6n3jpbryywa
# got: sha256:1cjsvyrq759hmp4cki2l2q62pdasqmjcpqkb5rdgx0rpmnrja1i2 # invoke `awk -f fix-wanted.awk -F: 〈mismatch-log〉 > script.sh && sh script.sh`
/wanted: / { wanted = $3 }
/got: / { got = $3; print "git grep", wanted, "|", "awk -F: '{print $1}' | xargs perl -pi -e s/"wanted"/"got"/g" } |
cc16213
to
604d50a
Compare
@matthewbauer @dtzWill ping for a quick review. I can quickly iterate on this. |
I had a quick look at the missing lldb.1 file. If I interpret it correctly the man page for lldb now needs to be build with sphinx like it is already done for llvm. If you want I could try to get man pages for lldb working, once I find some time. |
~~It is there in the RC1~~
…On 2/4/20, Holger Wünsche ***@***.***> wrote:
I had a quick look at the missing lldb.1 file. If I interpret it correctly
the man page for lldb now needs to be build with sphinx like it is already
done for llvm. If you want I could try to get man pages for lldb working,
once I find some time.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#78482 (comment)
|
I could only find lldb.rst, but not lldb.1 (in the repository and the lldb-archive).
when building via nix-review or nix-build on your fork |
Sorry, you are probably right then. I didn't look inside the tarball, I just assumed that they must be there if there were there for the GitHub 9.0.1 release too. But in fact, So maybe we'll need Something like pandoc -s -t man ../docs/man/lldb.rst -o $out/share/man/man1/lldb.1 |
something like
should be enough (copied from llvm.nix, so some adjustments are likely needed) together with adding the needed dependencies. The cmake code can be found in lldb/docs/CMakeLists.txt . |
@DieGoldeneEnte added some build steps, but EDIT: found |
@DieGoldeneEnte Okay, I think I cracked it. PTAL. |
It build with rc2. I noticed some warnings when building the clang documentation, but this is an upstream problem. |
@DieGoldeneEnte, I don't see what you are at. I did
There is no |
|
@ggreif You have to look in the llvm-10.0.0rc2-lib output (not sure what the best way to find it is, I just search in /nix/store/), since libLLVM-* gets moved there. |
$ ls -l /nix/store/jpm7zyqffsvijm4dp77659vjlk46yfw0-llvm-10.0.0rc2-lib/lib/
total 78132
lrwxr-xr-x 1 root wheel 13 Jan 1 1970 libLLVM-10.0.0.dylib ->
libLLVM.dylib
lrwxr-xr-x 1 root wheel 13 Jan 1 1970 libLLVM-10.dylib -> libLLVM.dylib
-r-xr-xr-x 1 root wheel 80006820 Jan 1 1970 libLLVM.dylib
…On 2/16/20, Holger Wünsche ***@***.***> wrote:
@ggreif You have to look in the llvm-10.0.0rc2-lib output (not sure what the
best way to find it is, I just search in /nix/store/), since libLLVM-* gets
moved there.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#78482 (comment)
|
LGTM and should be mergeable after squashing. |
@DieGoldeneEnte Successfully built on Darwin and squashed. Also rebased to |
@matthewbauer @dtzWill ping. |
LGTM, only thing I noticed is the homepages are all http instead of https. Do we change this here or create an extra PR for all versions? |
We have a bunch to backport. Let's do it in a follow-up.
…On 2/18/20, Holger Wünsche ***@***.***> wrote:
LGTM, only thing I noticed is the homepages are all http instead of https.
Do we change this here or create an extra PR for all versions?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#78482 (comment)
|
@GrahamcOfBorg build clang_10 lld_10 lldb_10 llvm_10 |
* starting with rc2 * make `lldb` compilable again on Darwin * separate out manpage creation for `lldb` into a new derivation * minor tweaks to the patching of sources, some of which are backportable to earlier versions
I've talked with @ggreif offline that we shouldn't update So now this PR just adds |
Thanks @basvandijk. Just as a reference (in case a upgrade to llvm10 breaks a package using polly): There might be some changes to how compilation using polly will work with llvm_10 (see 45001 or llvm-project#120). The change is currently in llvm10-rc2, but might be reverted. |
llvmPackages_10: init at rc2 (cherry picked from commit b63491f)
- filed: https://bugs.llvm.org/show_bug.cgi?id=44726 (bootstrap w/
gcc
)- filed: https://bugs.llvm.org/show_bug.cgi?id=44727 (bootstrap w/
gcc
)- filed: https://bugs.llvm.org/show_bug.cgi?id=44808 (harmless warning)
llvm
being built twice forllvmPackages_10
? Understood, withpolly
and without.Reaching out to @dtzWill for pointers.
Miscellaneous:
staging
branch? Not needed, no mass rebuilds will happen.libcompression
as a dependency? (Nope, non-free.)My build system is a MacBook Pro with High Sierra (macOS 10.13.6).
Motivation for this change
Get on the llvm-10 bandwagon, learn how to do
nix
stuff.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)