New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation error: suffix or operands invalid for `movq' #406
Comments
I've never tried to install with GCC 5.2, and this is a new one. What happens if you use 4.9? |
same error, the warnings are slightly different: make failed, exit code 2 |
Googling around for this error, it only seems to occur when a project has some inline assembly code, which nmatrix doesn't have, so that's a little puzzling. It seems like this error sometimes comes from some sort of 32- vs 64-bit incompatibility, but these days I think OS X is always purely 64-bit, so that also doesn't really make sense. @dimidd, does the .s file in /var/folders still exist after you finish building? You could try to look at it, or upload (a snippet of) it for us to look. Hopefully it will provide some clue as to where this is coming from. |
@wlevine, unfortunately no. Perhaps I should put a breakpoint in |
There should be an option to get gcc to output the assembly. On Thu, Nov 12, 2015 at 10:23 AM, dimidd notifications@github.com wrote:
|
The makefile has a lots of flags variables, where should I add |
Sorry for the slow response. You can add it to CFLAGS and CPPFLAGS. Then when you run make you should end up with some ".o" files that are actually not object files, but assembly files in disguise. You can run |
@dimidd Have you had any luck? I can try this week if you're still struggling. |
Sorry for the late response, I had a problem installing ATLAS. I've finally managed to install using macports, and added
This may be relevant: |
This kind of stuff seems to happen when linking between things compiled by different compilers. I'm not sure why I didn't mention that before. I may have only just recognized the error. |
I tried installing using
gem install nmatrix
on osx, using gcc 5.2.0.In file included from nmatrix.cpp:283:0:
ruby_nmatrix.c: In function 'VALUE nm_reshape_bang(VALUE, VALUE)':
ruby_nmatrix.c:1117:11: warning: unused variable 'elem' [-Wunused-variable]
void* elem = s->elements;
^
ruby_nmatrix.c: In function 'VALUE nm_complex_conjugate(VALUE)':
ruby_nmatrix.c:1095:35: warning: 'copy' is used uninitialized in this function [-Wuninitialized]
return nm_complex_conjugate_bang(nm_init_copy(copy,self));
^
ruby_nmatrix.c: In function 'VALUE nm_init_new_version(int, VALUE_, VALUE)':
ruby_nmatrix.c:1175:11: warning: 'init' may be used uninitialized in this function [-Wmaybe-uninitialized]
void_ init;
^
/var/folders/sc/2zd_v0qn76gdq5sdg63_jx4r0000gn/T//cc1KmZTQ.s:13579:suffix or operands invalid for `movq'
make: *** [nmatrix.o] Error 1
make failed, exit code 2
The text was updated successfully, but these errors were encountered: