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

Building on FreeBSD 14 #10630

Open
leonardorame opened this issue Mar 15, 2024 · 0 comments
Open

Building on FreeBSD 14 #10630

leonardorame opened this issue Mar 15, 2024 · 0 comments

Comments

@leonardorame
Copy link

leonardorame commented Mar 15, 2024

Hi!, I'm trying to build OpenXLA on FreeBSD from source.

So far I cloned the repository on ~/xla with git clone https://github.com/openxla/xla.git.

Then in ~/xla I cd xla, now on ~/xla/xla I run:

bazel build //xla/...

INFO: Reading 'startup' options from /usr/home/informemedico/xla/.bazelrc: --windows_enable_symlinks
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=104
INFO: Reading rc options for 'build' from /usr/home/informemedico/xla/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /usr/local/etc/bazel/bazel.bazelrc:
  'build' options: --strategy=Javac=standalone --java_runtime_version=11 --tool_java_runtime_version=11 --action_env=PATH=/bin:/usr/bin/:/usr/local/bin
INFO: Reading rc options for 'build' from /usr/home/informemedico/xla/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --features=-force_no_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Found applicable config definition build:short_logs in file /usr/home/informemedico/xla/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /usr/home/informemedico/xla/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Build options --cxxopt and --define have changed, discarding analysis cache.
INFO: Analyzed 3145 targets (178 packages loaded, 27811 targets configured).
INFO: Found 3145 targets...
ERROR: /usr/home/informemedico/.cache/bazel/_bazel_informemedico/526f7ee9d5a41e2d49bb2e367921a453/external/llvm-project/llvm/BUILD.bazel:219:11: Compiling llvm/lib/Support/InstructionCost.cpp [for tool] failed: (Exit 1): clang failed: error executing command (from target @llvm-project//llvm:Support) /usr/bin/clang -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF ... (remaining 66 arguments skipped)
In file included from external/llvm-project/llvm/lib/Support/InstructionCost.cpp:14:
In file included from external/llvm-project/llvm/include/llvm/Support/InstructionCost.h:21:
In file included from external/llvm-project/llvm/include/llvm/Support/MathExtras.h:16:
external/llvm-project/llvm/include/llvm/ADT/bit.h:85:21: error: no template named 'enable_if_t' in namespace 'std'
    typename = std::enable_if_t<sizeof(To) == sizeof(From)>,

Can anyone help me with this?

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