question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v0.3.0 build failure with CUDA support (CPU-only builds fine)

See original GitHub issue

Please:

  • Check for duplicate issues.
  • Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

Steps to reproduce:

Observe the failure:

ERROR: /build/output/external/org_tensorflow/tensorflow/compiler/xla/python/BUILD:206:11: Compiling tensorflow/compiler/xla/python/pprof_profile_builder.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF ... (remaining 184 arguments skipped)
In file included from external/com_google_absl/absl/strings/str_format.h:76,
                 from external/org_tensorflow/tensorflow/compiler/xla/util.h:35,
                 from external/org_tensorflow/tensorflow/compiler/xla/python/pprof_profile_builder.cc:21:
external/com_google_absl/absl/strings/internal/str_format/arg.h: In instantiation of ‘constexpr absl::lts_20211102::FormatConversionCharSet absl::lts_20211102::str_format_internal::ArgumentToConv() [with Arg = google::protobuf::stringpiece_internal::StringPiece]’:
external/com_google_absl/absl/strings/str_format.h:257:46:   required by substitution of ‘template<class ... Args> using FormatSpec = absl::lts_20211102::str_format_internal::FormatSpecTemplate<(ArgumentToConv<Args>)()...> [with Args = {google::protobuf::stringpiece_internal::StringPiece}]’
external/org_tensorflow/tensorflow/compiler/xla/util.h:214:8:   required by substitution of ‘template<class ... Args> tensorflow::Status xla::InvalidArgument(absl::lts_20211102::FormatSpec<Args ...>&, const Args& ...) [with Args = {google::protobuf::stringpiece_internal::StringPiece}]’
external/org_tensorflow/tensorflow/compiler/xla/python/pprof_profile_builder.cc:71:71:   required from here
external/com_google_absl/absl/strings/internal/str_format/arg.h:305:54: error: no matching function for call to ‘FormatConvertImpl(const google::protobuf::stringpiece_internal::StringPiece&, const absl::lts_20211102::str_format_internal::FormatConversionSpecImpl&, absl::lts_20211102::str_format_internal::FormatSinkImpl*)’
  305 |       decltype(str_format_internal::FormatConvertImpl(
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  306 |           std::declval<const Arg&>(),
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  307 |           std::declval<const FormatConversionSpecImpl&>(),
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |           std::declval<FormatSinkImpl*>())){});
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/com_google_absl/absl/strings/internal/str_format/arg.h:60:6: note: candidate: ‘template<class T> decltype (absl::lts_20211102::str_format_internal::AbslFormatConvert(v, declval<const absl::lts_20211102::FormatConversionSpec&>(), declval<absl::lts_20211102::FormatSink*>())) absl::lts_20211102::str_format_internal::FormatConvertImpl(const T&, absl::lts_20211102::str_format_internal::FormatConversionSpecImpl, absl::lts_20211102::str_format_internal::FormatSinkImpl*)’
   60 | auto FormatConvertImpl(const T& v, FormatConversionSpecImpl conv,
      |      ^~~~~~~~~~~~~~~~~

I can confirm that this build “script” works on 0.1.75 and a number versions before that. Oddly enough the CPU-only build (run nix-build -A python3Packages.jaxlib) runs just fine.

  • If applicable, include full error messages/tracebacks.

You can check out the unabridged build log here: https://gist.github.com/samuela/fca69ea5ad0eb20d77b8be060446db21.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
hawkinspcommented, Feb 14, 2022

@samuela I’ll make that change upstream as well.

1reaction
samuelacommented, Feb 11, 2022

I found that protobuf 3.12 is the latest version that works. protobuf 3.13-3.19 all have this error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Anaconda install pytorch cpuonly when I ...
They install fine, but then when I come to run my program I get the following error which suggests that a CUDA enabled...
Read more >
XLA — xla v0.4.0
To build binaries with GPU support, you need all the GPU-specific dependencies (CUDA, ROCm), then you can build with either XLA_TARGET=cuda or XLA_TARGET=rocm...
Read more >
Numpyro with GPU works on Windows
The CPU-only version works perfectly with Windows Subsystem for Linux. This is by far the easiest option. · GPU-backed Numpyro works on Windows!...
Read more >
TensorFlow - Download and Setup
In order to build or run TensorFlow with GPU support, both NVIDIA's Cuda Toolkit (>= 7.0) and cuDNN (>= v2) need to be...
Read more >
CUDA C++ Programming Guide
These abstractions provide fine-grained data parallelism and thread parallelism ... The runtime is built on top of a lower-level C API, the CUDA...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found