4paradigm / 4paradigm/OpenMLDB

build and link warnings on mac

Offen
#242 0 Kommentare 1 Reaktion 1 zugewiesene Person Beansprucht von @imotai Auf GitHub ansehen
bug
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cmake, cpp, macos
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.