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

julia1.10.4 using CUDA ERROR: failed to parse TOML output from running "~/.julia/packages/CUDA_Runtime_jll/VNnmC/.pkg/select_artifacts.jl", got: TOML Parser error: none:1:7 error: expected equal sign after key #54708

Open
lxk960772214 opened this issue Jun 6, 2024 · 0 comments

Comments

@lxk960772214
Copy link

My System Environment:
graphics card: V100
Driver Version: 535.54.03
system: centos7

versioninfo():
Julia Version 1.10.4
Commit 48d4fd4 (2024-06-04 10:41 UTC)
Build Info:

Note: This is an unofficial build, please report bugs to the project
responsible for this build and not to the Julia project unless you can
reproduce the issue using official builds available at https://julialang.org/downloads

Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: 16 × Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, cascadelake)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
Environment:
LD_LIBRARY_PATH = /data/apps/cudnn/8.6.0_cuda11.x/cuda/lib:/data/apps/gcc/9.3.0/lib64:/data/apps/gcc/9.3.0/lib:/data/apps/gcc/9.3.0/libexec:/data/apps/cuda/12.2/libnvvp:/data/apps/cuda/12.2/libnsight:/data/apps/cuda/12.2/lib64:/data/apps/anaconda/2020.11/lib

Julia installation method:
git clone -b v1.10.4 https://github.com/JuliaLang/julia.git
module load anaconda/2020.11 cmake/3.23.4 cuda/12.2 gcc/9.3 cudnn/8.6.0_cuda11.x
source activate scv6a6p
make

conda list:
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
bzip2 1.0.8 hd590300_5 conda-forge
ca-certificates 2024.6.2 hbcca054_0 conda-forge
icu 73.2 h59595ed_0 conda-forge
ld_impl_linux-64 2.40 hf3520f5_2 conda-forge
libffi 3.4.2 h7f98852_5 conda-forge
libgcc-ng 13.2.0 h77fa898_7 conda-forge
libgomp 13.2.0 h77fa898_7 conda-forge
libiconv 1.17 hd590300_2 conda-forge
libllvm18 18.1.6 hb77312f_0 conda-forge
libnsl 2.0.1 hd590300_0 conda-forge
libsqlite 3.45.3 h2797004_0 conda-forge
libstdcxx-ng 13.2.0 hc0a3c3a_7 conda-forge
libuuid 2.38.1 h0b41bf4_0 conda-forge
libxcrypt 4.4.36 hd590300_1 conda-forge
libxml2 2.12.7 hc051c1a_1 conda-forge
libzlib 1.3.1 h4ab18f5_1 conda-forge
llvm 18.1.6 h39da44c_0 conda-forge
ncurses 6.5 h59595ed_0 conda-forge
ninja 1.12.1 h297d8ca_0 conda-forge
openssl 3.3.1 h4ab18f5_0 conda-forge
pip 24.0 pyhd8ed1ab_0 conda-forge
python 3.9.19 h0755675_0_cpython conda-forge
readline 8.2 h8228510_1 conda-forge
setuptools 70.0.0 pyhd8ed1ab_0 conda-forge
tk 8.6.13 noxft_h4845f30_101 conda-forge
tzdata 2024a h0c530f3_0 conda-forge
wheel 0.43.0 pyhd8ed1ab_1 conda-forge
xz 5.2.6 h166bdaf_0 conda-forge
zstd 1.5.6 ha6fb4c9_0 conda-forge

I am trying to download or compile the source code of Julia 1.10.4. When I execute import Pkg; Pkg.add("CUDA"), I encounter an error. The error log is as follows:

julia> Pkg.add("CUDA")
┌ Error: curl_easy_setopt: 48

│ You may be using an old system libcurl library that doesn't understand options that Julia uses. You can try the following Julia code to see which libcurl library you are using:

│ using Libdl
│ filter!(contains("curl"), dllist())

│ If this indicates that Julia is not using the libcurl library that is shipped with Julia, then that is likely to be the problem. This either means:

│ 1. You are using an unofficial Julia build which is configured to use a system libcurl library that is not recent enough; you may be able to fix this by upgrading the system libcurl. You should complain to your distro maintainers for allowing Julia to use a too-old libcurl version and consider using official Julia binaries instead.

│ 2. You are overriding the library load path by setting LD_LIBRARY_PATH, in which case you are in advanced usage territory. You can try upgrading the system libcurl, unsetting LD_LIBRARY_PATH, or otherwise arranging for Julia to load a recent libcurl library.

│ If neither of these is the case and Julia is picking up a too old libcurl, please file an issue with the Downloads.jl package.

└ @ Downloads.Curl /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Downloads/src/Curl/utils.jl:34
┌ Error: curl_easy_setopt: 48

│ You may be using an old system libcurl library that doesn't understand options that Julia uses. You can try the following Julia code to see which libcurl library you are using:

│ using Libdl
│ filter!(contains("curl"), dllist())

│ If this indicates that Julia is not using the libcurl library that is shipped with Julia, then that is likely to be the problem. This either means:

│ 1. You are using an unofficial Julia build which is configured to use a system libcurl library that is not recent enough; you may be able to fix this by upgrading the system libcurl. You should complain to your distro maintainers for allowing Julia to use a too-old libcurl version and consider using official Julia binaries instead.

│ 2. You are overriding the library load path by setting LD_LIBRARY_PATH, in which case you are in advanced usage territory. You can try upgrading the system libcurl, unsetting LD_LIBRARY_PATH, or otherwise arranging for Julia to load a recent libcurl library.

│ If neither of these is the case and Julia is picking up a too old libcurl, please file an issue with the Downloads.jl package.

