[ 
https://issues.apache.org/jira/browse/MADLIB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15316974#comment-15316974
 ] 

Aleksandr Melnyk commented on MADLIB-1005:
------------------------------------------

HI Orhan,

here is output of pg_config (of the greenplum):
BINDIR = /usr/local/projects/custom_builds/gpdb.master/bin
DOCDIR = /usr/local/projects/custom_builds/gpdb.master/doc/postgresql
HTMLDIR = /usr/local/projects/custom_builds/gpdb.master/doc/postgresql
INCLUDEDIR = /usr/local/projects/custom_builds/gpdb.master/include
PKGINCLUDEDIR = /usr/local/projects/custom_builds/gpdb.master/include/postgresql
INCLUDEDIR-SERVER = 
/usr/local/projects/custom_builds/gpdb.master/include/postgresql/server
LIBDIR = /usr/local/projects/custom_builds/gpdb.master/lib
PKGLIBDIR = /usr/local/projects/custom_builds/gpdb.master/lib/postgresql
LOCALEDIR = /usr/local/projects/custom_builds/gpdb.master/share/locale
MANDIR = /usr/local/projects/custom_builds/gpdb.master/share/man
SHAREDIR = /usr/local/projects/custom_builds/gpdb.master/share/postgresql
SYSCONFDIR = /usr/local/projects/custom_builds/gpdb.master/etc/postgresql
PGXS = 
/usr/local/projects/custom_builds/gpdb.master/lib/postgresql/pgxs/src/makefiles/pgxs.mk
CC = gcc
CPPFLAGS = -D_GNU_SOURCE -I/usr/local/projects/custom_builds/gpdb.master/include
CFLAGS = -O3 -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith 
-Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
-fexcess-precision=standard -fno-aggressive-loop-optimizations 
-Wno-unused-but-set-variable -Wno-address -g -ggdb 
-I/usr/local/projects/custom_builds/gpdb.master/include
CFLAGS_SL = -fpic
LDFLAGS = -Wl,--as-needed 
-Wl,-rpath,'/usr/local/projects/custom_builds/gpdb.master/lib',--enable-new-dtags
 -L/usr/local/projects/custom_builds/gpdb.master/lib
LDFLAGS_SL = 
LIBS = -lpgport -lrt -lcrypt -ldl -lm 
-L/usr/local/projects/custom_builds/gpdb.master/lib
VERSION = PostgreSQL 8.3devel

sorry not sure I understood which madpack command..? I have cloned madlib from 
github and tried to build using cmake standars way: mkdir build -> cd build -> 
cmake .. (here is that ambigous function error).

> Cannot compile for greenplum (arch linux)
> -----------------------------------------
>
>                 Key: MADLIB-1005
>                 URL: https://issues.apache.org/jira/browse/MADLIB-1005
>             Project: Apache MADlib
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Aleksandr Melnyk
>
> In file included from 
> /home/gpadmin/incubator-madlib/src/ports/greenplum/dbconnector/../../postgres/dbconnector/dbconnector.hpp:272:0,
>                  from 
> /home/gpadmin/incubator-madlib/src/ports/greenplum/dbconnector/dbconnector.hpp:35,
>                  from 
> /home/gpadmin/incubator-madlib/src/modules/sample/weighted_sample.cpp:9:
> /home/gpadmin/incubator-madlib/src/ports/greenplum/dbconnector/../../postgres/dbconnector/AnyType_impl.hpp:
>  In member function 'madlib::dbconnector::postgres::AnyType 
> madlib::dbconnector::postgres::AnyType::operator[](uint16_t) const':
> /home/gpadmin/incubator-madlib/src/ports/greenplum/dbconnector/../../postgres/dbconnector/AnyType_impl.hpp:325:57:
>  error: call of overloaded 'AggCheckCallContext(FunctionCallInfoData* const&, 
> NULL)' is ambiguous
>              isMutable = AggCheckCallContext(fcinfo, NULL);
>                                                          ^
> In file included from 
> /home/gpadmin/incubator-madlib/src/ports/greenplum/dbconnector/dbconnector.hpp:33:0,
>                  from 
> /home/gpadmin/incubator-madlib/src/modules/sample/weighted_sample.cpp:9:
> /home/gpadmin/incubator-madlib/src/ports/greenplum/dbconnector/Compatibility.hpp:61:1:
>  note: candidate: int 
> madlib::dbconnector::postgres::{anonymous}::AggCheckCallContext(FunctionCallInfo,
>  MemoryContextData**)
>  AggCheckCallContext(FunctionCallInfo fcinfo, MemoryContext *aggcontext) {
>  ^~~~~~~~~~~~~~~~~~~
> In file included from 
> /usr/local/projects/custom_builds/gpdb.master/include/postgresql/server/funcapi.h:19:0,
>                  from 
> /home/gpadmin/incubator-madlib/src/ports/greenplum/dbconnector/dbconnector.hpp:17,
>                  from 
> /home/gpadmin/incubator-madlib/src/modules/sample/weighted_sample.cpp:9:
> /usr/local/projects/custom_builds/gpdb.master/include/postgresql/server/fmgr.h:584:12:
>  note: candidate: int AggCheckCallContext(FunctionCallInfo, 
> MemoryContextData**)
>  extern int AggCheckCallContext(FunctionCallInfo fcinfo,
>             ^~~~~~~~~~~~~~~~~~~
> src/ports/greenplum/4.3ORCA/CMakeFiles/madlib_greenplum_4_3ORCA.dir/build.make:62:
>  recipe for target 
> 'src/ports/greenplum/4.3ORCA/CMakeFiles/madlib_greenplum_4_3ORCA.dir/__/__/__/modules/sample/weighted_sample.cpp.o'
>  failed
> make[2]: *** 
> [src/ports/greenplum/4.3ORCA/CMakeFiles/madlib_greenplum_4_3ORCA.dir/__/__/__/modules/sample/weighted_sample.cpp.o]
>  Error 1
> CMakeFiles/Makefile2:728: recipe for target 
> 'src/ports/greenplum/4.3ORCA/CMakeFiles/madlib_greenplum_4_3ORCA.dir/all' 
> failed
> make[1]: *** 
> [src/ports/greenplum/4.3ORCA/CMakeFiles/madlib_greenplum_4_3ORCA.dir/all] 
> Error 2
> Makefile:149: recipe for target 'all' failed
> make: *** [all] Error 2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to