我最近将我的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)时,我得到了以下错误。
[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我是否遗漏了任何配置?
发布于 2016-07-15 20:02:43
尝试使用--disable-asm参数构建它。
https://stackoverflow.com/questions/38395566
复制相似问题