c++11 - Assembler Messages: no such instruction when Compiling C++ -
i attempting compile c++ code using gcc/5.3 on scientific linux release 6.7. keep getting following errors whenever run makefile though:
/tmp/ccjzqied.s: assembler messages: /tmp/ccjzqied.s:768: error: no such instruction: `shlx %rax,%rdx,%rdx' /tmp/ccjzqied.s:1067: error: no such instruction: `shlx %rax,%rdx,%rdx' /tmp/ccjzqied.s: assembler messages: /tmp/ccjzqied.s:6229: error: no such instruction: `mulx %r10,%rcx,%rbx' /tmp/ccjzqied.s:6248: error: no such instruction: `mulx %r13,%rcx,%rbx' /tmp/ccjzqied.s:7109: error: no such instruction: `mulx %r10,%rcx,%rbx' /tmp/ccjzqied.s:7128: error: no such instruction: `mulx %r13,%rcx,%rbx'
i've attmpted follow advice question no change output: compile errors assembler messages
my compiler options currently:
cxxflags = -g -wall -o0 -pg -std=c++11
does have idea causing this?
this means gcc outputting instruction assembler doesn't support. either that's coming inline asm
in source code, or shouldn't happen, , suggests have compiled gcc on different machine newer assembler, copied machine doesn't work properly.
assuming instructions aren't used explicitly in asm
statement should able tell gcc not emit instructions suitable flag such -mno-avx
(or whatever flag appropriate disable use of particular instructions).
Comments
Post a Comment