└ @ Downloads.Curl /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Downloads/src/Curl/utils.jl:34
┌ Debug: Skipping updating registry General since it is on cooldown: 23 hours, 34 minutes, 21 seconds, 599 milliseconds left
└ @ Pkg.Registry /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/Registry/Registry.jl:387
Resolving package versions...
┌ Debug: tiered_resolve: trying PRESERVE_ALL
└ @ Pkg.Operations /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1332
┌ Debug: Adding include dependency on /lib64/libcuda.so.1
└ @ Main ~/.julia/packages/CUDA_Runtime_jll/VNnmC/.pkg/platform_augmentation.jl:78
┌ Debug: Rejecting cache file /data02/home/scv6002/.julia/compiled/v1.10/CUDA_Driver_jll/QJyk7_qxdbM.ji due to it containing an invalid cache header
└ @ Base loading.jl:3012
┌ Debug: Rejecting cache file /data02/home/scv6002/.julia/compiled/v1.10/CUDA_Driver_jll/QJyk7_kEE7A.ji due to it containing an invalid cache header
└ @ Base loading.jl:3012
┌ Debug: Rejecting cache file /data02/home/scv6002/.julia/compiled/v1.10/CUDA_Driver_jll/QJyk7_qxdbM.ji due to it containing an invalid cache header
└ @ Base loading.jl:3012
┌ Debug: Rejecting cache file /data02/home/scv6002/.julia/compiled/v1.10/CUDA_Driver_jll/QJyk7_kEE7A.ji due to it containing an invalid cache header
└ @ Base loading.jl:3012
┌ Debug: Precompiling CUDA_Driver_jll [4ee394cb-3365-5eb0-8335-949819d2adfc]
└ @ Base loading.jl:2353
┌ Debug: Precompiling LazyArtifacts [4af54fe1-eca0-43a8-85a7-787d91b784e3]
└ @ Base loading.jl:2353
ERROR: LoadError: failed process: Process(setenv(/data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/tools/lld -flavor gnu '' -shared -o /data02/home/scv6002/.julia/compiled/v1.10/LazyArtifacts/jl_tlN4iP --whole-archive /data02/home/scv6002/.julia/compiled/v1.10/LazyArtifacts/jl_OJsFDk --no-whole-archive -L/data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/lib/julia -L/data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/lib -ljulia -ljulia-internal,["DOCPATH=/data/apps/priv/cmake/3.23.4/doc", "_CE_M=", "PATH=/data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/tools:/data/apps/gcc/9.3.0/bin:/data/apps/cuda/12.2/bin:/data/apps/priv/cmake/3.23.4/bin:/data02/home/scv6002/.conda/envs/scv6a6p/bin:/data/apps/anaconda/2020.11/condabin:/data02/home/scv6002/run/liuxk/tmp/scv6a6p/llvm-project/build/bin:/data02/home/scv6002/bin:/data/home/scv6001/bin:/data02/home/scv6002/.juliaup/bin:/data02/home/scv6002/bin:/data/home/scv6002/run/zqq/vaspkit.1.00/bin:/data02/home/scv6002/.jamip/bin:/data/home/scv6002/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/data02/home/scv6002/.local/bin:/data02/home/scv6002/bin", "QTINC=/usr/lib64/qt-3.3/include", "HISTSIZE=3000", "CONDA_PYTHON_EXE=/data/apps/anaconda/2020.11/bin/python", "QTDIR=/usr/lib64/qt-3.3", "CONDA_PREFIX_1=/data/apps/anaconda/2020.11", "LD_LIBRARY_PATH=/data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/lib/julia:/data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/lib:/data/apps/cudnn/8.6.0_cuda11.x/cuda/lib:/data/apps/gcc/9.3.0/lib64:/data/apps/gcc/9.3.0/lib:/data/apps/gcc/9.3.0/libexec:/data/apps/cuda/12.2/libnvvp:/data/apps/cuda/12.2/libnsight:/data/apps/cuda/12.2/lib64:/data/apps/anaconda/2020.11/lib:/data02/home/scv6002/run/liuxk/tmp/scv6a6p/llvm-project/build/lib:", "ANACONDAPATH=/data/apps/anaconda/2020.11/bin" … "CONDA_SHLVL=2", "SSH_TTY=/dev/pts/1", "JULIA_DEBUG=all", "CONDA_EXE=/data/apps/anaconda/2020.11/bin/conda", "TERM=xterm-256color", "HOME=/data02/home/scv6002", "OPENBLAS_MAIN_FREE=1", "LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:.tar=38;5;9:.tgz=38;5;9:.arc=38;5;9:.arj=38;5;9:.taz=38;5;9:.lha=38;5;9:.lz4=38;5;9:.lzh=38;5;9:.lzma=38;5;9:.tlz=38;5;9:.txz=38;5;9:.tzo=38;5;9:.t7z=38;5;9:.zip=38;5;9:.z=38;5;9:.Z=38;5;9:.dz=38;5;9:.gz=38;5;9:.lrz=38;5;9:.lz=38;5;9:.lzo=38;5;9:.xz=38;5;9:.bz2=38;5;9:.bz=38;5;9:.tbz=38;5;9:.tbz2=38;5;9:.tz=38;5;9:.deb=38;5;9:.rpm=38;5;9:.jar=38;5;9:.war=38;5;9:.ear=38;5;9:.sar=38;5;9:.rar=38;5;9:.alz=38;5;9:.ace=38;5;9:.zoo=38;5;9:.cpio=38;5;9:.7z=38;5;9:.rz=38;5;9:.cab=38;5;9:.jpg=38;5;13:.jpeg=38;5;13:.gif=38;5;13:.bmp=38;5;13:.pbm=38;5;13:.pgm=38;5;13:.ppm=38;5;13:.tga=38;5;13:.xbm=38;5;13:.xpm=38;5;13:.tif=38;5;13:.tiff=38;5;13:.png=38;5;13:.svg=38;5;13:.svgz=38;5;13:.mng=38;5;13:.pcx=38;5;13:.mov=38;5;13:.mpg=38;5;13:.mpeg=38;5;13:.m2v=38;5;13:.mkv=38;5;13:.webm=38;5;13:.ogm=38;5;13:.mp4=38;5;13:.m4v=38;5;13:.mp4v=38;5;13:.vob=38;5;13:.qt=38;5;13:.nuv=38;5;13:.wmv=38;5;13:.asf=38;5;13:.rm=38;5;13:.rmvb=38;5;13:.flc=38;5;13:.avi=38;5;13:.fli=38;5;13:.flv=38;5;13:.gl=38;5;13:.dl=38;5;13:.xcf=38;5;13:.xwd=38;5;13:.yuv=38;5;13:.cgm=38;5;13:.emf=38;5;13:.axv=38;5;13:.anx=38;5;13:.ogv=38;5;13:.ogx=38;5;13:.aac=38;5;45:.au=38;5;45:.flac=38;5;45:.mid=38;5;45:.midi=38;5;45:.mka=38;5;45:.mp3=38;5;45:.mpc=38;5;45:.ogg=38;5;45:.ra=38;5;45:.wav=38;5;45:.axa=38;5;45:.oga=38;5;45:.spx=38;5;45:*.xspf=38;5;45:", "HOSTNAME=g0028", "LIBRARY_PATH=/data/apps/cudnn/8.6.0_cuda11.x/cuda/lib:/data/apps/cuda/12.2/libnvvp:/data/apps/cuda/12.2/libnsight:/data/apps/cuda/12.2/lib64"]), ProcessSignaled(7)) [0]

Stacktrace:
[1] pipeline_error
@ ./process.jl:565 [inlined]
[2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
@ Base ./process.jl:480
[3] run
@ ./process.jl:477 [inlined]
[4] link_image (repeats 2 times)
@ ./linking.jl:166 [inlined]
[5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base ./loading.jl:2379
[6] compilecache
@ ./loading.jl:2340 [inlined]
[7] (::Base.var"https://github.com/llvm/llvm-project/issues/968#969"{Base.PkgId})()
@ Base ./loading.jl:1974
[8] mkpidlock(f::Base.var"https://github.com/llvm/llvm-project/issues/968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93
[9] #mkpidlock#6
@ /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined]
[10] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@kwargs{stale_age::Int64})
@ FileWatching.Pidfile /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:111
[11] #invokelatest#2
@ ./essentials.jl:894 [inlined]
[12] invokelatest
@ ./essentials.jl:889 [inlined]
[13] maybe_cachefile_lock(f::Base.var"https://github.com/llvm/llvm-project/issues/968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base ./loading.jl:2983
[14] maybe_cachefile_lock
@ ./loading.jl:2980 [inlined]
[15] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:1970
[16] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:1812
[17] #invoke_in_world#3
@ ./essentials.jl:926 [inlined]
[18] invoke_in_world
@ ./essentials.jl:923 [inlined]
[19] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:1803
[20] macro expansion
@ ./loading.jl:1790 [inlined]
[21] macro expansion
@ ./lock.jl:267 [inlined]
[22] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:1753
[23] #invoke_in_world#3
@ ./essentials.jl:926 [inlined]
[24] invoke_in_world
@ ./essentials.jl:923 [inlined]
[25] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1746
[26] include
@ ./Base.jl:495 [inlined]
[27] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
@ Base ./loading.jl:2222
[28] top-level scope
@ stdin:3
in expression starting at /data02/home/scv6002/.julia/packages/CUDA_Driver_jll/T3v6U/src/CUDA_Driver_jll.jl:2
in expression starting at stdin:3
┌ Debug: CUDA_Driver_jll not available; not selecting an artifact
└ @ Main ~/.julia/packages/CUDA_Runtime_jll/VNnmC/.pkg/platform_augmentation.jl:147
┌ Debug: Failed to query CUDA driver version
└ @ Main ~/.julia/packages/CUDA_Runtime_jll/VNnmC/.pkg/platform_augmentation.jl:245
ERROR: failed to parse TOML output from running "/data02/home/scv6002/.julia/packages/CUDA_Runtime_jll/VNnmC/.pkg/select_artifacts.jl", got:
TOML Parser error:
none:1:7 error: expected equal sign after key
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
^
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70
[2] collect_artifacts(pkg_root::String; platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:725
[3] collect_artifacts
@ /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:707 [inlined]
[4] download_artifacts(env::Pkg.Types.EnvCache; platform::Base.BinaryPlatforms.Platform, julia_version::VersionNumber, verbose::Bool, io::Base.TTY)
@ Pkg.Operations /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:753
[5] add(ctx::Pkg.Types.Context, pkgs::Vector{…}, new_git::Set{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1395
[6] add
@ /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1377 [inlined]
[7] add(ctx::Pkg.Types.Context, pkgs::Vector{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@kwargs{…})
@ Pkg.API /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:278
[8] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@kwargs{})
@ Pkg.API /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
[9] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:148
[10] add
@ /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined]
[11] add(pkg::String)
@ Pkg.API /data02/run01/scv6002/liuxk/tmp/scv6a6p/julia1.10.4/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:146
[12] top-level scope
@ REPL[2]:1
Some type information was truncated. Use show(err) to see complete types.

If you need to provide more information, please let me know. How can I resolve the error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant