googleapis / googleapis/google-cloud-cpp

Unexpected linker warnings on macOS builds

オープン
#13,624 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
cpp: operator type: cleanup
主要言語
C++
スター
659
フォーク
462
平均マージ
1日 2時間
マージ済み PR(30日)
89

説明

The macOS + CMake builds are issuing warnings such as:

```
ld: warning: ignoring duplicate libraries: 'google/cloud/bigtable/libgoogle_cloud_cpp_bigtable.a', 'google/cloud/bigtable/libgoogle_cloud_cpp_bigtable_protos.a', 'google/cloud/libgoogle_cloud_cpp_common.a', 'google/cloud/libgoogle_cloud_cpp_grpc_utils.a', 'vcpkg_installed/arm64-osx/debug/lib/libgmock.a', 'vcpkg_installed/arm64-osx/debug/lib/libgrpc++.a', 'vcpkg_installed/arm64-osx/debug/lib/libgrpc.a', 'vcpkg_installed/arm64-osx/debug/lib/libgtest.a', 'vcpkg_installed/arm64-osx/debug/lib/libprotobufd.a', 'vcpkg_installed/arm64-osx/debug/lib/manual-link/libgmock_main.a'
```

https://github.com/googleapis/google-cloud-cpp/actions/runs/7934388869/job/21665281291

These look new to me, and are probably not a great experience.

I remember seeing similar warnings with macOS + Bazel:

```
ld: warning: ignoring duplicate libraries: '-lc++'
```

https://github.com/googleapis/google-cloud-cpp/actions/runs/7926236215/job/21640717801

This suggests the toolchain may be issuing new warnings?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。