How to build on Mac OS?

106 views
Skip to first unread message

Fabian Joya

unread,
Oct 31, 2023, 4:36:58 PM10/31/23
to Kythe
Hi. I am new to Kythe and am trying to get it to build on Mac OS.

I am following these instructions:

I believe I set up all the dependencies. I have Open JDK installed and $JAVA_HOME set to:

$ echo $JAVA_HOME
/opt/homebrew/opt/openjdk

$ java -version
openjdk version "21.0.1" 2023-10-17
OpenJDK Runtime Environment Homebrew (build 21.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.1, mixed mode, sharing)

I run these commands:

cd $KYTHE_DIR bazel clean --expunge bazel test //kythe/...

And I keep getting this error:

ERROR: /private/var/tmp/_bazel_fabianjoya/33de94a1f52f7004fb3487a893db7f98/external/rules_java/toolchains/BUILD:83:19: While resolving toolchains for target @rules_java//toolchains:current_java_runtime: No matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type.

To debug, rerun with --toolchain_resolution_debug='@bazel_tools//tools/jdk:runtime_toolchain_type'

If platforms or toolchains are a new concept for you, we'd encourage reading https://bazel.build/concepts/platforms-intro.


What am I missing? How can I troubleshoot this further?

Salvatore Guarnieri

unread,
Nov 9, 2023, 12:42:14 PM11/9/23
to Fabian Joya, Kythe
Sorry for the late reply. No one on the team builds on mac and we don't have a mac CI set up to ensure the build stays green. So we aren't sure what needs to be fixed. 

--
You received this message because you are subscribed to the Google Groups "Kythe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kythe+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kythe/080586c3-dc75-4baa-8b60-48ebd691fcf9n%40googlegroups.com.

Shahms King

unread,
Nov 9, 2023, 12:56:02 PM11/9/23
to Salvatore Guarnieri, Fabian Joya, Kythe
When we were setting up CI it was prohibitively difficult to do so for Mac, largely because Apple refuses to allow its toolchains to run on non-Apple hardware and that hardware is generally ill-suited to datacenter deployments.  

After a brief discussion the other day, it seems like the macOS CI situation has improved since the last time we looked at it, however, so it might be feasible to re-evaluate this if someone can find the time to do so.

--Shahms



--
:-P

Eric Amorde

unread,
Nov 9, 2023, 12:57:38 PM11/9/23
to Kythe
I've also been trying to run on macOS and ran into issues. I've put up a PR for the issues I've encountered and I was able to get things to build on my machine.

https://github.com/kythe/kythe/pull/5922
Reply all
Reply to author
Forward
0 new messages