#62415 closed defect (fixed)
bazel @4.0.0: clang: error: unknown argument: '-fdebug-compilation-dir'
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | missa-prime (Mohamed Issa) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.99 |
Keywords: | Cc: | cjones051073 (Chris Jones) | |
Port: | bazel |
Description
bazel @4.0.0 does not build for me on High Sierra:
ERROR: .../third_party/grpc/BUILD:61:18: Compiling third_party/grpc/compiler/src/java_plugin/cpp/java_generator.cpp [for host] failed: (Exit 1): wrapped_clang failed: error executing command
clang: error: unknown argument: '-fdebug-compilation-dir'
Looks like it failed to build on everything older than 10.15, which is pretty limiting: https://ports.macports.org/port/bazel
Attachments (1)
Change History (4)
Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | main.log.bz2 added |
---|
comment:1 Changed 4 years ago by cjones051073 (Chris Jones)
comment:2 Changed 4 years ago by Chris Jones <jonesc@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 4 years ago by cjones051073 (Chris Jones)
In the end workaround in bazel issue did not fully help, as other issues related to the older Xcode version came up, so I just extended the blacklisting to use a new clang toolchain from MacPorts on 10.14 and older.
Note: See
TracTickets for help on using
tickets.
See https://github.com/bazelbuild/bazel/issues/12905
looks like should be addressed in a future update. In the meantime I'll try the workaround suggested in that issue.