From bikle101@gmail.com Mon Jul 6 07:54:05 2026 MIME-Version: 1.0 From: Dan Bikle Date: Wed, 6 Jul 2016 19:26:46 -0700 Message-ID: Subject: [Pljava-dev] mvn clean install fails for PL/Java on Postgres 9.5 Content-Type: multipart/mixed; boundary="===============4432655677844929990==" --===============4432655677844929990== Content-Type: multipart/alternative; boundary=001a113efaaaea5a1d0537026a2f --001a113efaaaea5a1d0537026a2f Content-Type: text/plain; charset=UTF-8 Hello world, I am working on installing PL/Java on Postgres 9.5. My setup is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92 My install of Postgres was done from these yum-packages: postgresql95 postgresql95-devel postgresql95-libs postgresql95-server I list below a summary of my steps so far: su - postgres git clone https://github.com/tada/pljava git checkout V1_5_0 mvn clean install That seemed to work until I saw this: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] PostgreSQL PL/Java ................................. SUCCESS [ 16.707 s] [INFO] PL/Java API ........................................ SUCCESS [ 8.771 s] [INFO] PL/Java backend Java code .......................... SUCCESS [ 4.000 s] [INFO] PL/Java backend native code ........................ FAILURE [ 13.560 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: 52.707 s [INFO] Finished at: 2016-07-06T18:09:40-07:00 [INFO] Final Memory: 38M/222M [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] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :pljava-so I would welcome any clues and/or opinions about how to best debug this so that mvn clean install will run error free. --001a113efaaaea5a1d0537026a2f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello world,

I am worki= ng on installing PL/Java on Postgres 9.5.

My setup is Postgres 9.5 o= n Centos 6.5 with Oracle-Java JDK 1.8.0_92

My install of Postgres wa= s done from these yum-packages:

=C2=A0=C2=A0=C2=A0 postgresql95
= =C2=A0=C2=A0=C2=A0 postgresql95-devel
=C2=A0=C2=A0=C2=A0 postgresql95-li= bs
=C2=A0=C2=A0=C2=A0 postgresql95-server

I list below a summary = of my steps so far:

=C2=A0=C2=A0=C2=A0 su - postgres
=C2=A0=C2=A0= =C2=A0 git clone https://github.= com/tada/pljava
=C2=A0=C2=A0=C2=A0 git checkout V1_5_0
=C2=A0=C2= =A0=C2=A0 mvn clean install

That seemed to work until I saw this:
=C2=A0=C2=A0=C2=A0 [INFO] --------------------------------------------= ----------------------------
=C2=A0=C2=A0=C2=A0 [INFO] Reactor Summary:<= br>=C2=A0=C2=A0=C2=A0 [INFO]
=C2=A0=C2=A0=C2=A0 [INFO] PostgreSQL PL/Ja= va ................................. SUCCESS [ 16.707 s]
=C2=A0=C2=A0=C2= =A0 [INFO] PL/Java API ........................................ SUCCESS [= =C2=A0 8.771 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java backend Java code ....= ...................... SUCCESS [=C2=A0 4.000 s]
=C2=A0=C2=A0=C2=A0 [INFO= ] PL/Java backend native code ........................ FAILURE [ 13.560 s]<= br>=C2=A0=C2=A0=C2=A0 [INFO] PL/Java Deploy ...............................= ...... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java Ant tasks .............= ..................... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java examples= ................................... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] P= L/Java packaging .................................. SKIPPED
=C2=A0=C2=A0= =C2=A0 [INFO] -------------------------------------------------------------= -----------
=C2=A0=C2=A0=C2=A0 [INFO] BUILD FAILURE
=C2=A0=C2=A0=C2= =A0 [INFO] ----------------------------------------------------------------= --------
=C2=A0=C2=A0=C2=A0 [INFO] Total time: 52.707 s
=C2=A0=C2=A0= =C2=A0 [INFO] Finished at: 2016-07-06T18:09:40-07:00
=C2=A0=C2=A0=C2=A0 = [INFO] Final Memory: 38M/222M
=C2=A0=C2=A0=C2=A0 [INFO] ----------------= --------------------------------------------------------
=C2=A0=C2=A0=C2= =A0
=C2=A0=C2=A0=C2=A0 [ERROR] Failed to execute goal
=C2=A0=C2=A0= =C2=A0 com.github.maven-nar:nar-maven-plugin:3.2.3:nar-compile
=C2=A0=C2= =A0=C2=A0 (default-nar-compile) on project pljava-so: NAR: Compile failed: = gcc
=C2=A0=C2=A0=C2=A0 failed with return code 1 -> [Help 1]
=C2= =A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 [ERROR]
=C2=A0=C2=A0=C2=A0 [ERRO= R] To see the full stack trace of the errors, re-run Maven with the -e swit= ch.
=C2=A0=C2=A0=C2=A0 [ERROR] Re-run Maven using the -X switch to enabl= e full debug logging.
=C2=A0=C2=A0=C2=A0 [ERROR]
=C2=A0=C2=A0=C2=A0 = [ERROR] For more information about the errors and possible solutions, pleas= e read the following articles:
=C2=A0=C2=A0=C2=A0 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException=
=C2=A0=C2=A0=C2=A0 [ERROR]
=C2=A0=C2=A0=C2=A0 [ERROR] After cor= recting the problems, you can resume the build with the command
=C2=A0= =C2=A0=C2=A0 [ERROR]=C2=A0=C2=A0 mvn <goals> -rf :pljava-so

I = would welcome any clues and/or opinions about how to best debug this so tha= t mvn clean install will run error free.

--001a113efaaaea5a1d0537026a2f-- --===============4432655677844929990== 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 --===============4432655677844929990==-- From bikle101@gmail.com Mon Jul 6 07:54:05 2026 MIME-Version: 1.0 In-Reply-To: References: From: Dan Bikle Date: Wed, 6 Jul 2016 19:31:18 -0700 Message-ID: Subject: Re: [Pljava-dev] mvn clean install fails for PL/Java on Postgres 9.5 Content-Type: multipart/mixed; boundary="===============7266920174778255473==" --===============7266920174778255473== Content-Type: multipart/alternative; boundary=001a1145beb01ed5af0537027b62 --001a1145beb01ed5af0537027b62 Content-Type: text/plain; charset=UTF-8 Hello world, I am working on installing PL/Java on Postgres 9.5. My setup is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92 My install of Postgres was done from these yum-packages: postgresql95 postgresql95-devel postgresql95-libs postgresql95-server I list below a summary of my steps so far: su - postgres git clone https://github.com/tada/pljava git checkout V1_5_0 mvn clean install That seemed to work until I saw this: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] PostgreSQL PL/Java ................................. SUCCESS [ 16.707 s] [INFO] PL/Java API ........................................ SUCCESS [ 8.771 s] [INFO] PL/Java backend Java code .......................... SUCCESS [ 4.000 s] [INFO] PL/Java backend native code ........................ FAILURE [ 13.560 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: 52.707 s [INFO] Finished at: 2016-07-06T18:09:40-07:00 [INFO] Final Memory: 38M/222M [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] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :pljava-so I would welcome any clues and/or opinions about how to best debug this so that mvn clean install will run error free. On Wed, Jul 6, 2016 at 7:26 PM, Dan Bikle wrote: > Hello world, > > I am working on installing PL/Java on Postgres 9.5. > > My setup is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92 > > My install of Postgres was done from these yum-packages: > > postgresql95 > postgresql95-devel > postgresql95-libs > postgresql95-server > > I list below a summary of my steps so far: > > su - postgres > git clone https://github.com/tada/pljava > git checkout V1_5_0 > mvn clean install > > That seemed to work until I saw this: > > [INFO] ------------------------------------------------------------ > ------------ > [INFO] Reactor Summary: > [INFO] > [INFO] PostgreSQL PL/Java ................................. SUCCESS [ > 16.707 s] > [INFO] PL/Java API ........................................ SUCCESS > [ 8.771 s] > [INFO] PL/Java backend Java code .......................... SUCCESS [ > 4.000 s] > [INFO] PL/Java backend native code ........................ FAILURE [ > 13.560 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: 52.707 s > [INFO] Finished at: 2016-07-06T18:09:40-07:00 > [INFO] Final Memory: 38M/222M > [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] > > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with > the -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with > the command > [ERROR] mvn -rf :pljava-so > > I would welcome any clues and/or opinions about how to best debug this so > that mvn clean install will run error free. > > --001a1145beb01ed5af0537027b62 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello world,

I am worki= ng on installing PL/Java on Postgres 9.5.

My setup is Postgres 9.5 o= n Centos 6.5 with Oracle-Java JDK 1.8.0_92

My install of Postgres wa= s done from these yum-packages:

=C2=A0=C2=A0=C2=A0 postgresql95
= =C2=A0=C2=A0=C2=A0 postgresql95-devel
=C2=A0=C2=A0=C2=A0 postgresql95-li= bs
=C2=A0=C2=A0=C2=A0 postgresql95-server

I list below a summary = of my steps so far:

=C2=A0=C2=A0=C2=A0 su - postgres
=C2=A0=C2=A0= =C2=A0 git clone https://github.= com/tada/pljava
=C2=A0=C2=A0=C2=A0 git checkout V1_5_0
=C2=A0=C2= =A0=C2=A0 mvn clean install

That seemed to work until I saw this:
=C2=A0=C2=A0=C2=A0 [INFO] --------------------------------------------= ----------------------------
=C2=A0=C2=A0=C2=A0 [INFO] Reactor Summary:<= br>=C2=A0=C2=A0=C2=A0 [INFO]
=C2=A0=C2=A0=C2=A0 [INFO] PostgreSQL PL/Ja= va ................................. SUCCESS [ 16.707 s]
=C2=A0=C2=A0=C2= =A0 [INFO] PL/Java API ........................................ SUCCESS [= =C2=A0 8.771 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java backend Java code ....= ...................... SUCCESS [=C2=A0 4.000 s]
=C2=A0=C2=A0=C2=A0 [INFO= ] PL/Java backend native code ........................ FAILURE [ 13.560 s]<= br>=C2=A0=C2=A0=C2=A0 [INFO] PL/Java Deploy ...............................= ...... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java Ant tasks .............= ..................... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java examples= ................................... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] P= L/Java packaging .................................. SKIPPED
=C2=A0=C2=A0= =C2=A0 [INFO] -------------------------------------------------------------= -----------
=C2=A0=C2=A0=C2=A0 [INFO] BUILD FAILURE
=C2=A0=C2=A0=C2= =A0 [INFO] ----------------------------------------------------------------= --------
=C2=A0=C2=A0=C2=A0 [INFO] Total time: 52.707 s
=C2=A0=C2=A0= =C2=A0 [INFO] Finished at: 2016-07-06T18:09:40-07:00
=C2=A0=C2=A0=C2=A0 = [INFO] Final Memory: 38M/222M
=C2=A0=C2=A0=C2=A0 [INFO] ----------------= --------------------------------------------------------
=C2=A0=C2=A0=C2= =A0
=C2=A0=C2=A0=C2=A0 [ERROR] Failed to execute goal
=C2=A0=C2=A0= =C2=A0 com.github.maven-nar:nar-maven-plugin:3.2.3:nar-compile
=C2=A0=C2= =A0=C2=A0 (default-nar-compile) on project pljava-so: NAR: Compile failed: = gcc
=C2=A0=C2=A0=C2=A0 failed with return code 1 -> [Help 1]
=C2= =A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 [ERROR]
=C2=A0=C2=A0=C2=A0 [ERRO= R] To see the full stack trace of the errors, re-run Maven with the -e swit= ch.
=C2=A0=C2=A0=C2=A0 [ERROR] Re-run Maven using the -X switch to enabl= e full debug logging.
=C2=A0=C2=A0=C2=A0 [ERROR]
=C2=A0=C2=A0=C2=A0 = [ERROR] For more information about the errors and possible solutions, pleas= e read the following articles:
=C2=A0=C2=A0=C2=A0 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException=
=C2=A0=C2=A0=C2=A0 [ERROR]
=C2=A0=C2=A0=C2=A0 [ERROR] After cor= recting the problems, you can resume the build with the command
=C2=A0= =C2=A0=C2=A0 [ERROR]=C2=A0=C2=A0 mvn <goals> -rf :pljava-so

I = would welcome any clues and/or opinions about how to best debug this so tha= t mvn clean install will run error free.


On = Wed, Jul 6, 2016 at 7:26 PM, Dan Bikle <bikle101@gmail.com>= wrote:
Hello= world,

I am working on installing PL/Java on Postgres 9.5.

M= y setup is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92

= My install of Postgres was done from these yum-packages:

=C2=A0=C2= =A0=C2=A0 postgresql95
=C2=A0=C2=A0=C2=A0 postgresql95-devel
=C2=A0= =C2=A0=C2=A0 postgresql95-libs
=C2=A0=C2=A0=C2=A0 postgresql95-server
I list below a summary of my steps so far:

=C2=A0=C2=A0=C2=A0 s= u - postgres
=C2=A0=C2=A0=C2=A0 git clone https://github.com/tada/pljava
=C2=A0= =C2=A0=C2=A0 git checkout V1_5_0
=C2=A0=C2=A0=C2=A0 mvn clean install
That seemed to work until I saw this:

=C2=A0=C2=A0=C2=A0 [INFO]= ------------------------------
------------------------------------------
=C2=A0=C2=A0=C2=A0 [INFO] Reactor Summ= ary:
=C2=A0=C2=A0=C2=A0 [INFO]
=C2=A0=C2=A0=C2=A0 [INFO] PostgreSQL = PL/Java ..............................
... SUCCESS [ 16.707 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/J= ava API ..............................
.......... SUCCESS [=C2=A0 8.771 s]
=C2=A0=C2=A0=C2=A0= [INFO] PL/Java backend Java code .......................... SUCCESS [=C2= =A0 4.000 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java backend native code .....= ................... FAILURE [ 13.560 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Jav= a Deploy ..............................
....... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java Ant= tasks ..............................
.... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java examples= ..............................
..... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java packaging ...= ...........................
.... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] --------------------------= ----
----------------= --------------------= ------
=C2=A0=C2=A0=C2=A0 [INFO] BUILD FAILURE
=C2=A0=C2=A0=C2=A0 [IN= FO] ------------------------------
------------------------------------------
=C2=A0=C2=A0=C2=A0 [INFO] Total tim= e: 52.707 s
=C2=A0=C2=A0=C2=A0 [INFO] Finished at: 2016-07-06T18:09:40-0= 7:00
=C2=A0=C2=A0=C2=A0 [INFO] Final Memory: 38M/222M
=C2=A0=C2=A0=C2= =A0 [INFO] ------------------------------
------------------------------------------
=C2=A0=C2=A0=C2=A0
=C2= =A0=C2=A0=C2=A0 [ERROR] Failed to execute goal
=C2=A0=C2=A0=C2=A0 com.gi= thub.maven-nar:nar-
m= aven-plugin:3.2.3:nar-compile
=C2=A0=C2=A0=C2=A0 (default-nar-compile) o= n project pljava-so: NAR: Compile failed: gcc
=C2=A0=C2=A0=C2=A0 failed = with return code 1 -> [Help 1]
=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2= =A0 [ERROR]
=C2=A0=C2=A0=C2=A0 [ERROR] To see the full stack trace of t= he errors, re-run Maven with the -e switch.
=C2=A0=C2=A0=C2=A0 [ERROR] R= e-run Maven using the -X switch to enable full debug logging.
=C2=A0=C2= =A0=C2=A0 [ERROR]
=C2=A0=C2=A0=C2=A0 [ERROR] For more information about= the errors and possible solutions, please read the following articles:
= =C2=A0=C2=A0=C2=A0 [ERROR] [Help 1] http://cwiki= .apache.org/confluence/display/MAVEN/MojoExecutionException
=C2=A0= =C2=A0=C2=A0 [ERROR]
=C2=A0=C2=A0=C2=A0 [ERROR] After correcting the pr= oblems, you can resume the build with the command
=C2=A0=C2=A0=C2=A0 [ER= ROR]=C2=A0=C2=A0 mvn <goals> -rf :pljava-so

I would welcome an= y clues and/or opinions about how to best debug this so that mvn clean inst= all will run error free.


--001a1145beb01ed5af0537027b62-- --===============7266920174778255473== 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 --===============7266920174778255473==-- From bikle101@gmail.com Mon Jul 6 07:54:05 2026 MIME-Version: 1.0 In-Reply-To: References: From: Dan Bikle Date: Wed, 6 Jul 2016 19:34:09 -0700 Message-ID: Subject: Re: [Pljava-dev] mvn clean install fails for PL/Java on Postgres 9.5 Content-Type: multipart/mixed; boundary="===============9189865393040361540==" --===============9189865393040361540== Content-Type: multipart/alternative; boundary=001a11403b685cd1c90537028514 --001a11403b685cd1c90537028514 Content-Type: text/plain; charset=UTF-8 I tried this: rm -rf target mvn -X clean install I saw this: [INFO] Core 1 interrupted [INFO] 51 files were compiled. [INFO] 51 files were compiled. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] PostgreSQL PL/Java ................................. SUCCESS [ 0.960 s] [INFO] PL/Java API ........................................ SUCCESS [ 2.045 s] [INFO] PL/Java backend Java code .......................... SUCCESS [ 1.868 s] [INFO] PL/Java backend native code ........................ FAILURE [ 10.254 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: 15.799 s [INFO] Finished at: 2016-07-06T19:32:26-07:00 [INFO] Final Memory: 35M/222M [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] org.apache.maven.lifecycle.LifecycleExecutionException: 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 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: NAR: Compile failed at com.github.maven_nar.NarCompileMojo.createLibrary(NarCompileMojo.java:452) at com.github.maven_nar.NarCompileMojo.narExecute(NarCompileMojo.java:122) at com.github.maven_nar.AbstractNarMojo.execute(AbstractNarMojo.java:302) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more Caused by: gcc failed with return code 1 at com.github.maven_nar.cpptasks.compiler.CommandLineCompiler.compile(CommandLineCompiler.java:222) at com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration.compile(CommandLineCompilerConfiguration.java:148) at com.github.maven_nar.cpptasks.CCTask$Core.run(CCTask.java:946) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :pljava-so -bash-4.1$ On Wed, Jul 6, 2016 at 7:31 PM, Dan Bikle wrote: > Hello world, > > I am working on installing PL/Java on Postgres 9.5. > > My setup is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92 > > My install of Postgres was done from these yum-packages: > > postgresql95 > postgresql95-devel > postgresql95-libs > postgresql95-server > > I list below a summary of my steps so far: > > su - postgres > git clone https://github.com/tada/pljava > git checkout V1_5_0 > mvn clean install > > That seemed to work until I saw this: > > [INFO] ------------------------------------------------------------ > ------------ > [INFO] Reactor Summary: > [INFO] > [INFO] PostgreSQL PL/Java ................................. SUCCESS [ > 16.707 s] > [INFO] PL/Java API ........................................ SUCCESS > [ 8.771 s] > [INFO] PL/Java backend Java code .......................... SUCCESS [ > 4.000 s] > [INFO] PL/Java backend native code ........................ FAILURE [ > 13.560 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: 52.707 s > [INFO] Finished at: 2016-07-06T18:09:40-07:00 > [INFO] Final Memory: 38M/222M > [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] > > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with > the -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with > the command > [ERROR] mvn -rf :pljava-so > > I would welcome any clues and/or opinions about how to best debug this so > that mvn clean install will run error free. > > > On Wed, Jul 6, 2016 at 7:26 PM, Dan Bikle wrote: > >> Hello world, >> >> I am working on installing PL/Java on Postgres 9.5. >> >> My setup is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92 >> >> My install of Postgres was done from these yum-packages: >> >> postgresql95 >> postgresql95-devel >> postgresql95-libs >> postgresql95-server >> >> I list below a summary of my steps so far: >> >> su - postgres >> git clone https://github.com/tada/pljava >> git checkout V1_5_0 >> mvn clean install >> >> That seemed to work until I saw this: >> >> [INFO] ------------------------------------------------------------ >> ------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] PostgreSQL PL/Java ................................. SUCCESS >> [ 16.707 s] >> [INFO] PL/Java API ........................................ SUCCESS >> [ 8.771 s] >> [INFO] PL/Java backend Java code .......................... SUCCESS >> [ 4.000 s] >> [INFO] PL/Java backend native code ........................ FAILURE [ >> 13.560 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: 52.707 s >> [INFO] Finished at: 2016-07-06T18:09:40-07:00 >> [INFO] Final Memory: 38M/222M >> [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] >> >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven with >> the -e switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >> [ERROR] >> [ERROR] After correcting the problems, you can resume the build with >> the command >> [ERROR] mvn -rf :pljava-so >> >> I would welcome any clues and/or opinions about how to best debug this so >> that mvn clean install will run error free. >> >> > --001a11403b685cd1c90537028514 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I tried this:

rm -r= f target
mvn -X clean install

I saw this:

=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0
[INFO] Core 1 interrupted=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
[INFO] 51 fil= es were compiled.
[INFO] 51 files were compiled.
[INFO] -------------= -----------------------------------------------------------
[INFO] React= or Summary:
[INFO]
[INFO] PostgreSQL PL/Java .......................= .......... SUCCESS [=C2=A0 0.960 s]
[INFO] PL/Java API .................= ....................... SUCCESS [=C2=A0 2.045 s]
[INFO] PL/Java backend = Java code .......................... SUCCESS [=C2=A0 1.868 s]
[INFO] PL/= Java backend native code ........................ FAILURE [ 10.254 s]
[I= NFO] PL/Java Deploy ..................................... SKIPPED
[INFO]= PL/Java Ant tasks .................................. SKIPPED
[INFO] PL/= Java examples ................................... SKIPPED
[INFO] PL/Java= packaging .................................. SKIPPED
[INFO] -----------= -------------------------------------------------------------
[INFO] BUI= LD FAILURE
[INFO] ------------------------------------------------------= ------------------
[INFO] Total time: 15.799 s
[INFO] Finished at: 20= 16-07-06T19:32:26-07:00
[INFO] Final Memory: 35M/222M
[INFO] --------= ----------------------------------------------------------------
[ERROR]= Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.2.3:nar-com= pile (default-nar-compile) on project pljava-so: NAR: Compile failed: gcc f= ailed with return code 1 -> [Help 1]
org.apache.maven.lifecycle.Lifec= ycleExecutionException: Failed to execute goal com.github.maven-nar:nar-mav= en-plugin:3.2.3:nar-compile (default-nar-compile) on project pljava-so: NAR= : Compile failed
=C2=A0=C2=A0=C2=A0 at org.apache.maven.lifecycle.intern= al.MojoExecutor.execute(MojoExecutor.java:212)
=C2=A0=C2=A0=C2=A0 at org= .apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153= )
=C2=A0=C2=A0=C2=A0 at org.apache.maven.lifecycle.internal.MojoExecutor= .execute(MojoExecutor.java:145)
=C2=A0=C2=A0=C2=A0 at org.apache.maven.l= ifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilde= r.java:116)
=C2=A0=C2=A0=C2=A0 at org.apache.maven.lifecycle.internal.Li= fecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
=C2=A0= =C2=A0=C2=A0 at org.apache.maven.lifecycle.internal.builder.singlethreaded.= SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
=C2=A0=C2=A0= =C2=A0 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Life= cycleStarter.java:128)
=C2=A0=C2=A0=C2=A0 at org.apache.maven.DefaultMav= en.doExecute(DefaultMaven.java:307)
=C2=A0=C2=A0=C2=A0 at org.apache.mav= en.DefaultMaven.doExecute(DefaultMaven.java:193)
=C2=A0=C2=A0=C2=A0 at o= rg.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
=C2=A0=C2=A0= =C2=A0 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
=C2= =A0=C2=A0=C2=A0 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)<= br>=C2=A0=C2=A0=C2=A0 at org.apache.maven.cli.MavenCli.main(MavenCli.java:1= 99)
=C2=A0=C2=A0=C2=A0 at sun.reflect.NativeMethodAccessorImpl.invoke0(N= ative Method)
=C2=A0=C2=A0=C2=A0 at sun.reflect.NativeMethodAccessorImpl= .invoke(NativeMethodAccessorImpl.java:62)
=C2=A0=C2=A0=C2=A0 at sun.refl= ect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:4= 3)
=C2=A0=C2=A0=C2=A0 at java.lang.reflect.Method.invoke(Method.java:498= )
=C2=A0=C2=A0=C2=A0 at org.codehaus.plexus.classworlds.launcher.Launche= r.launchEnhanced(Launcher.java:289)
=C2=A0=C2=A0=C2=A0 at org.codehaus.p= lexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
=C2=A0=C2= =A0=C2=A0 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExit= Code(Launcher.java:415)
=C2=A0=C2=A0=C2=A0 at org.codehaus.plexus.classw= orlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.ma= ven.plugin.MojoExecutionException: NAR: Compile failed
=C2=A0=C2=A0=C2= =A0 at com.github.maven_nar.NarCompileMojo.createLibrary(NarCompileMojo.jav= a:452)
=C2=A0=C2=A0=C2=A0 at com.github.maven_nar.NarCompileMojo.narExec= ute(NarCompileMojo.java:122)
=C2=A0=C2=A0=C2=A0 at com.github.maven_nar.= AbstractNarMojo.execute(AbstractNarMojo.java:302)
=C2=A0=C2=A0=C2=A0 at = org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP= luginManager.java:134)
=C2=A0=C2=A0=C2=A0 at org.apache.maven.lifecycle.= internal.MojoExecutor.execute(MojoExecutor.java:207)
=C2=A0=C2=A0=C2=A0 = ... 20 more
Caused by: gcc failed with return code 1
=C2=A0=C2=A0=C2= =A0 at com.github.maven_nar.cpptasks.compiler.CommandLineCompiler.compile(C= ommandLineCompiler.java:222)
=C2=A0=C2=A0=C2=A0 at com.github.maven_nar.= cpptasks.compiler.CommandLineCompilerConfiguration.compile(CommandLineCompi= lerConfiguration.java:148)
=C2=A0=C2=A0=C2=A0 at com.github.maven_nar.cp= ptasks.CCTask$Core.run(CCTask.java:946)
[ERROR]
[ERROR]
[ERROR] = For more information about the errors and possible solutions, please read t= he following articles:
[ERROR] [Help 1] http://cwiki.apache.org= /confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR]= After correcting the problems, you can resume the build with the command[ERROR]=C2=A0=C2=A0 mvn <goals> -rf :pljava-so
-bash-4.1$


