public inbox for [email protected]  
help / color / mirror / Atom feed
From: Igal @ Lucee.org <[email protected]>
Subject: Re: [Pljava-dev] Build Fails on Windows 7
Date: Wed, 17 Feb 2016 20:56:00 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>

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...
>
> ... 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)


Attachments:

  [text/x-moz-deleted] Deleted: pljava-mvn-03.log (261B, ../[email protected]/2-Deleted:%20pljava-mvn-03.log)
  download | inline:
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"


view thread (23+ 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]
  Cc: [email protected]
  Subject: Re: [Pljava-dev] Build Fails on Windows 7
  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