{"action":"created","issue":{"url":"https://api.github.com/repos/WizTeam/WizQTClient/issues/307","labels_url":"https://api.github.com/repos/WizTeam/WizQTClient/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/WizTeam/WizQTClient/issues/307/comments","events_url":"https://api.github.com/repos/WizTeam/WizQTClient/issues/307/events","html_url":"https://github.com/WizTeam/WizQTClient/issues/307","id":69775898,"number":307,"title":"fedora编译cryptopp失败","user":{"login":"1dot75cm","id":8544397,"avatar_url":"https://avatars.githubusercontent.com/u/8544397?v=3","gravatar_id":"","url":"https://api.github.com/users/1dot75cm","html_url":"https://github.com/1dot75cm","followers_url":"https://api.github.com/users/1dot75cm/followers","following_url":"https://api.github.com/users/1dot75cm/following{/other_user}","gists_url":"https://api.github.com/users/1dot75cm/gists{/gist_id}","starred_url":"https://api.github.com/users/1dot75cm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1dot75cm/subscriptions","organizations_url":"https://api.github.com/users/1dot75cm/orgs","repos_url":"https://api.github.com/users/1dot75cm/repos","events_url":"https://api.github.com/users/1dot75cm/events{/privacy}","received_events_url":"https://api.github.com/users/1dot75cm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-21T08:01:45Z","updated_at":"2015-04-22T09:09:38Z","closed_at":null,"body":"环境：fedora 21 x86_64, gcc 4.9.2\r\n版本：https://github.com/WizTeam/WizQTClient/commit/ec94b93c1f1cfae8a879b0e2552ef0ffa486754d , https://github.com/WizTeam/WizQTClient/commit/2e51f137025f8e809f9c5d89b554d013a79bb705\r\n编译命令：cmake -DWIZNOTE_USE_QT5=ON -DCMAKE_BUILD_TYPE=Release && make -j4\r\n错误信息：\r\nIn file included from WizQTClient/lib/cryptopp/whrlpool.cpp:69:0:\r\nWizQTClient/lib/cryptopp/cpu.h: 在函数‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’中:\r\nWizQTClient/lib/cryptopp/cpu.h:24:1: 错误：‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’ 重定义\r\n _mm_shuffle_epi8 (__m128i a, __m128i b)\r\n ^\r\nIn file included from /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/x86intrin.h:37:0,\r\n                 from /usr/include/c++/4.9.2/x86_64-redhat-linux/bits/opt_random.h:33,\r\n                 from /usr/include/c++/4.9.2/random:50,\r\n                 from /usr/include/c++/4.9.2/bits/stl_algo.h:66,\r\n                 from /usr/include/c++/4.9.2/algorithm:62,\r\n                 from /WizQTClient/lib/cryptopp/stdcpp.h:18,\r\n                 from /WizQTClient/lib/cryptopp/cryptlib.h:83,\r\n                 from /WizQTClient/lib/cryptopp/iterhash.h:4,\r\n                 from /WizQTClient/lib/cryptopp/whrlpool.h:5,\r\n                 from /WizQTClient/lib/cryptopp/whrlpool.cpp:67:\r\n/usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/tmmintrin.h:136:1: 附注：‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’已在此定义过\r\n _mm_shuffle_epi8 (__m128i __X, __m128i __Y)\r\n ^\r\nIn file included from /WizQTClient/lib/cryptopp/whrlpool.cpp:69:0:\r\n/WizQTClient/lib/cryptopp/cpu.h: 在函数‘int _mm_extract_epi32(__m128i, int)’中:\r\n/WizQTClient/lib/cryptopp/cpu.h:34:1: 错误：‘int _mm_extract_epi32(__m128i, int)’ 重定义\r\n _mm_extract_epi32 (__m128i a, const int i)\r\n ^\r\nIn file included from /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/x86intrin.h:41:0,\r\n                 from /usr/include/c++/4.9.2/x86_64-redhat-linux/bits/opt_random.h:33,\r\n                 from /usr/include/c++/4.9.2/random:50,\r\n                 from /usr/include/c++/4.9.2/bits/stl_algo.h:66,\r\n                 from /usr/include/c++/4.9.2/algorithm:62,\r\n                 from /WizQTClient/lib/cryptopp/stdcpp.h:18,\r\n                 from /WizQTClient/lib/cryptopp/cryptlib.h:83,\r\n                 from /WizQTClient/lib/cryptopp/iterhash.h:4,\r\n                 from /WizQTClient/lib/cryptopp/whrlpool.h:5,\r\n                 from /WizQTClient/lib/cryptopp/whrlpool.cpp:67:\r\n/usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/smmintrin.h:447:1: 附注：‘int _mm_extract_epi32(__m128i, int)’已在此定义过\r\n _mm_extract_epi32 (__m128i __X, const int __N)\r\n ^\r\n\r\n尝试修改WizQTClient/lib/cryptopp/cpu.h 去除重定义的部分，报以下错误：\r\n/usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/wmmintrin.h: 在函数‘__m128i CryptoPP::CLMUL_Reduce(__m128i, __m128i, __m128i, const __m128i&)’中:\r\n/usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/wmmintrin.h:116:1: 错误：inlining failed in call to always_inline ‘__m128i _mm_clmulepi64_si128(__m128i, __m128i, int)’: target specific option mismatch\r\n _mm_clmulepi64_si128 (__m128i __X, __m128i __Y, const int __I)\r\n ^\r\nWizQTClient/lib/cryptopp/gcm.cpp:107:58: 错误：从此处调用\r\n  c1 = _mm_xor_si128(c1, _mm_clmulepi64_si128(c0, r, 0x10));\r\n                                                          ^\r\nIn file included from /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/x86intrin.h:43:0,\r\n...\r\n                 from /WizQTClient/lib/cryptopp/gcm.cpp:10:\r\n/usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/wmmintrin.h:116:1: 错误：inlining failed in call to always_inline ‘__m128i _mm_clmulepi64_si128(__m128i, __m128i, int)’: target specific option mismatch\r\n _mm_clmulepi64_si128 (__m128i __X, __m128i __Y, const int __I)\r\n ^\r\n/home/mosquito/rpmbuild/BUILD/WizQTClient/lib/cryptopp/gcm.cpp:111:37: 错误：从此处调用\r\n  c0 = _mm_clmulepi64_si128(c0, r, 0);\r\n                                     ^"},"comment":{"url":"https://api.github.com/repos/WizTeam/WizQTClient/issues/comments/95084431","html_url":"https://github.com/WizTeam/WizQTClient/issues/307#issuecomment-95084431","issue_url":"https://api.github.com/repos/WizTeam/WizQTClient/issues/307","id":95084431,"user":{"login":"1dot75cm","id":8544397,"avatar_url":"https://avatars.githubusercontent.com/u/8544397?v=3","gravatar_id":"","url":"https://api.github.com/users/1dot75cm","html_url":"https://github.com/1dot75cm","followers_url":"https://api.github.com/users/1dot75cm/followers","following_url":"https://api.github.com/users/1dot75cm/following{/other_user}","gists_url":"https://api.github.com/users/1dot75cm/gists{/gist_id}","starred_url":"https://api.github.com/users/1dot75cm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1dot75cm/subscriptions","organizations_url":"https://api.github.com/users/1dot75cm/orgs","repos_url":"https://api.github.com/users/1dot75cm/repos","events_url":"https://api.github.com/users/1dot75cm/events{/privacy}","received_events_url":"https://api.github.com/users/1dot75cm/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T09:09:38Z","updated_at":"2015-04-22T09:09:38Z","body":"centos 7 暂未测试，一会测试下。\r\n我看ppa上的编译日志[buildlog_ubuntu-precise-amd64.wiznote_2.1.17_BUILDING.txt.gz](https://launchpadlibrarian.net/202337864/buildlog_ubuntu-precise-amd64.wiznote_2.1.17_BUILDING.txt.gz)，gcc 用的是 gcc-4.6_4.6.3-1ubuntu5 会有影响么？"}}