Skip to content

configure script overrides user's bazelrc #9963

Closed

Description

@vladfi1

The ./configure script will write to a .bazelrc file in the cwd to save some of it's options (in particular, jemalloc). Unfortunately this has the effect of overriding ~/.bazelrc. This is undocumented, and probably should not happen. For now, the solution is copy your own bazelrc into the tensorflow root before configuring - fortunately ./configure will not overwrite it and only append to it.

Activity

  1. alive-zk commented on May 17, 2017

    @alive-zk

    @jart, any thoughts about this?

  2. added
    stat:awaiting tensorflower
    type:build/install
    on May 17, 2017
  3. jart commented on May 17, 2017

    @jart
    Contributor

    I'm aware of this behavior, consider it suboptimal, and I believe we should escalate this to Bazel. I've filed bazelbuild/bazel#3022. Please follow there for progress.

    The workaround is to copy the stuff in your ~/.bazelrc into tensorflow/.bazelrc. Our configure script will not delete the file.

  4. jart commented on May 17, 2017

    @jart
    Contributor

    Re-opening because I'm thinking of modifying our configure to work around this automatically.

  5. reopened this on May 17, 2017
  6. removed
    stat:awaiting tensorflower
    on May 17, 2017
  7. self-assigned this
    on May 17, 2017
  8. added a commit that references this issue on May 18, 2017
    5a30736
  9. added a commit that references this issue on May 18, 2017
    64d2830
  10. Zumbalamambo commented on May 25, 2017

    @Zumbalamambo

    Im getting the following error while trying to build so file

    Unexpected error reading .blazerc file '/Users/Johnny/Downloads/tensorflow-master/.tf_configure.bazelrc'

    Following is the command that I tried,
    bazel build -c opt //tensorflow/contrib/android:libtensorflow_inference.so --crosstool_top=//external:android/crosstool --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --cpu=armeabi-v7a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:build/install

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions