[ http://jira.codehaus.org/browse/MOJO-328?page=all ]

Brett Porter updated MOJO-328:
------------------------------

    Component: native

> native:compile failure due to invalid compile line (missing space after -o 
> option)
> ----------------------------------------------------------------------------------
>
>          Key: MOJO-328
>          URL: http://jira.codehaus.org/browse/MOJO-328
>      Project: Mojo
>         Type: Bug

>   Components: native
>  Environment: Solaris 8, Maven 2.0, Sun CC, native-maven-plugin 
> 1.0-alpha-1-SNAPSHOT
>     Reporter: Gary Collier
>     Assignee: Dan Tran
>     Priority: Blocker
>      Fix For: 1.0

>
>
> native:compile fails because the generated compilation command line does not 
> leave a space between the -o switch and the subsequent object file name. This 
> is demonstrated by the pom file and mvn:compile output below.
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>MQ</groupId>
>   <artifactId>MQ</artifactId>
>   <name>Man Quant</name>
>   <packaging>so</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <url>http://maven.apache.org</url>
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>native-maven-plugin</artifactId>
>         <version>1.0-alpha-1-SNAPSHOT</version>
>         <extensions>true</extensions>
>         <configuration>
>           <compilerProvider>generic</compilerProvider>
>           <compilerExecutable>CC</compilerExecutable>
>           <linkerExecutable>CC</linkerExecutable>
>           <compilerStartOptions>
>              <compilerStartOption>-g -Kpic</compilerStartOption>
>           </compilerStartOptions>
>           <linkerStartOptions>
>              <linkerStartOption>-b -G</linkerStartOption>
>           </linkerStartOptions>
>           <sources>
>              <source>
>                 <directory>src/main/src</directory>
>                 <fileNames>
>                   <fileName>MQCommon.cc</fileName>
>                 </fileNames>
>              </source>
>              <source>
>                <directory>src/main/include/mq</directory>
>              </source>
>           </sources>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> <repositories>
>   <repository>
>     <id>Maven Snapshots</id>
>     <url>http://snapshots.maven.codehaus.org/maven2/</url>
>     <snapshots>
>       <enabled>true</enabled>
>     </snapshots>
>     <releases>
>       <enabled>false</enabled>
>     </releases>
>   </repository>
> </repositories>
> <pluginRepositories>
>   <pluginRepository>
>     <id>Maven Snapshots</id>
>     <url>http://snapshots.maven.codehaus.org/maven2/</url>
>     <snapshots>
>       <enabled>true</enabled>
>     </snapshots>
>     <releases>
>       <enabled>false</enabled>
>     </releases>
>   </pluginRepository>
> </pluginRepositories>
> </project>
> $ mvn native:compile
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'native'.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building Man Quant
> [INFO]    task-segment: [native:compile]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [native:compile]
> [INFO] CC -g -Kpic -I/users/is/gcollier/SubversionWorking/MQ/src/main/src 
> -I/users/is/gcollier/SubversionWorking/MQ/src/main/include/mq 
> -o/users/is/gcollier/SubversionWorking/MQ/target/MQCommon.o -c 
> /users/is/gcollier/SubversionWorking/MQ/src/main/src/MQCommon.cc
> CC: Warning: Option 
> -o/users/is/gcollier/SubversionWorking/MQ/target/MQCommon.o passed to ld, if 
> ld is invoked, ignored otherwise
> [INFO] 
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Internal error: 
> /users/is/gcollier/SubversionWorking/MQ/target/MQCommon.o not found after 
> successfull compilation.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Mon Mar 06 12:09:10 GMT 2006
> [INFO] Final Memory: 4M/184M
> [INFO] 
> ----------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to