--
You received this message because you are subscribed to the Google Groups "Flogger Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flogger-discu...@googlegroups.com.
To post to this group, send email to flogger...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flogger-discuss/854f2ff7-77c2-4119-b60d-5721c63731d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/flogger-discuss/feb1952e-cd25-455f-8990-3889fc7133d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/flogger-discuss/CAKxGnnv1KODvWwxy1OujWQ%2BsFABByh4qDoPt8iPd1mqrM4v9fg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flogger-discuss/CAKxGnnv1KODvWwxy1OujWQ%2BsFABByh4qDoPt8iPd1mqrM4v9fg%40mail.gmail.com.
bazel 5.2.0-homebrew
java 17.0.3.1 2022-04-22 LTS
As part of api/BUILD file , I can see javabase getting set like this . It is expecting a javac file over there , which it is not able to access !
JAVABASE=$$PWD/$(JAVABASE)
JAR=$$PWD/$(JAVABASE)/bin/jar
$$JAVABASE/bin/javac
Copying the error snippet below
ERROR: /Users/msteffi/Downloads/flogger/api/BUILD:65:8: Executing genrule //api:gen_stack_getter_java_lang_access_impl failed: (Exit 126): sandbox-exec failed: error executing command
(cd /private/var/tmp/_bazel_msteffi/2ed3d51dc8b42ddc6861675274505da8/sandbox/darwin-sandbox/81/execroot/__main__ && \
exec env - \
PATH=/Library/Java/JavaVirtualMachines/jdk-17.0.3.1.jdk/Contents/Home/bin:/opt/homebrew/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.3.1.jdk/Contents/Home/bin:/opt/homebrew/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin \
TMPDIR=/var/folders/4f/54fc7ntj3pjgk67mmjt8ht4w0000gn/T/ \
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_msteffi/2ed3d51dc8b42ddc6861675274505da8/sandbox/darwin-sandbox/81/sandbox.sb /var/tmp/_bazel_msteffi/install/7dc25a42d1c3e2ed589cd3c42b3ac535/process-wrapper '--timeout=0' '--kill_delay=15' /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh;
set -eu
TMPDIR=$(mktemp -d)
OUTPUT=$PWD/bazel-out/darwin_arm64-fastbuild/bin/api/stack_getter_java_lang_access_impl.jar
STACK_GETTER_COMMON=bazel-out/darwin_arm64-fastbuild/bin/api/libstack_getter_common.jar
CHECKS=bazel-out/darwin_arm64-fastbuild/bin/api/libchecks.jar
JAVABASE=$PWD/external/openjdk8
JAR=$PWD/external/openjdk8/bin/jar
$JAVABASE/bin/javac -d $TMPDIR -source 7 -target 7 -cp ${STACK_GETTER_COMMON}:${CHECKS} -implicit:none api/src/main/java/com/google/common/flogger/util/JavaLangAccessStackGetter.java
cd $TMPDIR && $JAR cf $OUTPUT com/google/common/flogger/util/*StackGetter*.class
')
/bin/bash: line 8: /private/var/tmp/_bazel_msteffi/2ed3d51dc8b42ddc6861675274505da8/sandbox/darwin-sandbox/81/execroot/__main__/external/openjdk8/bin/javac: cannot execute binary file
Thanks,
Steffi