Re: [Pljava-dev] Build Fails on Windows 7

From: "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org>
To:
Subject: Re: [Pljava-dev] Build Fails on Windows 7
Date: 2016-02-18 04:56:00
Message-ID: 56C54EE0.2080905@lucee.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

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
> <linker> section, and adding <name>g++</name> inside it.
I wasn't sure to which <linker> I should add it, so for good measure I
added <name>g++</name> to all three occurrences of <linker> (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)

Attachment Content-Type Size
Deleted: pljava-mvn-03.log text/x-moz-deleted 261 bytes

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Igal @ Lucee.org 2016-02-18 05:16:51 Re: [Pljava-dev] Build Fails on Windows 7
Previous Message John R Pierce 2016-02-17 20:42:06 Re: [Pljava-dev] Build Fails on Windows 7