Subject: Re: [Pljava-dev] Build Fails on Windows 7 References: <56C41C5B.9000809@lucee.org> <56C4D516.9010403@hogranch.com> <56C4D8C4.4010809@anastigmatix.net> <56C50E87.4070008@lucee.org> <56C51150.1070708@anastigmatix.net> From: "Igal @ Lucee.org" Message-ID: <56C54EE0.2080905@lucee.org> Date: Wed, 17 Feb 2016 20:56:00 -0800 MIME-Version: 1.0 In-Reply-To: <56C51150.1070708@anastigmatix.net> Content-Type: multipart/mixed; boundary="------------040707060605090705010500" This is a multi-part message in MIME format. --------------040707060605090705010500 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 2/17/2016 4:33 PM, Chapman Flack wrote: > > It turns out nar-maven-plugin isn't as smart as I believed it > to be. I had thought it would do some sort of linker discovery > to find out if you were using MSVC or g++ ... but no ... it > simply has a configuration file that lists default linkers > for different arch-OS combinations: > > https://github.com/maven-nar/nar-maven-plugin/blob/7ba6ca9f3fc4385d360a8f326d20322cea1118a8/src/main/resources/com/github/maven_nar/aol.properties#L85 > > ... that is, if you're on amd64-windows, it just *assumes* you > are using msvc, unless you tell it otherwise. > > You might try editing pljava-so/pom.xml, finding the > section, and adding g++ inside it. I wasn't sure to which I should add it, so for good measure I added g++ to all three occurrences of (even though the first one if for Mac OS X and is obviously unrelated). > That will probably not lead directly to a successful build > (there will be more things to fix, remember you're the first > to try this), but I would like to know if it gets you past the > "cannot deduce version" error, and what breaks next. :) So we made some progress, as you anticipated, and now the error is (full output attached): [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:497) 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) --------------040707060605090705010500 Content-Type: text/x-moz-deleted; name="Deleted: pljava-mvn-03.log" Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="Deleted: pljava-mvn-03.log" X-Mozilla-Altered: AttachmentDeleted; date="Tue Aug 16 21:20:29 2016" You deleted an attachment from this message. The original MIME headers for the attachment were: Content-Type: text/plain; charset=UTF-8; name="pljava-mvn-03.log" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pljava-mvn-03.log" --------------040707060605090705010500--