{"action":"created","issue":{"url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/2146","repository_url":"https://api.github.com/repos/magnumripper/JohnTheRipper","labels_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/2146/labels{/name}","comments_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/2146/comments","events_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/2146/events","html_url":"https://github.com/magnumripper/JohnTheRipper/issues/2146","id":157487008,"number":2146,"title":"[bleeding-jumbo] i686 compile errors using automake and >= sse4 (sse4, avx, xop...) in gost3411-2012-sse41_plug.c","user":{"login":"anthraxx","id":203012,"avatar_url":"https://avatars.githubusercontent.com/u/203012?v=3","gravatar_id":"","url":"https://api.github.com/users/anthraxx","html_url":"https://github.com/anthraxx","followers_url":"https://api.github.com/users/anthraxx/followers","following_url":"https://api.github.com/users/anthraxx/following{/other_user}","gists_url":"https://api.github.com/users/anthraxx/gists{/gist_id}","starred_url":"https://api.github.com/users/anthraxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthraxx/subscriptions","organizations_url":"https://api.github.com/users/anthraxx/orgs","repos_url":"https://api.github.com/users/anthraxx/repos","events_url":"https://api.github.com/users/anthraxx/events{/privacy}","received_events_url":"https://api.github.com/users/anthraxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-30T11:44:41Z","updated_at":"2016-06-17T19:58:16Z","closed_at":null,"body":"Hi, I'm a packager and want to provide a package that uses the CPU fallbacks, therefor I want to compile john for various instruction sets (generic, mmx, sse2, avx, xop).\r\nFor x86_64 everything works fine but if I try to compile for i686 then I get compile errors when the sse4 instruction sets are used (f.e. for the avx and xop builds).\r\nNote 1: For testing reasons I have disabled openmp because it brings up some different kind of problems, will open a separate bug ticket for that.\r\nNote 2: This only happens with bleeding-jumbo, the jumbo1 release works in this constellation \r\nNote 3: This only happens with the automake build env, using the Makefile.legacy still works\r\nNote 4: gcc (GCC) 6.1.1 20160501\r\nNote 5: The i686 build is done inside a 32bit chroot for packaging, therefor no -m32 is required\r\n    \r\n    ./configure --prefix=/usr --disable-native-tests CFLAGS=\"-mavx\" CPPFLAGS=\"-mavx\" --host=i686 --disable-openmp && make clean && make -j12\r\n    [...]\r\n    In file included from gost3411-2012-sse41_plug.c:5:0:\r\n    gost3411-2012-sse41_plug.c: In function ‘my__mm_insert_epi64’:\r\n    gost3411-2012-sse41_plug.c:25:6: error: selector must be an integer constant in the range 0..3\r\n      a = _mm_insert_epi32(a, (unsigned int)b, c);\r\n          ^\r\n    gost3411-2012-sse41_plug.c:26:9: error: selector must be an integer constant in the range 0..3\r\n      return _mm_insert_epi32(a, (unsigned int)(b >> 32), c + 1);\r\n             ^\r\n\r\nhowever when running with legacy:\r\n    \r\n    make -f Makefile.legacy linux-x86-avx\r\n    [...]\r\n    All done\r\n    \r\nand running automake with SSE2 (which dies not pull in the SSE4.1 stuff):\r\n    \r\n    ./configure --prefix=/usr --disable-native-tests CFLAGS=\"-msse2\" CPPFLAGS=\"-msse2\" --host=i686 --disable-openmp && make clean && make -j12\r\n    [...]\r\n    Make process completed.\r\n    \r\n\r\nI have checked the used instructions via objdump and it indeed uses AVX instructions.\r\n\r\nPS: maybe this could be solved before jumbo2 ? :smile_cat: "},"comment":{"url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/comments/226867117","html_url":"https://github.com/magnumripper/JohnTheRipper/issues/2146#issuecomment-226867117","issue_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/2146","id":226867117,"user":{"login":"magnumripper","id":1268598,"avatar_url":"https://avatars.githubusercontent.com/u/1268598?v=3","gravatar_id":"","url":"https://api.github.com/users/magnumripper","html_url":"https://github.com/magnumripper","followers_url":"https://api.github.com/users/magnumripper/followers","following_url":"https://api.github.com/users/magnumripper/following{/other_user}","gists_url":"https://api.github.com/users/magnumripper/gists{/gist_id}","starred_url":"https://api.github.com/users/magnumripper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnumripper/subscriptions","organizations_url":"https://api.github.com/users/magnumripper/orgs","repos_url":"https://api.github.com/users/magnumripper/repos","events_url":"https://api.github.com/users/magnumripper/events{/privacy}","received_events_url":"https://api.github.com/users/magnumripper/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T19:58:16Z","updated_at":"2016-06-17T19:58:16Z","body":"Was this solved by using setarch? Please close if so."}}
{"actor":{"display_login":"magnumripper"}}