edespino commented on PR #627:
URL: https://github.com/apache/madlib/pull/627#issuecomment-3430585871
PR Review: Cloudberry MADlib Build Issues
CMake Configuration Command
```
cmake \
-DCLOUDBERRY_3_PG_CONFIG=/usr/local/cloudberry/bin/pg_config \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local/madlib \
-DCLOUDBERRY_3_EXECUTABLE=/usr/local/cloudberry/bin/postgres \
..
```
CMake Configuration Error
```
Error:
CMake Error at src/CMakeLists.txt:202 (add_library):
Cannot find source file:
/home/cbadmin/bom-parts/madlib/src/ports/cloudberry/dbconnector/Compatibility.hpp
```
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
CMake Error at src/CMakeLists.txt:202 (add_library):
No SOURCES given to target: madlib_cloudberry_3
CMake Generate step failed. Build files cannot be regenerated correctly.
Location: Referenced in src/ports/cloudberry/CMakeLists.txt:61
Observation: The directory
/home/cbadmin/bom-parts/madlib/src/ports/cloudberry/dbconnector/ does not
exist, while the equivalent Greenplum
directory does exist at
/home/cbadmin/bom-parts/madlib/src/ports/greenplum/dbconnector/ containing:
- Compatibility.hpp
- dbconnector.hpp
---
Additional Build Errors (After Manual Directory Creation)
After manually creating the missing directory and copying files from
Greenplum, cmake succeeded but compilation fails with multiple errors in
Compatibility.hpp:
1. AggState API change: aggcontext member doesn't exist (suggests
aggcontexts)
2. WindowState renamed: T_WindowState not declared (suggests
T_WindowAggState)
3. Missing function: format_procedure not declared
4. Function conflict: Ambiguous AggCheckCallContext - both the compatibility
shim and PostgreSQL's native version exist
These errors indicate API differences between Greenplum's PostgreSQL base
and Cloudberry's PostgreSQL base.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]