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

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

>I assume ORCA is installed in your greenplum
how can I check it? I have installed latest greenplum from github. 
Here is output of cmake for madlib:

-- The C compiler identification is GNU 6.1.1
-- The CXX compiler identification is GNU 6.1.1
-- Check for working C compiler: /bin/gcc
-- Check for working C compiler: /bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /bin/g++
-- Check for working CXX compiler: /bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.60.0
-- Found PythonInterp: /bin/python (found version "2.7.11") 
-- Could NOT find PostgreSQL (missing:  POSTGRESQL_EXECUTABLE) 
-- Found Greenplum: /usr/local/projects/custom_builds/gpdb.master/bin/postgres  
-- Found Greenplum_4_3ORCA: 
/usr/local/projects/custom_builds/gpdb.master/bin/postgres  
>> Adding Greenplum 4.3ORCA (x86_64) to target list...
-- Could NOT find HAWQ (missing:  HAWQ_EXECUTABLE) 
-- Found FLEX: /bin/flex (found suitable version "2.6.0", minimum required is 
"2.5.33") 
-- Found BISON: /bin/bison (found suitable version "3.0.4", minimum required is 
"2.4") 
-- Found Doxygen: /bin/doxygen (found version "1.8.11") 
-- A complete LaTeX installation could not be found. Compiling the design 
document will not be possible.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gpadmin/incubator-madlib/build


> 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