googleapis / googleapis/google-cloud-cpp

Unexpected linker warnings on macOS builds

未关闭
#13,624 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
cpp: operator type: cleanup
主要语言
C++
星标
659
派生
462
平均合并
1 天 2 小时
30 天内合并 PR
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?

贡献指南

打开贡献指南

调研方向

先从链接的 macOS、CMake 和 Bazel workflow 日志开始,然后检查产生重复库警告的 linker 调用。比较两条 toolchain 路径,以确定重复库是在何处引入的。当受影响的构建中不再出现这些警告,或其来源和预期处理方式已得到明确记录时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cmake, cpp, macos
领域
build-system, operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。