Repository navigation
Closed
Labels
team-Rules-JavaIssues for Java rules
Description
Description of the problem / feature request:
the 0.17.1 tag fails to build from source
+ ./compile.sh
🍃 Building Bazel from scratch......
🍃 Building Bazel with Bazel.
.WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Analysed target //src:bazel_nojdk (224 packages loaded).
INFO: Found 1 target...
INFO: From Compiling src/main/cpp/blaze_util_posix.cc:
src/main/cpp/blaze_util_posix.cc: In function 'void blaze::Daemonize(const char*, bool)':
src/main/cpp/blaze_util_posix.cc:270:13: warning: ignoring return value of 'int dup(int)', declared with attribute warn_unused_result [-Wunused-result]
(void) dup(STDOUT_FILENO); // stderr (2>&1)
~~~^~~~~~~~~~~~~~~
src/main/cpp/blaze_util_posix.cc: In function 'void blaze::DieAfterFork(const char*)':
src/main/cpp/blaze_util_posix.cc:317:8: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
write(STDERR_FILENO, message, strlen(message)); // strlen should be OK
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main/cpp/blaze_util_posix.cc:318:8: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
write(STDERR_FILENO, ": ", 2);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
src/main/cpp/blaze_util_posix.cc:319:8: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
write(STDERR_FILENO, error_string, strlen(error_string));
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main/cpp/blaze_util_posix.cc:320:8: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
write(STDERR_FILENO, "\n", 1);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
src/main/cpp/blaze_util_posix.cc: In function 'uint64_t blaze::AcquireLock(const string&, bool, bool, blaze::BlazeLock*)':
src/main/cpp/blaze_util_posix.cc:678:19: warning: ignoring return value of 'int ftruncate(int, __off_t)', declared with attribute warn_unused_result [-Wunused-result]
(void) ftruncate(lockfd, 0);
~~~~~~~~~^~~~~~~~~~~
ERROR: /root/rpmbuild/BUILD/bazel-0.17.1/tools/jdk/BUILD:180:5: Executing genrule //tools/jdk:platformclasspath8 failed (Exit 1): bash failed: error executing command
(cd /tmp/bazel_6yPZufvk/out/execroot/io_bazel && \
exec env - \
PATH=/sbin:/bin:/usr/sbin:/usr/bin \
/bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh;
set -eu
TMPDIR=$(mktemp -d -t tmp.XXXXXXXX)
external/embedded_jdk/bin/javac -source 8 -target 8 -Xlint:-options -cp external/embedded_jdk/lib/tools.jar -d $TMPDIR tools/jdk/DumpPlatformClassPath.java
external/embedded_jdk/bin/java -XX:+IgnoreUnrecognizedVMOptions --add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED -cp $TMPDIR DumpPlatformClassPath 8 bazel-out/host/genfiles/tools/jdk/platformclasspath8.jar
rm -rf $TMPDIR
')
Exception in thread "main" java.io.FileNotFoundException: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181.b15-0.fc28.x86_64/jre/lib/ext/java-atk-wrapper.jar (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:225)
at java.util.zip.ZipFile.<init>(ZipFile.java:155)
at java.util.jar.JarFile.<init>(JarFile.java:166)
at java.util.jar.JarFile.<init>(JarFile.java:130)
at DumpPlatformClassPath.main(DumpPlatformClassPath.java:99)
Target //src:bazel_nojdk failed to build
INFO: Elapsed time: 13.418s, Critical Path: 3.04s
INFO: 157 processes: 157 local.
FAILED: Build did NOT complete successfully
ERROR: Could not build Bazel
error: Bad exit status from /var/tmp/rpm-tmp.qbJeNt (%build)
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
git clone https://github.com/vbatts/copr-build-bazel.git
cd copr-build-bazel
make rebuildWhat operating system are you running Bazel on?
Fedora 28
Metadata
Metadata
Labels
team-Rules-JavaIssues for Java rules
Activity
cushon commentedon Sep 14, 2018
This looks related to 2834613.
cushon commentedon Sep 14, 2018
@vbatts can you check if
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181.b15-0.fc28.x86_64/jre/lib/ext/java-atk-wrapper.jarexists on your system? Any chance it's a dangling symlink?The root cause might be similar to #400.
[-]0.17.1 FTBFS[/-][+]0.17.1 FTBFS: No such file or directory java-atk-wrapper.jar in DumpPlatformClassPath[/+]cushon commentedon Sep 26, 2018
@vbatts are you still seeing this problem?
vbatts commentedon Oct 10, 2018
The updated release compiled fine.
nitkon commentedon Mar 16, 2019
@cushon : I am trying to build bazel from scratch on Fedora 28.