tensorflow / tensorflow/tensorflow

If TMP is not set, then the build system defaults to the wrong path

Open
#40,614 39 comments 0 reactions 1 assignee View on GitHub

@Venkat6871 is already working on this.

Since May 19, 2026.

stat:contribution welcome subtype: ubuntu/linux TF 2.10 type:build/install
Dominant language
C++
Stars
200k
Forks
76.9k
Avg merge
2d 3h
Merged PRs (30d)
433

Description

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): CentOS Linux release 7.3.1611 (Core)
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: no
  • TensorFlow installed from (source or binary): source
  • TensorFlow version: v2.2.0
  • Python version: 3.5.1
  • Installed using virtualenv? pip? conda?: no, compiling from source
  • Bazel version (if compiling from source): 2.0.0 (it claimed that Tensorflow did not support anything higher)
  • GCC/Compiler version (if compiling from source): 8.2.0
  • CUDA/cuDNN version: 10.1
  • GPU model and memory: Tesla P100, 16280MiB

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem
When building Tensorflow from source when the TMP environment variable is not set, then following warning is shown:

Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default

Naturally, I would expect it to default to something. However, I'm on a Linux computer, not a Windows computer. On Linux, it should default to something sensible (e.g. /tmp, or the current directory), instead of C:\Windows\Temp - which clearly isn't going to work - as on Linux this is not a valid file/directory path.

Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.