Assembler Error No Such Instruction
Contents |
here for a quick overview of the site Help Center Detailed answers to gcc no such instruction any questions you might have Meta Discuss the workings and error: no such instruction: `xtest' tbb policies of this site About Us Learn more about Stack Overflow the company Business Learn more error: no such instruction: `vinserti128 $1,%xmm0,%ymm0,%ymm0' about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community
Error No Such Instruction Vfmadd312ss
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error “no such instruction” while assembling project on Mac OS X up vote 19 down vote favorite 7 I used homebrew to install GCC 4.7.0 and my project's no such instruction: `shlx make is failing at assembly-time. I can successfully take code from .c -> .s, but .s -> .o fails. To view the brew formula used to install GCC, please look at: https://github.com/Homebrew/homebrew-dupes/blob/master/gcc.rb . I also installed binutils from upstream using https://github.com/mxcl/homebrew/blob/master/Library/Formula/binutils.rb . Install binutils does not appear to introduce a new 'as' in the /usr/local/lib or similar. How can I track down this missing instruction error? It appears the compiler is correct but the linker simply does not support these instructions. The instructions do appear to be vector instructions. xavierlange $> make suricata.o /usr/local/bin/gcc-4.7 -DHAVE_CONFIG_H -I. -I.. -I../libhtp -I/opt/local/include -v -Wextra -Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter -std=gnu99 -DOS_DARWIN -march=native -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DUNITTESTS -DREVISION="61d5fe3" -MT suricata.o -MD -MP -MF .deps/suricata.Tpo -c -o suricata.o suricata.c Using built-in specs. COLLECT_GCC=/usr/local/bin/gcc-4.7 Target: x86_64-apple-darwin11.3.0 Configured with: ../configure --enable-languages=c,c++,fortran,java,objc,obj-c++ --prefix=/usr/local/Cellar/gcc/4.7.0/gcc --datarootdir=/usr/local/Cellar/gcc/4.7.0/share --bindir=/usr/local/Cellar/gcc/4.7.0/bin --program-suffix=-4.7 --with-gmp=/usr/local/Cellar/gmp/5.0.4 --with-mpfr=/usr/local/Cellar/mpfr/3.1.0 --with-mpc=/usr/local/Cellar/libmpc/0.9 --with-system-zlib --enable-stage1-checking --enable-plugin --enable-lto --disable-multilib --disable-nls Thread model: posix gcc version 4.7.0 (G
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies "-march=" gcc of this site About Us Learn more about Stack Overflow the company
Gcc March Native
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Suffix Or Operands Invalid For `movq'
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: http://stackoverflow.com/questions/10327939/error-no-such-instruction-while-assembling-project-on-mac-os-x Sign up Assembler Messages: no such instruction when Compiling C++ up vote 0 down vote favorite I am attempting to compile a C++ code using gcc/5.3 on Scientific Linux release 6.7. I keep getting the following errors whenever I run my 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 http://stackoverflow.com/questions/38403611/assembler-messages-no-such-instruction-when-compiling-c 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 to follow the advice from this question with no change to my output: Compile errors with Assembler messages My compiler options are currently: CXXFLAGS = -g -Wall -O0 -pg -std=c++11 Does anyone have any idea what could be causing this? c++ c++11 gcc share|improve this question edited Jul 15 at 19:49 Tyler 566423 asked Jul 15 at 19:16 D.Brandyberry 11 Have you tried using -mno-avx as suggested in the other answers? –Jonathan Wakely Jul 15 at 19:21 What platform are you using? Different processors have different assembly instructions. –Thomas Matthews Jul 15 at 19:42 Please add a Minimal, Complete, and Verifiable example –MSalters Jul 15 at 20:32 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote This means that GCC is outputting an instruction that your assembler doesn't support. Either that's coming from inline asm in the source code, or that sh