4paradigm / 4paradigm/OpenMLDB
build and link warnings on mac
- Lingua principale
- C++
- Stelle
- 1.7k
- Fork
- 331
- Merge medio
- 12g 12h
- PR unite (30g)
- 1
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cmake, cpp, macos
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100