-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
cannot build Bazel 3.7.0 from source: ./src/main/tools/logging.h:44:27: error: expected ')' before 'PRId64' #12327
Comments
FYI, the
|
Wouldn't it be simpler to add |
In which chunk? In the first chunk ( Please lmk if I'm missing something obvious. :) |
I was mainly referring to the FreeBSD case, but I neglected to note its linux-sandbox. |
I have encountered similar issue on RHEL7 machine. I solved it by adding following flags to the bazel when building bazel: |
Does this still happen when bootstrapping without a previous Bazel? What about when bootstrapping 3.7.0 with 3.6.0? |
I am able to bootstrap from source on Centos 8:
So I do not think this qualifies as a release blocker. |
Yes, this still occurs when bootstrapping 3.7.0 (unpacking the dist zip) using GCC 6.4.0 and glibc-2.12. (More on this below.) I'm not sure about when building with 3.6.0, but I assume it will as well.
While I'm building on a CentOS 8 host, I'm using an out-of-tree compiler and glibc to target CentOS 6. (Our builds are detached from the host OS, so the compiler, libc, etc. are all versioned independently of the OS. We still need to support a body of engineers on CentOS 6 until they all finish migrating to CentOS 7/8.)
You're probably right. Bazel's GCC and glibc requirements are a bit squishy (no minimum requirements are declared anywhere), but previously I've had changes merged which addressed compiler/libc breakages. It appears that headers in src/tools/singlejar include similar changes since 070859a and 612b1ed. That all said, the Error Prone issue mentioned in #12188 OTOH likely is, and so if there was going to be a 3.7.1 I wondered if this issue could/should be swept up in the same release. |
No, librt is a POSIX extension. |
See bazelbuild/bazel#12327 Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
See bazelbuild/bazel#12327 Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
@beasleyr-vmw Your proposed patch looks good to me, mind sending it in as a pull request? |
Sure, done -- thanks! #12662 |
Description of the problem / feature request:
I'm unable to build Bazel 3.7.0 from source on CentOS 8 using GCC 6.4.0 w/ a glibc-2.12 sysroot.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I'm using Bazel 3.3.0 from a dist zip (a bootstrapped Bazel build) to build 3.7.0 from Git.
$ bazel --bazelrc=/dev/null build //src:bazel_nojdk --compilation_mode=opt
What operating system are you running Bazel on?
CentOS 8 w/ GCC 6.4.0 and glibc-2.12.
What's the output of
bazel info release
?If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.n/a
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?n/a
Have you found anything relevant by searching the web?
See https://stackoverflow.com/a/8132440 .
Any other information, logs, or outputs that you want to share?
Commit f5eee73 appears to be the culprit. I'm able to fix this by applying the following:
The text was updated successfully, but these errors were encountered: