Subject: Re: [Pljava-dev] Building PLJava on Solaris issues References: <56F170BA.2000202@goldencode.com> <56F1FC23.1010904@anastigmatix.net> From: "Eugenie V. Lyzenko" Message-ID: <56F2D1C0.6060801@goldencode.com> Date: Wed, 23 Mar 2016 20:26:24 +0300 MIME-Version: 1.0 In-Reply-To: <56F1FC23.1010904@anastigmatix.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello, Chap, > On 03/22/16 12:20, Eugenie V. Lyzenko wrote: > >> > > > On Solaris 10, I do believe both bash and ksh are available, but simply > not the default shell, so a lazier solution to (1), with no need to edit > the script, is simply to run it with bash or ksh ... that is, instead of > > mvn clean install > > use > > bash path/to/mvn clean install Yes, this works. > (replacing "path/to/mvn" with the correct path). Or ksh, if for some > reason your Solaris 10 installation is missing bash. > > To avoid editing the script to add a new MAVEN_JAVA_RUN_ENV variable, > I would suggest simply setting the existing variable MAVEN_OPTS=-Xss2m > instead, the same technique we currently suggest on the "Building with > a 32-bit JDK" topic page. > > Speaking of that topic page, I am not sure from your message whether you > were using a 32-bit or 64-bit JVM. If it was 64-bit that is somewhat > surprising, I have not seen a report of the default stack being too > small on 64-bit before. Also, did you try -Xss1m first and find it too > small, but 2m works? I may need to increase the suggestion in the docs. Interesting but now I can compile with default stack size(is 1024k for 64-bit Solaris). I have assigned more memory to the system so may be this is the root. One I can tell for sure is I faced this memory issue and it was resolved by stack size change. But may be this is temporary OS bug or something else.. > Could you attach the output of 'bash path/to/mvn -v' ? $ bash mvn -v Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00) Maven home: /usr/share/maven-339 Java version: 1.8.0_74, vendor: Oracle Corporation Java home: /usr/jdk/instances/jdk1.8.0_74/jre Default locale: en_US, platform encoding: ISO8859-1 OS name: "sunos", version: "5.10", arch: "amd64", family: "unix" > Turning to the aol.properties file, I think the simpler approach is > to create a file that has only your sparc, sparcv9, amd64 gpp additions, > and instead of inserting it into the plugin jar file, simply specify > the file location using the nar.aolProperties property, as in: > > bash path/to/mvn -Dnar.aolProperties=path/to/propfile clean install > > so I think that is how I will suggest it for a Solaris 10 build page. > Would you be willing to try that way and see if it works? > > MAVEN_OPTS=-Xss2m bash path/to/mvn -Dnar.aolProperties=... clean install Yes, this works too, no need to patch *.jar file: bash path/to/mvn -Dnar.aolProperties=... clean install and get everything compiled with custom CC=gcc. The setting MAVEN_OPTS=-Xss2mins optional in case of not enough stack memory issues. > > Do not feel bad if you did not notice nar.aolProperties in the nar > documentation, it's not there. :) I only found it by reading the code. > > Regards, > -Chap Regards, Eugenie. Software developer, Golden Code Development Corporation(www.goldencode.com)