我最近将Mac OS X版本升级为El Caption。我还用"命令行工具"修复了问题。 (通过xcode-select --install)。
我目前有以下gcc版本
使用内置规格。 COLLECT_GCC = GCC COLLECT_LTO_WRAPPER =的/ usr /本地/的libexec / GCC / x86_64的-苹果darwin15.0.0 / 5.3.0 / LTO-包装 目标:x86_64-apple-darwin15.0.0 配置为:../ gcc-5.3.0/configure --enable-languages = fortran,c,c ++ 线程模型:posix gcc版本5.3.0(GCC)
这是我的mvn config
Apache Maven 3.2.5(12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T22:59:23 + 05:30) Maven主页:/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",arch:" x86_64",family:" 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
我错过了任何配置吗?
答案 0 :(得分:0)
尝试使用--disable-asm
参数构建它。