Giter VIP home page Giter VIP logo

Comments (3)

Alwaysproblem avatar Alwaysproblem commented on June 9, 2024 2

Hello, I encountered a similar issue. I discovered that the if_static function within the xla/stream_executor/BUILD:753 has an impact on the compilation failure of the dumped_computation_to_text target.

To resolve this, I attempted removing the if_static function from the BUILD file, and this approach proved effective. However, I am uncertain whether this modification might have any unintended consequences on the functionality of XLA.

So, I managed to successfully compile using a static library with the following command:

bazel build --define=framework_shared_object=1 --test_output=all --spawn_strategy=sandboxed //xla/...

This command yielded a successful build.

from xla.

SunDoge avatar SunDoge commented on June 9, 2024

I met a similar problem when building GPU version,

ERROR: /xla/xla/tools/BUILD:160:14: Linking xla/tools/dumped_computation_to_text failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command (from target //xla/tools:dumped_computation_to_text) external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc @bazel-out/k8-opt/bin/xla/tools/dumped_computation_to_text-2.params

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
/usr/bin/ld: bazel-out/k8-opt/bin/xla/backends/interpreter/libplatform.lo(platform.o): in function `stream_executor::interpreter::XlaInterpreterPlatform::GetExecutor(stream_executor::StreamExecutorConfig const&)':
platform.cc:(.text._ZN15stream_executor11interpreter22XlaInterpreterPlatform11GetExecutorERKNS_20StreamExecutorConfigE+0x4c): undefined reference to `stream_executor::ExecutorCache::GetOrCreate(stream_executor::StreamExecutorConfig const&, std::function<absl::lts_20230125::StatusOr<std::unique_ptr<stream_executor::StreamExecutor, std::default_delete<stream_executor::StreamExecutor> > > ()> const&)'
/usr/bin/ld: bazel-out/k8-opt/bin/xla/backends/interpreter/libplatform.lo(platform.o): in function `std::_Rb_tree<int, std::pair<int const, stream_executor::ExecutorCache::Entry>, std::_Select1st<std::pair<int const, stream_executor::ExecutorCache::Entry> >, std::less<int>, std::allocator<std::pair<int const, stream_executor::ExecutorCache::Entry> > >::_M_erase(std::_Rb_tree_node<std::pair<int const, stream_executor::ExecutorCache::Entry> >*)':
platform.cc:(.text._ZNSt8_Rb_treeIiSt4pairIKiN15stream_executor13ExecutorCache5EntryEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E[_ZNSt8_Rb_treeIiSt4pairIKiN15stream_executor13ExecutorCache5EntryEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E]+0x35): undefined reference to `stream_executor::ExecutorCache::Entry::~Entry()'
collect2: error: ld returned 1 exit status
INFO: Elapsed time: 3323.122s, Critical Path: 277.33s
INFO: 17041 processes: 5146 internal, 11895 processwrapper-sandbox.
FAILED: Build did NOT complete successfully

from xla.

penpornk avatar penpornk commented on June 9, 2024

Closing this issue since it has been inactive over the past 6 months. Please feel free to reopen if the problem still persists for you.

from xla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.