2016-07-15 1 views
0

最近Mac OS X版をEl Captionにアップグレードしました。私は「コマンドラインツール」でxcode-select -installを使って問題を解決しました。Mac版(El Caption)で「movq」の接尾辞やオペランドが無効なmavenビルドが失敗する

私は現在次のgccバージョンを持っています

組み込み仕様を使用しています。 COLLECT_GCC = GCC COLLECT_LTO_WRAPPER =は/ usr/local/libexecに/ GCC/x86_64のアップル-darwin15.0.0/5.3.0/LTO-ラッパー ターゲット:で設定x86_64版、アップル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ホーム:/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 OS名:「mac os x」、バージョン:「10.11。 4 "、arch:" x86_64 "、family:" mac "

私は自分の.protoファイルを持つmavenプロジェクトを持っており、それぞれの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

--disable-asmパラメータで構築してください。

+1

mvnコマンドの一部として "--diable-asm"を追加できません。どのように使って正確に教えてもらえますか? – user2568115

関連する問題