{"action":"created","issue":{"url":"https://api.github.com/repos/libressl-portable/openbsd/issues/40","repository_url":"https://api.github.com/repos/libressl-portable/openbsd","labels_url":"https://api.github.com/repos/libressl-portable/openbsd/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/libressl-portable/openbsd/issues/40/comments","events_url":"https://api.github.com/repos/libressl-portable/openbsd/issues/40/events","html_url":"https://github.com/libressl-portable/openbsd/issues/40","id":101274360,"node_id":"MDU6SXNzdWUxMDEyNzQzNjA=","number":40,"title":"LibreSSL 2.2.2 compile fails with \"Error: no such instruction\" on KVM Virtual CPU","user":{"login":"sysfu","id":829699,"node_id":"MDQ6VXNlcjgyOTY5OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/829699?v=4","gravatar_id":"","url":"https://api.github.com/users/sysfu","html_url":"https://github.com/sysfu","followers_url":"https://api.github.com/users/sysfu/followers","following_url":"https://api.github.com/users/sysfu/following{/other_user}","gists_url":"https://api.github.com/users/sysfu/gists{/gist_id}","starred_url":"https://api.github.com/users/sysfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sysfu/subscriptions","organizations_url":"https://api.github.com/users/sysfu/orgs","repos_url":"https://api.github.com/users/sysfu/repos","events_url":"https://api.github.com/users/sysfu/events{/privacy}","received_events_url":"https://api.github.com/users/sysfu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-08-16T15:24:38Z","updated_at":"2018-11-13T16:17:47Z","closed_at":"2015-08-16T15:46:10Z","author_association":"NONE","body":"Have built many previous versions of LibreSSL on the same system without issue, so it seems the offending commit was introduced in the last release.\n\nError:\n\n```\n$ make check\nMaking check in crypto\n  CCAS     aes/aes-elf-x86_64.lo\n  CCAS     aes/bsaes-elf-x86_64.lo\n  CCAS     aes/vpaes-elf-x86_64.lo\naes/vpaes-elf-x86_64.s: Assembler messages:\naes/vpaes-elf-x86_64.s:172: Error: no such instruction: `palignr $12,%xmm5,%xmm5'\naes/vpaes-elf-x86_64.s:298: Error: no such instruction: `palignr $8,%xmm6,%xmm0'\naes/vpaes-elf-x86_64.s:436: Error: no such instruction: `palignr $15,%xmm8,%xmm1'\naes/vpaes-elf-x86_64.s:437: Error: no such instruction: `palignr $15,%xmm8,%xmm8'\naes/vpaes-elf-x86_64.s:442: Error: no such instruction: `palignr $1,%xmm0,%xmm0'\n*** Error 1 in crypto (Makefile:7479 'aes/vpaes-elf-x86_64.lo': @echo \"  CCAS    \" aes/vpaes-elf-x86_64.lo;/bin/sh ../libtool --silent    --...)\n*** Error 1 in /usr/local/src/libressl-2.2.2 (Makefile:476 'check-recursive')\n```\n\nSystem Info:\n\n```\n$ uname -a\nOpenBSD <hostname> 5.7 GENERIC#2 amd64\n$ dmesg|grep cpu\ncpu0 at mainbus0: apid 0 (boot processor)\ncpu0: Virtual CPU e7da7129d3ee, 3600.46 MHz\ncpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,RDRAND,HV,NXE,LONG,LAHF,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM\ncpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache\ncpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped\ncpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped\ncpu0: smt 0, core 0, package 0\ncpu0: apic clock running at 1000MHz\nacpicpu0 at acpi0\n```\n"},"comment":{"url":"https://api.github.com/repos/libressl-portable/openbsd/issues/comments/438327814","html_url":"https://github.com/libressl-portable/openbsd/issues/40#issuecomment-438327814","issue_url":"https://api.github.com/repos/libressl-portable/openbsd/issues/40","id":438327814,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODMyNzgxNA==","user":{"login":"romario89","id":467213,"node_id":"MDQ6VXNlcjQ2NzIxMw==","avatar_url":"https://avatars2.githubusercontent.com/u/467213?v=4","gravatar_id":"","url":"https://api.github.com/users/romario89","html_url":"https://github.com/romario89","followers_url":"https://api.github.com/users/romario89/followers","following_url":"https://api.github.com/users/romario89/following{/other_user}","gists_url":"https://api.github.com/users/romario89/gists{/gist_id}","starred_url":"https://api.github.com/users/romario89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romario89/subscriptions","organizations_url":"https://api.github.com/users/romario89/orgs","repos_url":"https://api.github.com/users/romario89/repos","events_url":"https://api.github.com/users/romario89/events{/privacy}","received_events_url":"https://api.github.com/users/romario89/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T16:17:47Z","updated_at":"2018-11-13T16:17:47Z","author_association":"NONE","body":"I use a Mac mini late 2009 w. Snow Leopard and would like to compile libressl with aes-ni. I've upgraded to latest version of GNU binutils but still I get **\"no such instruction: `aesenc %xmm1,%xmm2\"** erro during the compilation of:\r\n\r\n** CPPAS    aes/libcrypto_la-aesni-macosx-x86_64.lo**\r\n\r\nSpecifically it happens during the compilation of the 14th line of:\r\n\r\n**./crypto/aes/aesni-macosx-x86_64.S**\r\n\r\nand it begins with:\r\n\r\n    L$oop_enc1_1:\r\n    \taesenc\t%xmm1,%xmm2\r\n    \tdecl\t%eax\r\n    \tmovups\t(%rdx),%xmm1\r\n    \tleaq\t16(%rdx),%rdx\r\n    \tjnz\tL$oop_enc1_1\t\r\n    \taesenclast\t%xmm1,%xmm2\r\n    \tmovups\t%xmm2,(%rsi)\r\n    \tretq\r\n\r\nApperantly the GNU AS (Apple Inc version cctools-773~33, GNU assembler version 1.38) or the latest GNU Binutils version 2.25 are simplu unable to compile these aes-ni specific instructions.\r\n\r\n\r\nSure, I could pass this step with **\"--no-asm\"** directive but I'd like to compile it with assembly codes. The Mac mini in question does support AES-NI set because on the same exact machine with an OS X Lion harddisk, those lines got compiled in a heartbeat. So it looks like an issue with the OS. I was wondering if some configure options or some environment variables could make them compile? Any advice is appreciated. Thanks.\r\n"}}
{"actor":{"display_login":"romario89"}}