You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@madlib.apache.org by "Ed Espino (JIRA)" <ji...@apache.org> on 2017/08/02 22:40:01 UTC

[jira] [Commented] (MADLIB-1093) Update build from source wiki section with cmake version

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

Ed Espino commented on MADLIB-1093:
-----------------------------------

I was able to successfully reproduce this using the gpdb-sandbox as you did ([~kdunn926]). It appears the greenplum_path.sh is introducing problems for cmake 2.8.12.2. I was able to successfully run cmake and build MADlib by commenting out the following from the gpadmin user's .bashrc file.

{code}
source /usr/local/greenplum-db/greenplum_path.sh
{code}

Here is the session which demonstrates the cmake change in behavior when the greenplum_path.sh file is commented out. Notice the simple change in behavior of "cmake --version" when the greenplum_path.sh file is in play.

{code}
[root@gpdb-sandbox ~]# su - gpadmin
[gpadmin@gpdb-sandbox ~]$ cat .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific aliases and functions
source /usr/local/greenplum-db/greenplum_path.sh
source /usr/local/greenplum-cc-web/gpcc_path.sh
export MASTER_DATA_DIRECTORY=/gpdata/master/gpseg-1
[gpadmin@gpdb-sandbox ~]$ cmake --version
cmake: /usr/local/greenplum-db/./lib/libxml2.so.2: no version information available (required by /usr/lib64/libarchive.so.2)
cmake: /usr/local/greenplum-db/./lib/libxml2.so.2: no version information available (required by /usr/lib64/libarchive.so.2)
cmake: /usr/local/greenplum-db/./lib/libxml2.so.2: no version information available (required by /usr/lib64/libarchive.so.2)
cmake: /usr/local/greenplum-db/./lib/libxml2.so.2: no version information available (required by /usr/lib64/libarchive.so.2)
cmake version 2.8.12.2
[gpadmin@gpdb-sandbox ~]$ cd incubator-madlib/
[gpadmin@gpdb-sandbox incubator-madlib]$ rm -rf build; mkdir build; cd build
[gpadmin@gpdb-sandbox build]$ cmake ..
cmake: /usr/local/greenplum-db/./lib/libxml2.so.2: no version information available (required by /usr/lib64/libarchive.so.2)
cmake: /usr/local/greenplum-db/./lib/libxml2.so.2: no version information available (required by /usr/lib64/libarchive.so.2)
cmake: /usr/local/greenplum-db/./lib/libxml2.so.2: no version information available (required by /usr/lib64/libarchive.so.2)
cmake: /usr/local/greenplum-db/./lib/libxml2.so.2: no version information available (required by /usr/lib64/libarchive.so.2)
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Could NOT find Boost
-- No sufficiently recent version (>= 1.47) of Boost was found. Will download.
-- Found PythonInterp: /usr/local/greenplum-db/ext/python/bin/python (found version "2.6.2")
-- Could NOT find PostgreSQL (missing:  POSTGRESQL_EXECUTABLE)
-- Found Greenplum: /usr/local/greenplum-db-4.3.12.0/bin/postgres
-- Found Greenplum_4_3ORCA: /usr/local/greenplum-db-4.3.12.0/bin/postgres
>> Adding Greenplum 4.3ORCA (x86_64) to target list...
-- Could NOT find HAWQ (missing:  HAWQ_EXECUTABLE)
Segmentation fault (core dumped)
[gpadmin@gpdb-sandbox build]$
[gpadmin@gpdb-sandbox build]$ cd
[gpadmin@gpdb-sandbox ~]$ sed -i -e 's|source /usr/local/greenplum-db/greenplum_path.sh|#source /usr/local/greenplum-db/greenplum_path.sh|' .bashrc
[gpadmin@gpdb-sandbox ~]$ logout
[root@gpdb-sandbox ~]#
[root@gpdb-sandbox ~]#
[root@gpdb-sandbox ~]# su - gpadmin
[gpadmin@gpdb-sandbox ~]$ cat .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific aliases and functions
#source /usr/local/greenplum-db/greenplum_path.sh
source /usr/local/greenplum-cc-web/gpcc_path.sh
export MASTER_DATA_DIRECTORY=/gpdata/master/gpseg-1
[gpadmin@gpdb-sandbox ~]$ cmake --version
cmake version 2.8.12.2
[gpadmin@gpdb-sandbox ~]$ cd incubator-madlib/
[gpadmin@gpdb-sandbox incubator-madlib]$ rm -rf build; mkdir build; cd build
[gpadmin@gpdb-sandbox build]$ cmake ..
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Could NOT find Boost
-- No sufficiently recent version (>= 1.47) of Boost was found. Will download.
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Could NOT find PostgreSQL (missing:  POSTGRESQL_EXECUTABLE POSTGRESQL_CLIENT_INCLUDE_DIR POSTGRESQL_SERVER_INCLUDE_DIR)
-- Found Greenplum: /usr/local/greenplum-db-4.3.12.0/bin/postgres
-- Found Greenplum_4_3ORCA: /usr/local/greenplum-db-4.3.12.0/bin/postgres
>> Adding Greenplum 4.3ORCA (x86_64) to target list...
-- Could NOT find HAWQ (missing:  HAWQ_EXECUTABLE)
-- Using default web-based MathJax
-- Found FLEX: /usr/bin/flex (found suitable version "2.5.35", minimum required is "2.5.33")
-- Found BISON: /usr/bin/bison (found suitable version "2.4.1", minimum required is "2.4")
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Could not find recent versions of at least one of flex, bison, doxygen, or dot (part of graphviz, needed for doxygen). Documentation will not be built.
-- 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
[gpadmin@gpdb-sandbox build]$
{code}

I am inclined to mark this as no fix needed as the user's environment interfered with cmake execution.  The cmake script properly checks for the minimum cmake version and informs the user if this is not the case.

> Update build from source wiki section with cmake version
> --------------------------------------------------------
>
>                 Key: MADLIB-1093
>                 URL: https://issues.apache.org/jira/browse/MADLIB-1093
>             Project: Apache MADlib
>          Issue Type: Documentation
>            Reporter: Kyle R Dunn
>            Assignee: Ed Espino
>            Priority: Minor
>             Fix For: v1.12
>
>
> When trying to build on CentOS 6 and using the ancient version of cmake from yum, I encounter the following failure from cmake. 
> We should update the wiki page to reflect the minimum version (or the version used in CI) to prevent others from having this issue.
> {code}
> [gpadmin@gpdb-sandbox build]$ cmake ..
> -- Could NOT find Boost
> -- No sufficiently recent version (>= 1.47) of Boost was found. Will download.
> -- Found PythonInterp: /usr/local/greenplum-db/ext/python/bin/python (found version "2.6.2")
> -- Could NOT find PostgreSQL (missing:  POSTGRESQL_EXECUTABLE)
> -- Found Greenplum: /usr/local/greenplum-db-4.3.12.0/bin/postgres
> -- Found Greenplum_4_3ORCA: /usr/local/greenplum-db-4.3.12.0/bin/postgres
> >> Adding Greenplum 4.3ORCA (x86_64) to target list...
> -- Could NOT find HAWQ (missing:  HAWQ_EXECUTABLE)
> Segmentation fault (core dumped)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)