https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78789
Bug ID: 78789 Summary: Error: no such instruction: `aesenc %xmm0,%xmm2' when compiling libgo/runtime/aeshash.c Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: ubizjak at gmail dot com CC: cmang at google dot com Target Milestone: --- libgo build currently fails on CentOS 5.11 with: libtool: compile: /home/uros/gcc-build/./gcc/xgcc -B/home/uros/gcc-build/./gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../git/gcc/libgo -I ../../../git/gcc/libgo/runtime -I../../../git/gcc/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -minline-all-stringops -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../git/gcc/libgo/../libgcc -I ../../../git/gcc/libgo/../libbacktrace -I ../../gcc/include -g -O2 -MT aeshash.lo -MD -MP -MF .deps/aeshash.Tpo -c ../../../git/gcc/libgo/runtime/aeshash.c -fPIC -DPIC -o .libs/aeshash.o /tmp/ccxm8ECk.s: Assembler messages: /tmp/ccxm8ECk.s:63: Error: no such instruction: `aesenc %xmm0,%xmm2' /tmp/ccxm8ECk.s:177: Error: no such instruction: `aesenc %xmm1,%xmm3' <... many more ...> /tmp/ccxm8ECk.s:1337: Error: no such instruction: `aesenc %xmm3,%xmm3' /tmp/ccxm8ECk.s:1343: Error: no such instruction: `aesenc %xmm2,%xmm2' gmake[2]: *** [aeshash.lo] Error 1 gmake[2]: Leaving directory `/home/uros/gcc-build/x86_64-pc-linux-gnu/libgo' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/uros/gcc-build/x86_64-pc-linux-gnu/libgo' gmake: *** [all] Error 2 Binutils 2.17 can't assemble aesenc insn. $ as --version GNU assembler 2.17.50.0.6-26.el5 20061020 The libgo build should check if AES instructions can be compiled before trying to compile runtime/aeshash.c file.