Laurent Decreusefond wrote:
> I will try this one since I'm already working on a fresh, compiled from
> source, version of Sage.

If you have Sage's GCC built on *your* system, the issue with movq will
disappear (since GCC checks exactly that feature of the assembler at its
*build* time).

But you /may/ run into similar problems ("No such instruction: ...")
when for example building NTL, since Apple's old GAS doesn't support
AVX, BMI etc.  Then you can try what I suggested, or see #20779 (and
#21064 especially for NTL).


-leif


> Le mercredi 27 juillet 2016 19:45:55 UTC+2, leif a écrit :
> 
>     Dima Pasechnik wrote:
>     > errors like you get:
>     >
>     >
>     >
>     /var/folders/md/71gv03bs6mx4qxg933r_k_x40000gn/T//ccSLsnmg.s:984:suffix
>     or operands invalid for `movq'
>     >
>     >
>     > indicate that your Sage's compiler toolchain is broken in some way,
>     > probably incompatible with your hardware.
>     > A way to fix this would be to build Sage from source.
> 
>     Nope, it's Apple's dead old version of the GNU assembler.
> 
>     (Newer Xcode versions by default use the one from LLVM, but require
>     newer versions of MacOS X as well.)
> 
>     If one passes '-q' to the assembler, clang's/LLVM's will get used
>     instead, so you could try adding '-Wa,-q' to CFLAGS and CXXFLAGS in
>     order to let GCC pass '-q' to the assembler, by doing for example
> 
>     $ env CFLAGS="-Wa,-q" CXXFLAGS="-Wa,-q" ./sage -i <package>
> 
> 
>     Another way is to create a wrapper script $SAGE_LOCAL/bin/as which
>     calls
>     the assembler with '-q' added to the options; see the following trac
>     tickets for more details:
> 
>     https://trac.sagemath.org/ticket/20779
>     <https://trac.sagemath.org/ticket/20779>
> 
>     https://trac.sagemath.org/ticket/20563
>     <https://trac.sagemath.org/ticket/20563>  (same issue, i.e. with movq)
> 
>     (Both a bit stalled at the moment, but give more info on the general
>     problem with Xcode versions < 7.0.)
> 
> 
>     -leif
> 
>     > On Wednesday, July 27, 2016 at 8:57:37 AM UTC+1, Laurent
>     Decreusefond wrote:
>     >
>     >     Thanks. I tried to do it in the command line on a fresh
>     install of
>     >     Sage 7.2 and I got this error message (the full log is
>     attached) :
>     >
>     >     [snip]
>     >
>     >         In file included from
>     >    
>     
> /Users/Laurent/Downloads/sage-7.2/local/lib/python2.7/site-packages/numpy-1.11.0-py2.7-macosx-10.9-x86_64.egg/numpy/core/include/numpy/ndarraytypes.h:1777:0,
> 
>     >
>     >                          from
>     >    
>     
> /Users/Laurent/Downloads/sage-7.2/local/lib/python2.7/site-packages/numpy-1.11.0-py2.7-macosx-10.9-x86_64.egg/numpy/core/include/numpy/ndarrayobject.h:18,
> 
>     >
>     >                          from
>     >    
>     
> /Users/Laurent/Downloads/sage-7.2/local/lib/python2.7/site-packages/numpy-1.11.0-py2.7-macosx-10.9-x86_64.egg/numpy/core/include/numpy/arrayobject.h:4,
> 
>     >
>     >                          from pandas/src/datetime/np_datetime.c:18:
>     >
>     >        
>     >    
>     
> /Users/Laurent/Downloads/sage-7.2/local/lib/python2.7/site-packages/numpy-1.11.0-py2.7-macosx-10.9-x86_64.egg/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2:
> 
>     >     warning: #warning "Using deprecated NumPy API, disable it by "
>     >     "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
>     >
>     >          #warning "Using deprecated NumPy API, disable it by " \
>     >
>     >           ^
>     >
>     >        
>     >    
>     /var/folders/md/71gv03bs6mx4qxg933r_k_x40000gn/T//ccSLsnmg.s:984:suffix
>     >     or operands invalid for `movq'
>     >
>     >        
>     >    
>     /var/folders/md/71gv03bs6mx4qxg933r_k_x40000gn/T//ccSLsnmg.s:2605:suffix
> 
>     >     or operands invalid for `movq'
>     >
>     >        
>     >    
>     /var/folders/md/71gv03bs6mx4qxg933r_k_x40000gn/T//ccSLsnmg.s:4735:suffix
> 
>     >     or operands invalid for `movq'
>     >
>     >         error: command 'gcc' failed with exit status 1
>     >
>     >
>     >     Le dimanche 24 juillet 2016 19:31:06 UTC+2, Andrey Novoseltsev
>     a écrit :
>     >
>     >         While it is not included, you can install it yourself via pip
>     >         (SageMathCell does it):
>     >
>     >         sage -pip install seaborn
>     >
>     >
>     >         On Saturday, 23 July 2016 13:17:26 UTC-6, Laurent
>     Decreusefond
>     >         wrote:
>     >
>     >             I recently discovered Seaborn, which is a visualization
>     >             library on top
>     >             of matplotlib. It doesn't seem to be included in sage
>     7.2.
>     >             Is there any
>     >             projet to do so ? or is there something equivalent ?
>     >
>     >             Best,


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to