[QUESTION] Manually install clang-warp
Hi,
My server are under proxy that the script cannot download clang+llvm-warp.
./tools/packman/packman install -l ./_build/host-deps/llvm-project/release-aarch64 clang+llvm-warp 15.0.7-linux-aarch64-gcc7.5.7z
Package 'clang+llvm-warp' at version '15.0.7-linux-aarch64-gcc7.5.7z' is missing from local storage.
packman(WARNING): HTTPSConnectionPool(host='d4i3qtqj3r0z5.cloudfront.net', port=443): Max retries exceeded with url: /clang%2Bllvm-warp%4015.0.7-linux-aarch64-gcc7.5.7z
I have downoad the [email protected] but where should i put this file to run the installation manually.
I'd appreciate your help.
Hi, I think there are some small modifications I can make to the build script to support your use case better, but in the meantime you can give this a try.
In my environment I have export PM_PACKAGES_ROOT=$HOME/packman-repo set to control where the Packman packages are.
Where I have Warp checked out, I see the following symbolic link:
_build/host-deps/llvm-project/release-x86_64 -> /home/eshi/packman-repo/chk/clang+llvm-warp/18.1.3-linux-x86_64-gcc9.4
Since you are on aarch64, it would be:
_build/host-deps/llvm-project/release-aarch64 -> /home/eshi/packman-repo/chk/clang+llvm-warp/15.0.7-linux-aarch64-gcc7.5
Thank you for your timely response.
I have setup my folders as your instruction including export path and manually create symbolic link. When running:
./tools/packman/packman install -l ./_build/host-deps/llvm-project/release-aarch64 clang+llvm-warp 15.0.7-linux-aarch64-gcc7.5.7z
It appears the sha1 file is required for checksum. How can I find this file?
./tools/packman/packman install -l ./_build/host-deps/llvm-project/release-aarch64 clang+llvm-warp 15.0.7-linux-aarch64-gcc7.5.7z
packman(WARNING): Package at '/root/rendering/packman-repo/chk/clang+llvm-warp/15.0.7-linux-aarch64-gcc7.5.7z' is corrupt (missing sha1 file) and no valid redirect was found
Package 'clang+llvm-warp' at version '15.0.7-linux-aarch64-gcc7.5.7z' is missing from local storage.
packman(WARNING): HTTPSConnectionPool(host='d4i3qtqj3r0z5.cloudfront.net', port=443): Max retries exceeded with url: /clang%2Bllvm-warp%4015.0.7-linux-aarch64-gcc7.5.7z (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Blockpage')))
Another solution has worked for me: Build the warp.so and warp-clang.so from another machine and copy them to the server. 😄
Hey @phphuc612, I looked at the Packman docs some more and found something that should work unlike my original comment.
In this approach, I have a directory on my computer where I've placed the .7z file, e.g. /home/eshi/Downloads/packman-downloads
You will then modify the file in https://github.com/NVIDIA/warp/blob/main/tools/packman/config.packman.xml The existing remotes aren't needed if the system has no outside internet so just replace it with:
<config remotes="file">
<remote2 name="file">
<transport actions="upload list download" protocol="file" packageLocation="/home/eshi/Downloads/packman-downloads" />
</remote2>
</config>
Update the path accordingly.
Then you should be able to build Warp on the system without internet access. No need to set up symlinks or PM_PACKAGES_ROOT. Let me know how it goes!