4paradigm / 4paradigm/OpenMLDB

build and link warnings on mac

オープン
#242 コメント 0 件 リアクション 1 件 担当者 1 名 @imotai が担当を希望しています GitHub で見る
bug
主要言語
C++
スター
1.7k
フォーク
331
平均マージ
12日 12時間
マージ済み PR(30日)
1

説明

ld warnings from mac Big Sur using the pre-compiled thirdparty & zetasql
- *.o was built for newer macOS version (11.1) than being linked (11.0)
- direct access in function `boost::system::detail::system_error_category::default_error_condition(int) const` from file '/Users/danielace/Git/4paradigm/OpenMLDB/hybridse/thirdparty/lib/libboost_filesystem.a(operations.o)' to global weak symbol `boost::system::detail::is_generic_value(int)::gen` from file 'src/CMakeFiles/ast_node_converter_test.dir/planv2/ast_node_converter_test.cc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
- maybe more type of warnings

## Current Behavior

```log
ld: warning: object file (/Users/danielace/Git/4paradigm/OpenMLDB/hybridse/thirdparty/lib/libre2.a(unicode_casefold.o)) was built for newer macOS version (11.1) than being linked (11.0)
ld: warning: object file (/Users/danielace/Git/4paradigm/OpenMLDB/hybridse/thirdparty/lib/libre2.a(simplify.o)) was built for newer macOS version (11.1) than being linked (11.0)
ld: warning: object file (/Users/danielace/Git/4paradigm/OpenMLDB/hybridse/thirdparty/lib/libre2.a(tostring.o)) was built for newer macOS version (11.1) than being linked (11.0)
ld: warning: direct access in function 'boost::system::detail::system_error_category::default_error_condition(int) const' from file '/Users/danielace/Git/4paradigm/OpenMLDB/hybridse/thirdparty/lib/libboost_filesystem.a(operations.o)' to global weak symbol 'boost::system::detail::is_generic_value(int)::gen' from file 'src/CMakeFiles/ast_node_converter_test.dir/planv2/ast_node_converter_test.cc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
```

## Possible Solution

## Steps to Reproduce
```bash
cmake -H. -B=build -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE_ENABLE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja -DCMAKE_INSTALL_PREFIX=install
ninja
```

## Context (Environment)

## Detailed Description

## Possible Implementation

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

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

調査の方向性

The warnings are from linking third-party libraries (libre2.a, libboost_filesystem.a) on macOS. Examine the CMake configuration in hybridse/thirdparty to understand how these libraries are built or fetched. Check for macOS version flags and visibility settings. Reproduce the build with the given cmake and ninja commands to see the full warning output. The fix likely involves adjusting build flags or updating the pre-compiled third-party binaries.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cmake, cpp, macos
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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