2017-11-22 10 views
-3

Linux(Fedora)からWindowsへのcryptonote guiウォレットをクロスコンパイルしようとしています。エラー:always_inline '_mm_aesenc_si128'の呼び出しでインライン展開に失敗しました:ターゲット固有のオプションが一致せず、-msse4.1が足りない

任意の追加のフラグなしでコンパイルすると、私はこのエラーを取得:

In file included from /home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.c:9:0: 
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/emmintrin.h:1290:1: error: inlining failed in call to always_inline '_mm_xor_si128': target specific option mismatch 
    _mm_xor_si128 (__m128i __A, __m128i __B) 
    ^~~~~~~~~~~~~ 
/home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.c:100:11: note: called from here 
    *tmp3 = _mm_xor_si128(*tmp3, tmp4); 

私は、CおよびCXXのため-msse4.1フラグを追加しようとしました、と私はまだ同じエラーを得たが、異なる上ファイル:

In file included from 
/home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.c:10:0: 
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline '_mm_aesenc_si128': target specific option mismatch 
    _mm_aesenc_si128 (__m128i __X, __m128i __Y) 
    ^~~~~~~~~~~~~~~~ 
In file included from 
/home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.c:167:0: 
/home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.inl:159:21: note: called from here 
    xmminput[0] = _mm_aesenc_si128(xmminput[0], expkey[j]); 

なぜソリューションは最初のファイルで機能しましたが、現在ブロックしていますか? ありがとう!

答えて

0

同じエラーは発生しませんでした。 2 の完全に異なるエラーがあります。最初のインライン化の失敗は、-msse4.1を追加して解決したSSE-の128ビットXOR命令です。 2番目はAES NIですが、私はあなたが必要と信じています-maes

+0

これは今、ありがとう! – EStt

関連する問題