我最近将Mac os X版本升级到El Caption。我还修复了“命令行工具”(通过xcode-select --install)的问题。maven版本(带有nar-packaging类型)在Mac(El Caption)中失败,后缀或操作数对'movq'无效
我目前有以下gcc版本
使用内置规格。 COLLECT_GCC = gcc COLLECT_LTO_WRAPPER =/usr/local/libexec/gcc/x86_64 -app-darwin15.0.0/5.3.0/lto-wrapper 目标:x86_64-apple-darwin15.0.0 配置:../gcc- 5.3.0 /配置--enable-语言= 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.5 Java版本:1.7.0_79,供应商:Oracle Corporation Java主页:/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre 默认语言环境:en_US,平台编码:UTF-8 操作系统名称:“mac os x”,版本:“10.11。 4“,拱:”x86_64“,家族:”mac“
我有一个maven项目,我有我的.proto文件,我尝试创建各自的C++文件。 proto文件或pom.xml没有问题(因为它可以与以前版本的Mac OS X一起使用)。
现在,当我尝试构建项目(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
我是否缺少配置?
我不能将“--diable-asm”作为mvn命令的一部分加入。你能告诉我如何使用它吗? – user2568115