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

S3 unit test build broken: gtl not declared #35040

Closed
rahul003 opened this issue Dec 11, 2019 · 3 comments · Fixed by #35139
Closed

S3 unit test build broken: gtl not declared #35040

rahul003 opened this issue Dec 11, 2019 · 3 comments · Fixed by #35139
Assignees
Labels
subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues type:build/install Build and install issues

Comments

@rahul003
Copy link
Contributor

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

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04
  • TensorFlow installed from (source or binary): source
  • TensorFlow version (use command below): master @3d79d19aa27abd1e236761a6071acec858acb6a0
  • Python version: 3.6
  • Bazel version (if compiling from source): 1.1.0
  • GCC/Compiler version (if compiling from source): gcc5
  • CUDA/cuDNN version: NA
  • GPU model and memory: NA

Describe the current behavior
Test fails to build

ERROR: /tensorflow/tensorflow/core/platform/s3/BUILD:96:1: C++ compilation of rule '//tensorflow/core/platform/s3:s3_file_system_test' failed (Exit 1)
In file included from ./tensorflow/core/platform/env.h:27:0,
                 from ./tensorflow/core/platform/s3/s3_file_system.h:20,
                 from tensorflow/core/platform/s3/s3_file_system_test.cc:16:
tensorflow/core/platform/s3/s3_file_system_test.cc: In member function 'tensorflow::Status tensorflow::{anonymous}::S3FileSystemTest::ReadAll(const string&, std::__cxx11::string*)':
tensorflow/core/platform/s3/s3_file_system_test.cc:59:45: error: 'gtl' has not been declared
         reader->Read(0, file_size, &result, gtl::string_as_array(content)));
                                             ^
./tensorflow/core/platform/errors.h:73:37: note: in definition of macro 'TF_RETURN_IF_ERROR'
     ::tensorflow::Status _status = (__VA_ARGS__);        \
                                     ^~~~~~~~~~~
In file included from external/com_google_googletest/googletest/include/gtest/gtest.h:388:0,
                 from ./tensorflow/core/platform/test.h:31,
                 from ./tensorflow/core/lib/core/status_test_util.h:20,
                 from tensorflow/core/platform/s3/s3_file_system_test.cc:18:
tensorflow/core/platform/s3/s3_file_system_test.cc: In member function 'virtual void tensorflow::{anonymous}::S3FileSystemTest_NewRandomAccessFile_Test::TestBody()':
tensorflow/core/platform/s3/s3_file_system_test.cc:83:48: error: 'gtl' has not been declared
       reader->Read(0, content.size(), &result, gtl::string_as_array(&got)));
                                                ^
tensorflow/core/platform/s3/s3_file_system_test.cc:82:3: note: in expansion of macro 'TF_EXPECT_OK'
   TF_EXPECT_OK(
   ^~~~~~~~~~~~
tensorflow/core/platform/s3/s3_file_system_test.cc:89:44: error: 'gtl' has not been declared
   TF_EXPECT_OK(reader->Read(2, 4, &result, gtl::string_as_array(&got)));
                                            ^
tensorflow/core/platform/s3/s3_file_system_test.cc:89:3: note: in expansion of macro 'TF_EXPECT_OK'
   TF_EXPECT_OK(reader->Read(2, 4, &result, gtl::string_as_array(&got)));
   ^~~~~~~~~~~~
Target //tensorflow/core/platform/s3:s3_file_system_test failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 5.538s, Critical Path: 5.20s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

Describe the expected behavior
Test builds and runs

Code to reproduce the issue
bazel test -c opt //tensorflow/core/platform/s3:s3_file_system_test --action_env=S3_TEST_TMPDIR=s3://BUCKET/s3testing-results/bazel/master/

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.

@rahul003
Copy link
Contributor Author

How to include gtl correctly for the gtl::string_as_array function used in the file?

@oanush oanush self-assigned this Dec 13, 2019
@oanush oanush added the type:support Support issues label Dec 13, 2019
@yongtang
Copy link
Member

Added #35139 for the fix.

@hf-sky-hf
Copy link

hf-sky-hf commented Dec 18, 2019 via email

@oanush oanush added subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues type:build/install Build and install issues and removed type:support Support issues labels Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues type:build/install Build and install issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants