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

Arch support #59

Open
3 of 4 tasks
iame6162013 opened this issue Aug 17, 2017 · 4 comments
Open
3 of 4 tasks

Arch support #59

iame6162013 opened this issue Aug 17, 2017 · 4 comments

Comments

@iame6162013
Copy link

iame6162013 commented Aug 17, 2017

Since coriander can run tests on arch without a problem, it's time to go for tf-coriander no? :)

(oh, should I make a separate issue for these? or keep it within one thread? )

  • https://github.com/bazelbuild/bazel updated to latest version
    It's in the arch repo thus it would be better to upgrade no?
  • Update coriander
  • Install arch deps
    For the 3 issues above, they currently are implemented in my fork.
  • util/build_tf.sh fails
INFO: Found 1 target...
ERROR: /home/iame/.cache/bazel/_bazel_iame/88f8289dc53da1a7a11159bcedf3496d/external/protobuf/BUILD:73:1: undeclared inclusion(s) in rule '@protobuf//:protobuf_lite':
this rule is missing dependency declarations for the following files included by 'external/protobuf/src/google/protobuf/stubs/stringprintf.cc':
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include/stdarg.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include/stddef.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include/stdint.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed/limits.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed/syslimits.h'.
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/x86_64-pc-linux-gnu/bits/os_defines.h:39:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/x86_64-pc-linux-gnu/bits/c++config.h:533,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/string:38,
                 from external/protobuf/src/google/protobuf/stubs/stringprintf.h:44,
                 from external/protobuf/src/google/protobuf/stubs/stringprintf.cc:33:
/usr/include/features.h:373:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
cc1plus: warning: unrecognized command line option '-Wno-unused-local-typedef'
cc1plus: warning: unrecognized command line option '-Wno-c++11-narrowing'
Target @grpc//:grpc_cpp_plugin failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.057s, Critical Path: 0.26s

@iame6162013
Copy link
Author

iame6162013 commented Aug 17, 2017

Another error

+ bazel build --verbose_failures @grpc//:grpc_cpp_plugin
INFO: Found 1 target...
ERROR: /home/iame/.cache/bazel/_bazel_iame/88f8289dc53da1a7a11159bcedf3496d/external/protobuf/BUILD:113:1: undeclared inclusion(s) in rule '@protobuf//:protobuf':
this rule is missing dependency declarations for the following files included by 'external/protobuf/src/google/protobuf/io/strtod.cc':
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include/stddef.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include/stdarg.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include/stdint.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed/limits.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed/syslimits.h'.
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/x86_64-pc-linux-gnu/bits/os_defines.h:39:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/x86_64-pc-linux-gnu/bits/c++config.h:533,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/cstdio:41,
                 from external/protobuf/src/google/protobuf/io/strtod.cc:33:
/usr/include/features.h:373:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
Target @grpc//:grpc_cpp_plugin failed to build
INFO: Elapsed time: 1.720s, Critical Path: 0.33s

At least I made some warnings go away..

@trompa
Copy link

trompa commented Feb 21, 2018

I am at the very same stage compiling in gentoo. Found a fix?
Id love to contribute with an ebuild once i get this working

@masadcv
Copy link

masadcv commented Mar 2, 2018

@trompa and @iame6162013 I am also stuck on the same error. Do let me know if you found a fix

@qxzcode
Copy link

qxzcode commented Apr 13, 2019

Same issue here. I googled around, but couldn't figure out a solution.

It seems to be an issue with Bazel not liking the version of GCC? Others around the internet say that this problem crops up when they update their compilers...

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

4 participants