ITADN

Compiling in a conda environment

#2333Openkrafczyk 创建于 2026-03-26
K
krafczykcommented
Most work I do is within a conda environment. I'm trying to build following the instructions here: https://github.com/EnzymeAD/Enzyme-JAX/blob/main/DEVDOCS.md But ran into this error: ``` ~/slow-data/Projects/NCSA/DRYML/Enzyme-JAX ❯ bazel build --repo_env=CC=clang-18 --color=yes --copt=-fbracket-depth=1024 --host_copt=-fbracket-depth=1024 -c dbg :enzymexlamlir-opt OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. WARNING: A restricted method in java.lang.System has been called WARNING: java.lang.System::load has been called by com.google.devtools.build.lib.jni.JniLoader in an unnamed module (file:/data1/matthew/conda3/envs/big_env/share/bazel/install/bd71645aa65bd1c25ac0d793f8269552/A-server.jar) WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module WARNING: Restricted methods will be blocked in a future release unless native access is enabled INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=104 INFO: Reading rc options for 'build' from /data0/matthew/Projects/NCSA/DRYML/Enzyme-JAX/.bazelrc: Inherited 'common' options: --noenable_bzlmod --noincompatible_enable_cc_toolchain_resolution --announce_rc --repo_env=USE_PYWRAP_RULES=True --copt=-DGRPC_BAZEL_BUILD --host_copt=-DGRPC_BAZEL_BUILD --action_env=GRPC_BAZEL_RUNTIME=1 --repo_env=PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=upb --action_env=PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=upb --experimental_repo_remote_exec --cxxopt=-Wno-deprecated-declarations --host_cxxopt=-Wno-deprecated-declarations --cxxopt=-Wno-sign-compare --host_cxxopt=-Wno-sign-compare --cxxopt=-Wno-array-bounds --host_cxxopt=-Wno-array-bounds --cxxopt=-Wno-comment --host_cxxopt=-Wno-comment --cxxopt=-Wno-invalid-constexpr --host_cxxopt=-Wno-invalid-constexpr --cxxopt=-Wno-mismatched-new-delete --host_cxxopt=-Wno-mismatched-new-delete --cxxopt=-Wno-unused-but-set-parameter --host_cxxopt=-Wno-unused-but-set-parameter --cxxopt=-Wno-unused-but-set-variable --host_cxxopt=-Wno-unused-but-set-variable --cxxopt=-Wno-misleading-indentation --host_cxxopt=-Wno-misleading-indentation --cxxopt=-Wno-return-type --host_cxxopt=-Wno-return-type --cxxopt=-Wno-unused-function --host_cxxopt=-Wno-unused-function --cxxopt=-Wno-parentheses --host_cxxopt=-Wno-parentheses --cxxopt=-Wno-unused-local-typedefs --host_cxxopt=-Wno-unused-local-typedefs --cxxopt=-Wno-reorder --host_cxxopt=-Wno-reorder --cxxopt=-Wno-missing-braces --host_cxxopt=-Wno-missing-braces --cxxopt=-Wno-range-loop-construct --host_cxxopt=-Wno-range-loop-construct --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --color=yes --define=grpc_no_ares=true --define=tsl_link_protobuf=true --define open_source_build=true --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=allow_oversize_protos=true INFO: Reading rc options for 'build' from /data0/matthew/Projects/NCSA/DRYML/Enzyme-JAX/.bazelrc: 'build' options: --@rules_python//python/config_settings:precompile=force_disabled -c opt WARNING: --enable_bzlmod is set, but no MODULE.bazel file was found at the workspace root. Bazel will create an empty MODULE.bazel file. Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. For more details, please refer to https://github.com/bazelbuild/bazel/issues/18958. ERROR: @rules_python//python/config_settings:precompile :: Error loading option @rules_python//python/config_settings:precompile: No repository visible as '@rules_python' from main repository Computing main repo mapping: ``` What am I missing here?
2 条评论