{"action":"created","issue":{"url":"https://api.github.com/repos/simonfuhrmann/mve/issues/359","repository_url":"https://api.github.com/repos/simonfuhrmann/mve","labels_url":"https://api.github.com/repos/simonfuhrmann/mve/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/simonfuhrmann/mve/issues/359/comments","events_url":"https://api.github.com/repos/simonfuhrmann/mve/issues/359/events","html_url":"https://github.com/simonfuhrmann/mve/issues/359","id":239554595,"number":359,"title":"error: inlining failed in call to always_inline ‘long long int _mm_popcnt_u64(long long unsigned int)’: target specific option mismatch","user":{"login":"ckorn","id":1178591,"avatar_url":"https://avatars1.githubusercontent.com/u/1178591?v=3","gravatar_id":"","url":"https://api.github.com/users/ckorn","html_url":"https://github.com/ckorn","followers_url":"https://api.github.com/users/ckorn/followers","following_url":"https://api.github.com/users/ckorn/following{/other_user}","gists_url":"https://api.github.com/users/ckorn/gists{/gist_id}","starred_url":"https://api.github.com/users/ckorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckorn/subscriptions","organizations_url":"https://api.github.com/users/ckorn/orgs","repos_url":"https://api.github.com/users/ckorn/repos","events_url":"https://api.github.com/users/ckorn/events{/privacy}","received_events_url":"https://api.github.com/users/ckorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-06-29T17:29:50Z","updated_at":"2017-07-06T08:47:20Z","closed_at":null,"body":"Hi,\r\n\r\non Ubuntu 17.04 there is this compilation error:\r\n```\r\ng++ -g -O2 -fdebug-prefix-map=/home/korn/packages/mve/mve-0.0.0+git20170629=. -fstack-protector-strong -Wformat -Werror=format-security -pthread -I../../libs -fopenmp -Wdate-time -D_FORTIFY_SOURCE=2 -c -o pose_p3p.o pose_p3p.cc\r\nIn file included from ../../libs/sfm/cascade_hashing.h:20:0,\r\n                 from cascade_hashing.cc:14:\r\n/usr/lib/gcc/x86_64-linux-gnu/6/include/popcntintrin.h: In member function ‘void sfm::CascadeHashing::collect_features_from_buckets(std::vector<std::vector<unsigned int> >*, size_t, std::vector<bool>*, const BucketGroupsBuckets&, const BucketGroupsFeatures&, const uint64_t*, const std::vector<long unsigned int, std::allocator<long unsigned int> >&) const [with int DIMHASH = 128]’:\r\n/usr/lib/gcc/x86_64-linux-gnu/6/include/popcntintrin.h:42:1: error: inlining failed in call to always_inline ‘long long int _mm_popcnt_u64(long long unsigned int)’: target specific option mismatch\r\n _mm_popcnt_u64 (unsigned long long __X)\r\n ^~~~~~~~~~~~~~\r\nIn file included from cascade_hashing.cc:14:0:\r\n../../libs/sfm/cascade_hashing.h:452:47: note: called from here\r\n                 hamming_dist += _mm_popcnt_u64(comp_hash_data1[k] ^ ptr2[k]);\r\n                                 ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nIn file included from ../../libs/sfm/cascade_hashing.h:20:0,\r\n                 from cascade_hashing.cc:14:\r\n/usr/lib/gcc/x86_64-linux-gnu/6/include/popcntintrin.h:42:1: error: inlining failed in call to always_inline ‘long long int _mm_popcnt_u64(long long unsigned int)’: target specific option mismatch\r\n```"},"comment":{"url":"https://api.github.com/repos/simonfuhrmann/mve/issues/comments/313335236","html_url":"https://github.com/simonfuhrmann/mve/issues/359#issuecomment-313335236","issue_url":"https://api.github.com/repos/simonfuhrmann/mve/issues/359","id":313335236,"user":{"login":"andre-schulz","id":7137149,"avatar_url":"https://avatars2.githubusercontent.com/u/7137149?v=3","gravatar_id":"","url":"https://api.github.com/users/andre-schulz","html_url":"https://github.com/andre-schulz","followers_url":"https://api.github.com/users/andre-schulz/followers","following_url":"https://api.github.com/users/andre-schulz/following{/other_user}","gists_url":"https://api.github.com/users/andre-schulz/gists{/gist_id}","starred_url":"https://api.github.com/users/andre-schulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andre-schulz/subscriptions","organizations_url":"https://api.github.com/users/andre-schulz/orgs","repos_url":"https://api.github.com/users/andre-schulz/repos","events_url":"https://api.github.com/users/andre-schulz/events{/privacy}","received_events_url":"https://api.github.com/users/andre-schulz/received_events","type":"User","site_admin":false},"created_at":"2017-07-06T08:47:20Z","updated_at":"2017-07-06T08:47:20Z","body":"As @flanggut guessed correctly, `_mm_popcnt_u64()` is only available when compiling a 64-bit binary (see `popcntintrin.h`). AFAIK, compiling MVE in 32-bit mode is not supported. Is that correct, @simonfuhrmann?\r\n"}}
{"actor":{"display_login":"andre-schulz"}}