4paradigm / 4paradigm/OpenMLDB
can't build native java so on macOS 13.4
- Vorherrschende Sprache
- C++
- Sterne
- 1.7k
- Forks
- 331
- Ø Merge
- 12 T. 12 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
```
/Users/danielace/Git/4paradigm/OpenMLDB/build/hybridse/src/proto/fe_common.pb.hIn file included from :/Users/danielace/Git/4paradigm/OpenMLDB/.deps/usr/include/google/protobuf/generated_message_table_driven.h:39:
/Users/danielace/Git/4paradigm/OpenMLDB/.deps/usr/include/google/protobuf/wire_format_lite_inl.h:12625:29: :
In file included from error: /Users/danielace/Git/4paradigm/OpenMLDB/.deps/usr/include/google/protobuf/generated_message_table_driven.h:39redefinition of 'ReadPrimitive':
/Users/danielace/Git/4paradigm/OpenMLDB/.deps/usr/include/google/protobuf/wire_format_lite_inl.h:126:29: error: inline bool WireFormatLite::ReadPrimitive(
^redefinition of 'ReadPrimitive'
/usr/local/include/google/protobuf/wire_format_lite.h:983:17: note: inline bool WireFormatLite::ReadPrimitive(previous definition is here
^
/usr/local/include/google/protobuf/wire_format_lite.h:WireFormatLite::ReadPrimitive(983
```
host
```
macOS 13.4.1 22F82 x86_64
-MBP build % gcc -v
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
```
Beitragsleitfaden
Rechercherichtung
The error is a protobuf header redefinition between the project's .deps/usr/include and /usr/local/include. Start by examining the build configuration for hybridse/src/proto/fe_common.pb.h and the include paths. Check the CMake or Makefile to understand protobuf dependency management. The fix likely involves ensuring consistent protobuf version usage or adjusting include order. Verify by building the native Java component on macOS.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- 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