On Wed, Jul 6, 2016 at 7:31 PM, Dan Bikle <= bikle101@gmail.com> wrote:
Hello world,

I am= working on installing PL/Java on Postgres 9.5.

My setup is Postgres= 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92

My install of Postg= res was done from these yum-packages:

=C2=A0=C2=A0=C2=A0 postgresql9= 5
=C2=A0=C2=A0=C2=A0 postgresql95-devel
=C2=A0=C2=A0=C2=A0 postgresql= 95-libs
=C2=A0=C2=A0=C2=A0 postgresql95-server

I list below a sum= mary of my steps so far:

=C2=A0=C2=A0=C2=A0 su - postgres
=C2=A0= =C2=A0=C2=A0 git clone https://github.com/tada/pljava
=C2=A0=C2=A0=C2=A0 git check= out V1_5_0
=C2=A0=C2=A0=C2=A0 mvn clean install

That seemed to wo= rk until I saw this:

=C2=A0=C2=A0=C2=A0 [INFO] ---------------------= ---------
-----------= --------------------= -----------
=C2=A0=C2=A0=C2=A0 [INFO] Reactor Summary:
=C2=A0=C2=A0= =C2=A0 [INFO]
=C2=A0=C2=A0=C2=A0 [INFO] PostgreSQL PL/Java ............= ..................
..= . SUCCESS [ 16.707 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java API ............= ..................
..= ........ SUCCESS [=C2=A0 8.771 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java back= end Java code .......................... SUCCESS [=C2=A0 4.000 s]
=C2=A0= =C2=A0=C2=A0 [INFO] PL/Java backend native code ........................ FA= ILURE [ 13.560 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java Deploy .............= .................
...= .... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java Ant tasks ...............= ...............
.... = SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java examples .....................= .........
..... SKIPP= ED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java packaging .........................= .....
.... SKIPPED=C2=A0=C2=A0=C2=A0 [INFO] ------------------------------------------------------------<= span style=3D"font-family:monospace,monospace">------------
=C2=A0=C2=A0= =C2=A0 [INFO] BUILD FAILURE
=C2=A0=C2=A0=C2=A0 [INFO] ------------------= --------------------= ----------------------------------
=C2=A0=C2=A0=C2=A0 [INFO] Total time: 52.707 s
=C2=A0= =C2=A0=C2=A0 [INFO] Finished at: 2016-07-06T18:09:40-07:00
=C2=A0=C2=A0= =C2=A0 [INFO] Final Memory: 38M/222M
=C2=A0=C2=A0=C2=A0 [INFO] ---------= ---------------------
------------------------------------------
=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 [ERROR= ] Failed to execute goal
=C2=A0=C2=A0=C2=A0 com.github.maven-nar:nar-maven-plugin:3.2.3:nar-= compile
=C2=A0=C2=A0=C2=A0 (default-nar-compile) on project pljava-so: N= AR: Compile failed: gcc
=C2=A0=C2=A0=C2=A0 failed with return code 1 -&g= t; [Help 1]
=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 [ERROR]
=C2=A0= =C2=A0=C2=A0 [ERROR] To see the full stack trace of the errors, re-run Mave= n with the -e switch.
=C2=A0=C2=A0=C2=A0 [ERROR] Re-run Maven using the = -X switch to enable full debug logging.
=C2=A0=C2=A0=C2=A0 [ERROR]
= =C2=A0=C2=A0=C2=A0 [ERROR] For more information about the errors and possib= le solutions, please read the following articles:
=C2=A0=C2=A0=C2=A0 [ER= ROR] [Help 1] http://cwiki.apache.org/confluence= /display/MAVEN/MojoExecutionException
=C2=A0=C2=A0=C2=A0 [ERROR] =C2=A0=C2=A0=C2=A0 [ERROR] After correcting the problems, you can resume t= he build with the command
=C2=A0=C2=A0=C2=A0 [ERROR]=C2=A0=C2=A0 mvn <= ;goals> -rf :pljava-so

I would welcome any clues and/or opinions = about how to best debug this so that mvn clean install will run error free.=


On Wed, = Jul 6, 2016 at 7:26 PM, Dan Bikle <bikle101@gmail.com> wrot= e:
Hello worl= d,

I am working on installing PL/Java on Postgres 9.5.

My set= up is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92

My in= stall of Postgres was done from these yum-packages:

=C2=A0=C2=A0=C2= =A0 postgresql95
=C2=A0=C2=A0=C2=A0 postgresql95-devel
=C2=A0=C2=A0= =C2=A0 postgresql95-libs
=C2=A0=C2=A0=C2=A0 postgresql95-server

I= list below a summary of my steps so far:

=C2=A0=C2=A0=C2=A0 su - po= stgres
=C2=A0=C2=A0=C2=A0 git clone https://github.com/tada/pljava
=C2=A0=C2=A0= =C2=A0 git checkout V1_5_0
=C2=A0=C2=A0=C2=A0 mvn clean install

T= hat seemed to work until I saw this:

=C2=A0=C2=A0=C2=A0 [INFO] -----= -------------------------
------------------------------------------
=C2=A0=C2=A0=C2=A0 [INFO] Reactor Summary:=C2=A0=C2=A0=C2=A0 [INFO]
=C2=A0=C2=A0=C2=A0 [INFO] PostgreSQL PL/Jav= a ..............................
... SUCCESS [ 16.707 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java AP= I ..............................
.......... SUCCESS [=C2=A0 8.771 s]
=C2=A0=C2=A0=C2=A0 [INFO= ] PL/Java backend Java code .......................... SUCCESS [=C2=A0 4.00= 0 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java backend native code .............= ........... FAILURE [ 13.560 s]
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java Deploy= ..............................
....... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java Ant tasks .= .............................
.... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java examples .......= .......................
..... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] PL/Java packaging ...........= ...................
.= ... SKIPPED
=C2=A0=C2=A0=C2=A0 [INFO] ------------------------------------------------------= ------------------=C2=A0=C2=A0=C2=A0 [INFO] BUILD FAILURE
=C2=A0=C2=A0=C2=A0 [INFO] ----= --------------------------
------------------------------------------
=C2=A0=C2=A0=C2=A0 [INFO] Total time: 52.70= 7 s
=C2=A0=C2=A0=C2=A0 [INFO] Finished at: 2016-07-06T18:09:40-07:00
= =C2=A0=C2=A0=C2=A0 [INFO] Final Memory: 38M/222M
=C2=A0=C2=A0=C2=A0 [INF= O] ------------------------------
------------------------------------------
=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0= =C2=A0 [ERROR] Failed to execute goal
=C2=A0=C2=A0=C2=A0 com.github.mave= n-nar:nar-maven
-plug= in:3.2.3:nar-compile
=C2=A0=C2=A0=C2=A0 (default-nar-compile) on project= pljava-so: NAR: Compile failed: gcc
=C2=A0=C2=A0=C2=A0 failed with retu= rn code 1 -> [Help 1]
=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 [ERRO= R]
=C2=A0=C2=A0=C2=A0 [ERROR] To see the full stack trace of the errors= , re-run Maven with the -e switch.
=C2=A0=C2=A0=C2=A0 [ERROR] Re-run Mav= en using the -X switch to enable full debug logging.
=C2=A0=C2=A0=C2=A0 = [ERROR]
=C2=A0=C2=A0=C2=A0 [ERROR] For more information about the error= s and possible solutions, please read the following articles:
=C2=A0=C2= =A0=C2=A0 [ERROR] [Help 1] http://cwiki.apache.o= rg/confluence/display/MAVEN/MojoExecutionException
=C2=A0=C2=A0=C2= =A0 [ERROR]
=C2=A0=C2=A0=C2=A0 [ERROR] After correcting the problems, y= ou can resume the build with the command
=C2=A0=C2=A0=C2=A0 [ERROR]=C2= =A0=C2=A0 mvn <goals> -rf :pljava-so

I would welcome any clues= and/or opinions about how to best debug this so that mvn clean install wil= l run error free.



--001a11403b685cd1c90537028514-- --===============9189865393040361540== 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 --===============9189865393040361540==-- From chap@anastigmatix.net Mon Jul 6 07:54:06 2026 References: From: Chapman Flack Message-ID: <577DC752.9020800@anastigmatix.net> Date: Wed, 6 Jul 2016 23:06:58 -0400 MIME-Version: 1.0 In-Reply-To: Subject: Re: [Pljava-dev] mvn clean install fails for PL/Java on Postgres 9.5 Content-Type: text/plain; charset="us-ascii" Hi, If you run mvn -X clean install >mvnlog 2>&1 and then look through mvnlog for a line containing 'fatal error' you will probably find that a required dependency is missing, often a .h file for something like openssl. The requirement may be found in an additional package from your OS distro repository (often with a name that ends in -devel ... you may have, for example, the openssl package installed, but not openssl-devel). I use openssl by way of example; it will be finding the error message in your mvn -X output that tells you what exactly is missing in your case. This is becoming a bit of a FAQ... Regards, -Chap On 07/06/16 22:34, Dan Bikle wrote: > I tried this: > > rm -rf target > mvn -X clean install > > I saw this: > > > [INFO] Core 1 interrupted > [INFO] 51 files were compiled. > [INFO] 51 files were compiled. > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] PostgreSQL PL/Java ................................. SUCCESS [ > 0.960 s] > [INFO] PL/Java API ........................................ SUCCESS [ > 2.045 s] > [INFO] PL/Java backend Java code .......................... SUCCESS [ > 1.868 s] > [INFO] PL/Java backend native code ........................ FAILURE [ > 10.254 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: 15.799 s > [INFO] Finished at: 2016-07-06T19:32:26-07:00 > [INFO] Final Memory: 35M/222M > [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] > org.apache.maven.lifecycle.LifecycleExecutionException: 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 > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > Caused by: org.apache.maven.plugin.MojoExecutionException: NAR: Compile > failed > at > com.github.maven_nar.NarCompileMojo.createLibrary(NarCompileMojo.java:452) > at > com.github.maven_nar.NarCompileMojo.narExecute(NarCompileMojo.java:122) > at > com.github.maven_nar.AbstractNarMojo.execute(AbstractNarMojo.java:302) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) > ... 20 more > Caused by: gcc failed with return code 1 > at > com.github.maven_nar.cpptasks.compiler.CommandLineCompiler.compile(CommandLineCompiler.java:222) > at > com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration.compile(CommandLineCompilerConfiguration.java:148) > at com.github.maven_nar.cpptasks.CCTask$Core.run(CCTask.java:946) > [ERROR] > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn -rf :pljava-so > -bash-4.1$ > > > > On Wed, Jul 6, 2016 at 7:31 PM, Dan Bikle wrote: > >> Hello world, >> >> I am working on installing PL/Java on Postgres 9.5. >> >> My setup is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92 >> >> My install of Postgres was done from these yum-packages: >> >> postgresql95 >> postgresql95-devel >> postgresql95-libs >> postgresql95-server >> >> I list below a summary of my steps so far: >> >> su - postgres >> git clone https://github.com/tada/pljava >> git checkout V1_5_0 >> mvn clean install >> >> That seemed to work until I saw this: >> >> [INFO] ------------------------------------------------------------ >> ------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] PostgreSQL PL/Java ................................. SUCCESS [ >> 16.707 s] >> [INFO] PL/Java API ........................................ SUCCESS >> [ 8.771 s] >> [INFO] PL/Java backend Java code .......................... SUCCESS [ >> 4.000 s] >> [INFO] PL/Java backend native code ........................ FAILURE [ >> 13.560 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: 52.707 s >> [INFO] Finished at: 2016-07-06T18:09:40-07:00 >> [INFO] Final Memory: 38M/222M >> [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] >> >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven with >> the -e switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >> [ERROR] >> [ERROR] After correcting the problems, you can resume the build with >> the command >> [ERROR] mvn -rf :pljava-so >> >> I would welcome any clues and/or opinions about how to best debug this so >> that mvn clean install will run error free. >> >> >> On Wed, Jul 6, 2016 at 7:26 PM, Dan Bikle wrote: >> >>> Hello world, >>> >>> I am working on installing PL/Java on Postgres 9.5. >>> >>> My setup is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92 >>> >>> My install of Postgres was done from these yum-packages: >>> >>> postgresql95 >>> postgresql95-devel >>> postgresql95-libs >>> postgresql95-server >>> >>> I list below a summary of my steps so far: >>> >>> su - postgres >>> git clone https://github.com/tada/pljava >>> git checkout V1_5_0 >>> mvn clean install >>> >>> That seemed to work until I saw this: >>> >>> [INFO] ------------------------------------------------------------ >>> ------------ >>> [INFO] Reactor Summary: >>> [INFO] >>> [INFO] PostgreSQL PL/Java ................................. SUCCESS >>> [ 16.707 s] >>> [INFO] PL/Java API ........................................ SUCCESS >>> [ 8.771 s] >>> [INFO] PL/Java backend Java code .......................... SUCCESS >>> [ 4.000 s] >>> [INFO] PL/Java backend native code ........................ FAILURE [ >>> 13.560 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: 52.707 s >>> [INFO] Finished at: 2016-07-06T18:09:40-07:00 >>> [INFO] Final Memory: 38M/222M >>> [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] >>> >>> [ERROR] >>> [ERROR] To see the full stack trace of the errors, re-run Maven with >>> the -e switch. >>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >>> [ERROR] >>> [ERROR] For more information about the errors and possible solutions, >>> please read the following articles: >>> [ERROR] [Help 1] >>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >>> [ERROR] >>> [ERROR] After correcting the problems, you can resume the build with >>> the command >>> [ERROR] mvn -rf :pljava-so >>> >>> I would welcome any clues and/or opinions about how to best debug this so >>> that mvn clean install will run error free. >>> >>> >> > > > > _______________________________________________ > Pljava-dev mailing list > Pljava-dev@lists.pgfoundry.org > http://lists.pgfoundry.org/mailman/listinfo/pljava-dev > _______________________________________________ Pljava-dev mailing list Pljava-dev@lists.pgfoundry.org http://lists.pgfoundry.org/mailman/listinfo/pljava-dev From bikle101@gmail.com Mon Jul 6 07:54:06 2026 MIME-Version: 1.0 In-Reply-To: References: From: Dan Bikle Date: Wed, 6 Jul 2016 23:32:11 -0700 Message-ID: Subject: Re: [Pljava-dev] mvn clean install fails for PL/Java on Postgres 9.5 Content-Type: multipart/mixed; boundary="===============2859679904577938824==" --===============2859679904577938824== Content-Type: multipart/alternative; boundary=001a1145beb0969487053705d8d2 --001a1145beb0969487053705d8d2 Content-Type: text/plain; charset=UTF-8 I found the fix. I ran a shell command from root: yum install openssl-devel --001a1145beb0969487053705d8d2 Content-Type: text/html; charset=UTF-8
I found the fix.

I ran a shell command from root:

yum install openssl-devel

--001a1145beb0969487053705d8d2-- --===============2859679904577938824== 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 --===============2859679904577938824==-- From pierce@hogranch.com Mon Jul 6 07:54:06 2026 References: From: John R Pierce Message-ID: <6947d400-7d64-1cb8-9914-08d27c3df4be@hogranch.com> Date: Thu, 7 Jul 2016 01:24:14 -0700 MIME-Version: 1.0 In-Reply-To: Subject: Re: [Pljava-dev] mvn clean install fails for PL/Java on Postgres 9.5 Content-Type: multipart/mixed; boundary="===============7096593581426643304==" This is a multi-part message in MIME format. --===============7096593581426643304== Content-Type: multipart/alternative; boundary="------------CFB57E4DBCA7CBB150140A8D" This is a multi-part message in MIME format. --------------CFB57E4DBCA7CBB150140A8D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 7/6/2016 11:32 PM, Dan Bikle wrote: > I found the fix. > > I ran a shell command from root: > > yum install openssl-devel yup, thats a thing with redhat/centos/fedora, if you're going to build something that requires some library, you need the -devel packages for that library/package. if you install via yum, then all the dependencies get installed automatically, but if you're working from git or tarball or whatever, you're on your own. it generally takes trial and error to determine what packages you need for some custom build. -- john r pierce, recycling bits in santa cruz --------------CFB57E4DBCA7CBB150140A8D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 7/6/2016 11:32 PM, Dan Bikle wrote:
I found the fix.

I ran a shell command from root:

yum install openssl-devel

yup, thats a thing with redhat/centos/fedora, if you're going to build something that requires some library, you need the -devel packages for that library/package.     if you install via yum, then all the dependencies get installed automatically, but if you're working from git or tarball or whatever, you're on your own.  it generally takes trial and error to determine what packages you need for some custom build.



-- 
john r pierce, recycling bits in santa cruz
--------------CFB57E4DBCA7CBB150140A8D-- --===============7096593581426643304== 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 --===============7096593581426643304==-- From chap@anastigmatix.net Mon Jul 6 07:54:06 2026 References: <6947d400-7d64-1cb8-9914-08d27c3df4be@hogranch.com> From: Chapman Flack Message-ID: <577E3784.1080506@anastigmatix.net> Date: Thu, 7 Jul 2016 07:05:40 -0400 MIME-Version: 1.0 In-Reply-To: <6947d400-7d64-1cb8-9914-08d27c3df4be@hogranch.com> Subject: Re: [Pljava-dev] mvn clean install fails for PL/Java on Postgres 9.5 Content-Type: text/plain; charset="us-ascii" On 07/07/16 04:24, John R Pierce wrote: > if you're working from git or tarball or > whatever, you're on your own. it generally takes trial and error to > determine what packages you need for some custom build. Or in pljava's case, if trial-and-error feels too chancy, there will generally be a 'fatal error' line in mvn -X's output that gives the name of the file that couldn't be found ... it's just easiest to save the output in a file and grep it for 'fatal error' because that line's buried in such a volume of other verbosity. -Chap _______________________________________________ Pljava-dev mailing list Pljava-dev@lists.pgfoundry.org http://lists.pgfoundry.org/mailman/listinfo/pljava-dev From pierce@hogranch.com Mon Jul 6 07:54:06 2026 References: <6947d400-7d64-1cb8-9914-08d27c3df4be@hogranch.com> <577E3784.1080506@anastigmatix.net> From: John R Pierce Message-ID: <10c193df-7d1f-296b-52b9-8f33e67d9032@hogranch.com> Date: Thu, 7 Jul 2016 04:19:32 -0700 MIME-Version: 1.0 In-Reply-To: <577E3784.1080506@anastigmatix.net> Subject: Re: [Pljava-dev] mvn clean install fails for PL/Java on Postgres 9.5 Content-Type: text/plain; charset="us-ascii"; Format="flowed" On 7/7/2016 4:05 AM, Chapman Flack wrote: > Or in pljava's case, if trial-and-error feels too chancy, there will > generally be a 'fatal error' line in mvn -X's output that gives the > name of the file that couldn't be found ... it's just easiest to save > the output in a file and grep it for 'fatal error' because that line's > buried in such a volume of other verbosity. yeah, thats the 'error' part of trial and error :) -- john r pierce, recycling bits in santa cruz _______________________________________________ Pljava-dev mailing list Pljava-dev@lists.pgfoundry.org http://lists.pgfoundry.org/mailman/listinfo/pljava-dev