From: John R Pierce Message-ID: <465a5b5c-3f88-efc3-f584-5405083f9e2d@hogranch.com> Date: Wed, 22 Feb 2017 12:01:56 -0800 MIME-Version: 1.0 Subject: [Pljava-dev] building on centos 6.8 Content-Type: multipart/mixed; boundary="===============5299376415431690993==" This is a multi-part message in MIME format. --===============5299376415431690993== Content-Type: multipart/alternative; boundary="------------F964CF63D296176F63F095EA" This is a multi-part message in MIME format. --------------F964CF63D296176F63F095EA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit trying to build pljava from the 1.5.0 tarball, on centos 6.latest 64bit, with postgres 9.5.5 from the yum.postgresql.org repository... I have postgresql95-devel and openjdk 1.8.0 devel packages installed, along with all the usual g++ etc stuff. path is set to... /usr/pgsql-9.5/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el6_8.x86_64/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin $ java -version openjdk version "1.8.0_111" OpenJDK Runtime Environment (build 1.8.0_111-b15) OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode) $ javac -version javac 1.8.0_111 $ psql -c "select version()" version ---------------------------------------------------------------------------------------------------------- PostgreSQL 9.5.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17), 64-bit (1 row) mvn clean install is giving me (after much other output)... [INFO] Starting Core 31 with 1 source files... [ERROR] In file included from /usr/pgsql-9.5/include/server/port/atomics.h:119, [ERROR] from /usr/pgsql-9.5/include/server/storage/lwlock.h:19, [ERROR] from /usr/pgsql-9.5/include/server/storage/lock.h:18, [ERROR] from /usr/pgsql-9.5/include/server/access/genam.h:20, [ERROR] from /usr/pgsql-9.5/include/server/nodes/execnodes.h:17, [ERROR] from /usr/pgsql-9.5/include/server/executor/execdesc.h:18, [ERROR] from /usr/pgsql-9.5/include/server/utils/portal.h:50, [ERROR] from /usr/pgsql-9.5/include/server/executor/spi.h:18, [ERROR] from /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/Exception.c:10: [ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_add_fetch_u32_impl’: [WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:247: warning: conversion to ‘uint32’ from ‘int32’ may change the sign of the result [ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_sub_fetch_u32_impl’: [WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:256: warning: conversion to ‘uint32’ from ‘int32’ may change the sign of the result [ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_add_fetch_u64_impl’: [WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:381: warning: conversion to ‘long unsigned int’ from ‘int64’ may change the sign of the result [ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_sub_fetch_u64_impl’: [WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:390: warning: conversion to ‘long unsigned int’ from ‘int64’ may change the sign of the result [ERROR] In file included from /usr/pgsql-9.5/include/server/port/atomics.h:119, [ERROR] from /usr/pgsql-9.5/include/server/storage/lwlock.h:19, [ERROR] from /usr/pgsql-9.5/include/server/storage/lock.h:18, [ERROR] from /usr/pgsql-9.5/include/server/access/genam.h:20, [ERROR] from /usr/pgsql-9.5/include/server/nodes/execnodes.h:17, [ERROR] from /usr/pgsql-9.5/include/server/executor/execdesc.h:18, [ERROR] from /usr/pgsql-9.5/include/server/utils/portal.h:50, [ERROR] from /usr/pgsql-9.5/include/server/executor/spi.h:18, [ERROR] from /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Relation.c:10: [ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_add_fetch_u32_impl’: [WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:247: warning: conversion to ‘uint32’ from ‘int32’ may change the sign of the result [ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_sub_fetch_u32_impl’: [WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:256: warning: conversion to ‘uint32’ from ‘int32’ may change the sign of the result [ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_add_fetch_u64_impl’: [WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:381: warning: conversion to ‘long unsigned int’ from ‘int64’ may change the sign of the result [ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_sub_fetch_u64_impl’: [WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:390: warning: conversion to ‘long unsigned int’ from ‘int64’ may change the sign of the result [ERROR] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c: In function ‘createArrayType’: [WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:31: warning: conversion to ‘size_t’ from ‘jsize’ may change the sign of the result [WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [ERROR] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c: In function ‘_Array_coerceDatum’: [WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:73: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:73: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:74: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [ERROR] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c: In function ‘_Array_coerceObject’: [WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:108: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:108: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result (lots more similar errors, then the summary says...) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] PostgreSQL PL/Java ................................. SUCCESS [ 0.813 s] [INFO] PL/Java API ........................................ SUCCESS [ 1.714 s] [INFO] PL/Java backend Java code .......................... SUCCESS [ 1.641 s] [INFO] PL/Java backend native code ........................ FAILURE [ 10.146 s] [INFO] PL/Java Deploy ..................................... SKIPPED [INFO] PL/Java Ant tasks .................................. SKIPPED [INFO] PL/Java examples ................................... SKIPPED [INFO] PL/Java packaging .................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.963 s [INFO] Finished at: 2017-02-22T11:54:31-08:00 [INFO] Final Memory: 37M/2137M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.2.3:nar-compile (default-nar-compile) on project pljava-so: NAR: Compile failed: gcc failed with return code 1 -> [Help 1] -- john r pierce, recycling bits in santa cruz --------------F964CF63D296176F63F095EA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

trying to build pljava from the 1.5.0 tarball, on centos 6.latest 64bit, with postgres 9.5.5 from the yum.postgresql.org repository...

I have postgresql95-devel and openjdk 1.8.0 devel packages installed, along with all the usual g++ etc stuff.

path is set to...

/usr/pgsql-9.5/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el6_8.x86_64/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin

$ java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)

$ javac -version
javac 1.8.0_111

$ psql -c "select version()"
                                                 version                                                 
----------------------------------------------------------------------------------------------------------
 PostgreSQL 9.5.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17), 64-bit
(1 row)


mvn clean install   is giving me (after much other output)...


[INFO]
Starting Core 31 with 1 source files...
[ERROR] In file included from /usr/pgsql-9.5/include/server/port/atomics.h:119,
[ERROR]                  from /usr/pgsql-9.5/include/server/storage/lwlock.h:19,
[ERROR]                  from /usr/pgsql-9.5/include/server/storage/lock.h:18,
[ERROR]                  from /usr/pgsql-9.5/include/server/access/genam.h:20,
[ERROR]                  from /usr/pgsql-9.5/include/server/nodes/execnodes.h:17,
[ERROR]                  from /usr/pgsql-9.5/include/server/executor/execdesc.h:18,
[ERROR]                  from /usr/pgsql-9.5/include/server/utils/portal.h:50,
[ERROR]                  from /usr/pgsql-9.5/include/server/executor/spi.h:18,
[ERROR]                  from /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/Exception.c:10:
[ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_add_fetch_u32_impl’:
[WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:247: warning: conversion to ‘uint32’ from ‘int32’ may change the sign of the result
[ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_sub_fetch_u32_impl’:
[WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:256: warning: conversion to ‘uint32’ from ‘int32’ may change the sign of the result
[ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_add_fetch_u64_impl’:
[WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:381: warning: conversion to ‘long unsigned int’ from ‘int64’ may change the sign of the result
[ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_sub_fetch_u64_impl’:
[WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:390: warning: conversion to ‘long unsigned int’ from ‘int64’ may change the sign of the result
[ERROR] In file included from /usr/pgsql-9.5/include/server/port/atomics.h:119,
[ERROR]                  from /usr/pgsql-9.5/include/server/storage/lwlock.h:19,
[ERROR]                  from /usr/pgsql-9.5/include/server/storage/lock.h:18,
[ERROR]                  from /usr/pgsql-9.5/include/server/access/genam.h:20,
[ERROR]                  from /usr/pgsql-9.5/include/server/nodes/execnodes.h:17,
[ERROR]                  from /usr/pgsql-9.5/include/server/executor/execdesc.h:18,
[ERROR]                  from /usr/pgsql-9.5/include/server/utils/portal.h:50,
[ERROR]                  from /usr/pgsql-9.5/include/server/executor/spi.h:18,
[ERROR]                  from /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Relation.c:10:
[ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_add_fetch_u32_impl’:
[WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:247: warning: conversion to ‘uint32’ from ‘int32’ may change the sign of the result
[ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_sub_fetch_u32_impl’:
[WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:256: warning: conversion to ‘uint32’ from ‘int32’ may change the sign of the result
[ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_add_fetch_u64_impl’:
[WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:381: warning: conversion to ‘long unsigned int’ from ‘int64’ may change the sign of the result
[ERROR] /usr/pgsql-9.5/include/server/port/atomics/generic.h: In function ‘pg_atomic_sub_fetch_u64_impl’:
[WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:390: warning: conversion to ‘long unsigned int’ from ‘int64’ may change the sign of the result
[ERROR] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c: In function ‘createArrayType’:
[WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:31: warning: conversion to ‘size_t’ from ‘jsize’ may change the sign of the result
[WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result
[WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result
[ERROR] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c: In function ‘_Array_coerceDatum’:
[WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:73: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result
[WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:73: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result
[WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:74: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result
[ERROR] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c: In function ‘_Array_coerceObject’:
[WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:108: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result
[WARNING] /var/lib/pgsql/pljava/pljava-1_5_0/pljava-so/src/main/c/type/Array.c:108: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result

(lots more similar errors, then the summary says...)

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] PostgreSQL PL/Java ................................. SUCCESS [  0.813 s]
[INFO] PL/Java API ........................................ SUCCESS [  1.714 s]
[INFO] PL/Java backend Java code .......................... SUCCESS [  1.641 s]
[INFO] PL/Java backend native code ........................ FAILURE [ 10.146 s]
[INFO] PL/Java Deploy ..................................... SKIPPED
[INFO] PL/Java Ant tasks .................................. SKIPPED
[INFO] PL/Java examples ................................... SKIPPED
[INFO] PL/Java packaging .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.963 s
[INFO] Finished at: 2017-02-22T11:54:31-08:00
[INFO] Final Memory: 37M/2137M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.2.3:nar-compile (default-nar-compile) on project pljava-so: NAR: Compile failed: gcc failed with return code 1 -> [Help 1]



-- 
john r pierce, recycling bits in santa cruz
--------------F964CF63D296176F63F095EA-- --===============5299376415431690993== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pljava-dev mailing list Pljava-dev@lists.pgfoundry.org http://lists.pgfoundry.org/mailman/listinfo/pljava-dev --===============5299376415431690993==--