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

Bazel build errors "'string' object is not callable" #306

Closed
tobine opened this issue May 27, 2020 · 3 comments
Closed

Bazel build errors "'string' object is not callable" #306

tobine opened this issue May 27, 2020 · 3 comments

Comments

@tobine
Copy link
Contributor

tobine commented May 27, 2020

Environment information:

  • AGI version: Latest master
  • Host OS: Windows

Bug description
When building the latest AGI on Windows I hit two separate errors stating:

'string' object is not callable

I'm able to fix both of these errors by removing paren chars "()" in two "cc_toolchain.strip_executable()" lines. The full error messages are below.

Is this a tool versioning issue? When I run "bazel --version" the output is "bazel 2.2.0"

Reproduction steps
Steps to reproduce the behavior:
Pull the latest master code on Windows and build according to instructions

Stacktrace

First Error:

C:\src\agi>bazel build pkg
ERROR: C:/src/agi/core/vulkan/vk_virtual_swapchain/cc/BUILD.bazel:75:1: in strip rule //core/vulkan/vk_virtual_swapchain/cc:libVkLayer_VirtualSwapchain_stripped.dll:
Traceback (most recent call last):
File "C:/src/agi/core/vulkan/vk_virtual_swapchain/cc/BUILD.bazel", line 75
strip(name = 'libVkLayer_VirtualSwapchain_stripped.dll')
File "C:/src/agi/tools/build/rules/cc.bzl", line 62, in _strip_impl
ctx.actions.run(<4 more arguments>)
File "C:/src/agi/tools/build/rules/cc.bzl", line 63, in ctx.actions.run
cc_toolchain.strip_executable()
'string' object is not callable
ERROR: Analysis of target '//:pkg' failed; build aborted: Analysis of target '//core/vulkan/vk_virtual_swapchain/cc:libVkLayer_VirtualSwapchain_stripped.dll' failed; build aborted
INFO: Elapsed time: 1.595s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)

Second Error (after fixing first by removing "()"):

ERROR: C:/src/agi/gapidapk/android/apk/BUILD.bazel:33:1: in _strip rule //gapidapk/android/apk:armeabi-v7a_deviceinfo:
Traceback (most recent call last):
File "C:/src/agi/gapidapk/android/apk/BUILD.bazel", line 33
_strip(name = 'armeabi-v7a_deviceinfo')
File "C:/src/agi/gapidapk/android/apk/rules.bzl", line 23, in _strip_impl
ctx.actions.run(<4 more arguments>)
File "C:/src/agi/gapidapk/android/apk/rules.bzl", line 24, in ctx.actions.run
cc_toolchain.strip_executable()
'string' object is not callable
ERROR: Analysis of target '//:pkg' failed; build aborted: Analysis of target '//gapidapk/android/apk:armeabi-v7a_deviceinfo' failed; build aborted
INFO: Elapsed time: 81.173s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (286 packages loaded, 24257 targets configured)

@hevrard
Copy link
Contributor

hevrard commented May 27, 2020

Is this a tool versioning issue? When I run "bazel --version" the output is "bazel 2.2.0"

You should use Bazel 2.0.0. Can you double check the version and try with bazel 2.0.0 ?

@pau-baiget
Copy link
Collaborator

@tobine is this issue still relevant to you? Otherwise, can you please close it? Thanks!

@tobine
Copy link
Contributor Author

tobine commented Jun 29, 2020

No longer see this issue

@tobine tobine closed this as completed Jun 29, 2020
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

3 participants