Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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)

main.log.bz2 (21.2 KB) - added by ryandesign (Ryan Carsten Schmidt) 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 3 years ago by cjones051073 (Chris Jones)

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.

Last edited 3 years ago by cjones051073 (Chris Jones) (previous) (diff)

comment:2 Changed 3 years ago by Chris Jones <jonesc@…>

Resolution: fixed
Status: assignedclosed

In a0b8e0709452f1994390c02befc2f6b0f8d79029/macports-ports (master):

bazel: Use MP toolchain on macOS10.14 and older
Closes: #62415

comment:3 Changed 3 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.