Re: [Pljava-dev] problem building against 9.5

From: Chapman Flack <chap(at)anastigmatix(dot)net>
To:
Subject: Re: [Pljava-dev] problem building against 9.5
Date: 2015-12-29 18:11:01
Message-ID: 5682CCB5.4030006@anastigmatix.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Hi,

I'm assuming your compiler is gcc, but I can't tell the version from
the information you've attached. It's puzzling that the build aborted,
because the only actual issues I see reported are warnings (all the
[ERROR] lines are just giving location for the warnings, which is a
bit confusing, but seems to be how gcc does things).

Unless I've gone crosseyed and missed an actual error in there.

I see the XACT_EVENT_PRE_PREPARE warning, which is expected, and
nothing else except sign-conversion warnings, which are a nuisance
(fixing them mostly would have to be done in the PostgreSQL sources).
They do not ordinarily cause gcc to abort. Do you have any compiler
environment variables or the like in your build environment that
would be telling gcc to treat warnings as errors?

Have you tried mvn -Pwnosign -Dnar.cores=1 clean install

?

Regards,
-Chap

On 12/29/15 02:34, akshunj wrote:
> Hi,
>
> I am trying to build against 9.5, but am running into some problems below.
> Any ideas? I am able to build against 9.4 without issue.
>
> Thanks.
>
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> 2015-11-10T11:41:47-05:00)
> Maven home: /usr/local/maven
> Java version: 1.7.0_91, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91.x86_64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", family:
> "unix"
>
> [WARNING]
> /usr/local/maven-nar-plugin/pljava5/pljava/pljava-so/src/main/c/XactListener.c:30:
> warning: enumeration value ‘XACT_EVENT_PRE_PREPARE’ not handled in switch
> [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/executor/executor.h:17,
> [ERROR] from /usr/pgsql-9.5/include/server/funcapi.h:21,
> [ERROR] from
> /usr/local/maven-nar-plugin/pljava5/pljava/pljava-so/src/main/include/pljava/backports.h:46,
> [ERROR] from
> /usr/local/maven-nar-plugin/pljava5/pljava/pljava-so/src/main/c/backports.c:9:
> [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:238: 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: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_add_fetch_u64_impl’:
> [WARNING] /usr/pgsql-9.5/include/server/port/atomics/generic.h:372: 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:381: warning:
> conversion to ‘long unsigned int’ from ‘int64’ may change the sign of the
> result
> [ERROR]
> /usr/local/maven-nar-plugin/pljava5/pljava/pljava-so/src/main/c/type/byte_array.c:
> In function ‘_byte_array_coerceDatum’:
> [WARNING]
> /usr/local/maven-nar-plugin/pljava5/pljava/pljava-so/src/main/c/type/byte_array.c:24:
> warning: conversion to ‘jsize’ from ‘uint32’ may change the sign of the
> result
> [ERROR]
> /usr/local/maven-nar-plugin/pljava5/pljava/pljava-so/src/main/c/type/byte_array.c:
> In function ‘_byte_array_coerceObject’:
> [WARNING]
> /usr/local/maven-nar-plugin/pljava5/pljava/pljava-so/src/main/c/type/byte_array.c:42:
> warning: conversion to ‘Size’ from ‘int32’ may change the sign of the result
> [WARNING]
> /usr/local/maven-nar-plugin/pljava5/pljava/pljava-so/src/main/c/type/byte_array.c:57:
> warning: conversion to ‘Size’ from ‘int32’ may change the sign of the result
> [INFO] Core 3 interrupted
> [INFO] Core 3 interrupted
> [INFO] 52 files were compiled.
> [INFO] 52 files were compiled.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] PostgreSQL PL/Java ................................. SUCCESS [ 1.149
> s]
> [INFO] PL/Java API ........................................ SUCCESS [ 1.991
> s]
> [INFO] PL/Java backend Java code .......................... SUCCESS [ 2.256
> s]
> [INFO] PL/Java backend native code ........................ FAILURE [ 15.875
> 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
>
>
>
> --
> View this message in context: http://postgresql.nabble.com/problem-building-against-9-5-tp5879391.html
> Sent from the PL/Java mailing list archive at Nabble.com.
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev(at)lists(dot)pgfoundry(dot)org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
>
_______________________________________________
Pljava-dev mailing list
Pljava-dev(at)lists(dot)pgfoundry(dot)org
http://lists.pgfoundry.org/mailman/listinfo/pljava-dev

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Chapman Flack 2015-12-30 16:55:53 Re: [Pljava-dev] problem building against 9.5
Previous Message akshunj 2015-12-29 07:34:14 [Pljava-dev] problem building against 9.5