public inbox for [email protected]  
help / color / mirror / Atom feed
Subject: [Pljava-dev] pljava on centos 6.5 64bit and postgres 9.? and java ?
Date: Thu, 20 Nov 2014 19:23:53 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<CABNqA0XWWLPgzCOzszEwectvtRrnAg_dC=tV3-ni+CCv6Q=c=A@mail.gmail.com>
	<[email protected]>

On 11/20/2014 5:50 PM, John R Pierce wrote:
> I put /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin in the front of the 
> path and got exactly the same thing.

and for MORE fun.   I tried Sun JDK 1.6, and same thing

wait, the notes/wiki did say something about compiling in JDK 1.6 was 
broken, so I installed Sun-err-Oracle JDK 1.5.0_22 64bit, and enabled 
that as the default java with alternatives, also set my JAVA_HOME and 
PATH accordingly ...

nope.   weirder more different errors.


$ mvn compile
[INFO] Scanning for projects...
[INFO] 
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] PostgreSQL pl/java
[INFO] PL/JAVA API
[INFO] pl/java implementation
[INFO] pl/java deploy
[INFO] pl/java Ant Tasks
[INFO] pl/java examples
[INFO] pl/java server side library
[INFO] pl/java packaging
[INFO]
[INFO] 
------------------------------------------------------------------------
[INFO] Building PostgreSQL pl/java 0.0.2-SNAPSHOT
[INFO] 
------------------------------------------------------------------------
[INFO]
[INFO] 
------------------------------------------------------------------------
[INFO] Building PL/JAVA API 0.0.2-SNAPSHOT
[INFO] 
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
pljava-api ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/home/me/git/pljava/pljava-api/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ 
pljava-api ---
[INFO] Compiling 18 source files to 
/home/me/git/pljava/pljava-api/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
javac: invalid flag: -s
Usage: javac <options> <source files>
where possible options include:
   -g                         Generate all debugging info
   -g:none                    Generate no debugging info
   -g:{lines,vars,source}     Generate only some debugging info
   -nowarn                    Generate no warnings
   -verbose                   Output messages about what the compiler is 
doing
   -deprecation               Output source locations where deprecated 
APIs are used
   -classpath <path>          Specify where to find user class files
   -cp <path>                 Specify where to find user class files
   -sourcepath <path>         Specify where to find input source files
   -bootclasspath <path>      Override location of bootstrap class files
   -extdirs <dirs>            Override location of installed extensions
   -endorseddirs <dirs>       Override location of endorsed standards path
   -d <directory>             Specify where to place generated class files
   -encoding <encoding>       Specify character encoding used by source 
files
   -source <release>          Provide source compatibility with 
specified release
   -target <release>          Generate class files for specific VM version
   -version                   Version information
   -help                      Print a synopsis of standard options
   -X                         Print a synopsis of nonstandard options
   -J<flag>                   Pass <flag> directly to the runtime system


[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] 
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] PostgreSQL pl/java ................................ SUCCESS [0.001s]
[INFO] PL/JAVA API ....................................... FAILURE [0.631s]
[INFO] pl/java implementation ............................ SKIPPED
[INFO] pl/java deploy .................................... SKIPPED
[INFO] pl/java Ant Tasks ................................. SKIPPED
[INFO] pl/java examples .................................. SKIPPED
[INFO] pl/java server side library ....................... SKIPPED
[INFO] pl/java packaging ................................. SKIPPED
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1.549s
[INFO] Finished at: Fri Nov 21 03:11:00 PST 2014
[INFO] Final Memory: 9M/104M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile 
(default-compile) on project pljava-api: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] javac: invalid flag: -s
[ERROR] Usage: javac <options> <source files>
[ERROR] where possible options include:
[ERROR] -g                         Generate all debugging info
[ERROR] -g:none                    Generate no debugging info
[ERROR] -g:{lines,vars,source}     Generate only some debugging info
[ERROR] -nowarn                    Generate no warnings
[ERROR] -verbose                   Output messages about what the 
compiler is doing
[ERROR] -deprecation               Output source locations where 
deprecated APIs are used
[ERROR] -classpath <path>          Specify where to find user class files
[ERROR] -cp <path>                 Specify where to find user class files
[ERROR] -sourcepath <path>         Specify where to find input source files
[ERROR] -bootclasspath <path>      Override location of bootstrap class 
files
[ERROR] -extdirs <dirs>            Override location of installed extensions
[ERROR] -endorseddirs <dirs>       Override location of endorsed 
standards path
[ERROR] -d <directory>             Specify where to place generated 
class files
[ERROR] -encoding <encoding>       Specify character encoding used by 
source files
[ERROR] -source <release>          Provide source compatibility with 
specified release
[ERROR] -target <release>          Generate class files for specific VM 
version
[ERROR] -version                   Version information
[ERROR] -help                      Print a synopsis of standard options
[ERROR] -X                         Print a synopsis of nonstandard options
[ERROR] -J<flag>                   Pass <flag> directly to the runtime 
system
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the 
command
[ERROR]   mvn <goals> -rf :pljava-api

(and I verified, thats /exactly/ the error that the 1.5 javac gives with 
a -s, so its running the right compiler.


-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast




view thread (15+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Subject: Re: [Pljava-dev] pljava on centos 6.5 64bit and postgres 9.? and java ?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox