首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >maven构建(使用nar-packaging-type)在Mac (El标题)中失败,后缀或操作数对于‘`movq’无效

maven构建(使用nar-packaging-type)在Mac (El标题)中失败,后缀或操作数对于‘`movq’无效
EN

Stack Overflow用户
提问于 2016-07-15 19:58:07
回答 1查看 74关注 0票数 0

我最近将我的Mac os X版本升级到了El Caption。我还修复了“命令行工具”的问题(通过xcode-select --install)。

我目前有如下的gcc版本

使用内置规范。COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.0.0/5.3.0/lto-wrapper目标:x86_64- COLLECT_GCC=gcc -darwin15.0.0配置:../ gcc - 5.3.0 /configure --enable-languages=fortran,c,c++线程型号: posix GCC 5.3.0版(GCC)

这是我的mvn配置

Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;2014-12-14T22:59:23+05:30) Maven home: /Users/vino/Downloads/apache-maven-3.2.5Java版本: /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre,供应商: Oracle Corporation Java home: 1.7.0_79默认区域设置: en_US,平台编码: UTF-8操作系统名称:"mac OS x",版本:"10.11.4",arch:"x86_64",family:"mac“

我有一个maven项目,其中有我的.proto文件,并且我尝试创建各自的c++文件。proto文件或pom.xml没有问题(因为它在以前版本的Mac上工作得很好)。

现在,当我尝试构建项目(mvn clean install -P nar-packaging type)时,我得到了以下错误。

代码语言:javascript
复制
[INFO] Compiling 3 native files
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:8123:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:8125:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:11711:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:11713:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:41590:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:43291:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:43294:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:43744:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:43823:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:45369:suffix or operands invalid for `movq'
[ERROR] /var/folders/vz/rzm109gn1cb7tpwr5zs4_mpw0000gn/T//ccfJP4vJ.s:45371:suffix or operands invalid for `movq'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.054 s
[INFO] Finished at: 2016-07-15T16:46:38+05:30
[INFO] Final Memory: 17M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-nar-plugin:2.1-SNAPSHOT:nar-compile (default-nar-compile) on project gpbmessages: NAR: Compile failed: g++ failed with return code 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

我是否遗漏了任何配置?

EN

回答 1

Stack Overflow用户

发布于 2016-07-15 20:02:43

尝试使用--disable-asm参数构建它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38395566

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档