Toolchain setup for AIX

156 views
Skip to first unread message

DanielD

unread,
Nov 26, 2018, 9:19:25 AM11/26/18
to bazel-discuss
Hi all,

I am trying to compile Bazel on AIX 7.2. I have set up the dependencies and I am able to run the compile script, but since the CPU type is not recognized, the installer can't find/configure the C++ toolchain:

bash-4.4# env BAZEL_JAVAC_OPTS="-J-Xms2048m -J-Xmx4096m" bash ./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".
ERROR: No toolchain found for cpu 'unknown'. Valid cpus from default_toolchain entries are: [
]. Valid toolchains are: [
stub_armeabi-v7a: --cpu='armeabi-v7a' --compiler='compiler',
local: --cpu='piii' --compiler='compiler',
msys_x64_mingw: --cpu='x64_windows' --compiler='mingw-gcc',
msvc_x64: --cpu='x64_windows' --compiler='msvc-cl',
]
INFO: Elapsed time: 8.356s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (3 packages loaded)

Any idea, how to add a toolchain configuration with which I can compile Bazel? I have GCC installed. "uname -m" reports "00FA1F3C4C00", so for now, I have hardcoded ppc64 in the compile scripts.

Thanks in advance,
Daniel

Marcel Hlopko

unread,
Nov 29, 2018, 4:17:24 AM11/29/18
to daniel...@broadcom.com, bazel-...@googlegroups.com
Hi Daniel,

You'll have to edit https://source.bazel.build/bazel/+/bf316f7ea96059300e9d812244f90c345abf5b4e:src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java to recognize your platform, and then modify the Bazel toolchains to know how to compile C++ on that platform. https://docs.bazel.build/versions/master/crosstool-reference.html will be helpful I think.

Let me know if you hit a roadblock, and feel free to assign pull requests to me.

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/3d79ab07-647a-4be0-b6cc-1e18f258567c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Marcel Hlopko | Software Engineer | hlo...@google.com | 

Google Germany GmbH | Erika-Mann-Str. 33  | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
Message has been deleted

andreas...@broadcom.com

unread,
Nov 8, 2019, 1:37:34 AM11/8/19
to bazel-discuss
Hi,

is there any progress on this?

@DanielD: please contact me over one of our company channels. It would be great to talk about how you use bazel. Unfortunately I cannot figure out your contact other than daniel...@broadcom.com

Thanks in advance,
Andreas Burger
Reply all
Reply to author
Forward
0 new messages