Something is wrong with your xcode command line tools... can you try 
reinstalling them?


On Monday, March 23, 2015 at 7:47:41 PM UTC+1, peter metcalf wrote:
>
> Thanks
>
> if I type 'make' in SAGE_ROOT this is the first sign of a problem - no 
> installed math library found
>
> ===========================================
>
> configure: Excellent, the C, C++ and Fortran compilers are all GCC 4.9.2
>
> configure: Excellent, GCC 4.9.2 is later than the minimum
>
> configure: needed to build Sage, which is GCC version 4.0.1
>
> checking for sqrt in -lm... no
>
> configure: This system has no maths library installed.
>
> configure: error: Exiting, since a maths library was not found.
>
> If you would like to try to build Sage anyway (to help porting),
>
> export the variable 'SAGE_PORT' to something non-empty.
>
> make[2]: *** [/Applications/sage/local/var/lib/sage/installed/prereq] 
> Error 1
>
> make[1]: *** [all] Error 2
>
> ==============================
>
> Peter
>
> On Tuesday, March 24, 2015 at 7:19:56 AM UTC+13, Volker Braun wrote:
>>
>> Can you try compiling Sage just from source, not inside the mac app...
>>
>>
>> On Monday, March 23, 2015 at 7:00:28 PM UTC+1, peter metcalf wrote:
>>>
>>> Thanks Dmitrii
>>>
>>> I also get errors with
>>>
>>> sage -f python
>>>
>>> so there is something more fundamental going on than the problem with 
>>> libjpeg-6b
>>>
>>> I think I do have Xcode command line tools installed 
>>>
>>> since 'xcode-select -p'  returns
>>> /Applications/Xcode.app/Contents/Developer
>>>
>>> This is the first error in /Applications/sage/logs/pkgs/python.log
>>>
>>> =======================
>>>
>>> checking for int64_t... yes
>>>
>>> checking for ssize_t... yes
>>>
>>> checking size of int... 0
>>>
>>> checking size of long... 0
>>>
>>> checking size of void *... 0
>>>
>>> checking size of short... 0
>>>
>>> checking size of float... 0
>>>
>>> checking size of double... 0
>>>
>>> checking size of fpos_t... 0
>>>
>>> checking size of size_t... configure: error: in 
>>> `/Applications/sage/local/var/tmp/sage/build/python-2.7.8/src':
>>>
>>> configure: error: cannot compute sizeof (size_t)
>>>
>>> See `config.log' for more details
>>>
>>> Error configuring Python.
>>>
>>> ================================================
>>>
>>> This is the first error in 
>>> /Applications/sage/local/var/tmp/sage/build/python-2.7.8/src/config.log
>>>
>>> ================================================
>>>
>>> Target: x86_64-apple-darwin11.4.2
>>>
>>> Configured with: ../src/configure 
>>> --prefix=/Users/karl.crisman/Downloads/sage-6.5/local 
>>> --with-local-prefix=/Users/karl.crisman/Downloads/sage-6.5/local 
>>> --with-gmp=/Users/karl.crisman/Downloads/sage-6.5/local 
>>> --with-mpfr=/Users/karl.crisman/Downloads/sage-6.5/local 
>>> --with-mpc=/Users/karl.crisman/Downloads/sage-6.5/local --with-system-zlib 
>>> --disable-multilib --disable-nls --enable-languages=c,c++,fortran 
>>> --disable-libitm --without-isl --without-cloog  
>>>
>>> Thread model: posix
>>>
>>> gcc version 4.9.2 (GCC) 
>>>
>>> configure:3818: $? = 0
>>>
>>> configure:3807: gcc -V >&5
>>>
>>> gcc: error: unrecognized command line option '-V'
>>>
>>> gcc: fatal error: no input files
>>>
>>> compilation terminated.
>>>
>>> configure:3818: $? = 1
>>>
>>> configure:3807: gcc -qversion >&5
>>>
>>> gcc: error: unrecognized command line option '-qversion'
>>>
>>> gcc: fatal error: no input files
>>>
>>> compilation terminated.
>>>
>>> configure:3818: $? = 1
>>>
>>> configure:3838: checking whether the C compiler works
>>>
>>> ===========================================================
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>>> On Monday, March 23, 2015 at 11:22:40 PM UTC+13, peter metcalf wrote:
>>>>
>>>> HI All
>>>>
>>>> I'm trying to read jpg files using PIL or matplotlib
>>>>
>>>> any help/suggestions would be most welcome!
>>>>
>>>> the following fails
>>>>
>>>> sage -i libjpeg-6b
>>>>
>>>> the relevant part of the log file may be
>>>>
>>>> ==================================================
>>>>
>>>> gcc -fPIC  -I.   -c -o jmemmgr.o jmemmgr.c
>>>>
>>>> gcc -fPIC  -I.   -c -o jmemnobs.o jmemnobs.c
>>>>
>>>> rm -f libjpeg.a
>>>>
>>>> ar rc libjpeg.a  jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o 
>>>> jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o 
>>>> jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o jfdctint.o 
>>>> jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o jdinput.o jdmarker.o 
>>>> jdhuff.o jdphuff.o jdmainct.o jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o 
>>>> jidctflt.o jidctint.o jidctred.o jdsample.o jdcolor.o jquant1.o jquant2.o 
>>>> jdmerge.o jcomapi.o jutils.o jerror.o jmemmgr.o jmemnobs.o
>>>>
>>>> ranlib libjpeg.a
>>>>
>>>> sh: line 1:  4325 Trace/BPT trap: 5       
>>>> /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find 
>>>> ranlib 2> /dev/null
>>>>
>>>> ranlib: error: unable to find utility "ranlib", not a developer tool or 
>>>> in PATH
>>>>
>>>> make: *** [libjpeg.a] Error 72
>>>>
>>>> ===================================================
>>>>
>>>> I also noted this odd line at the beginning of the log file (I am not 
>>>> Karl Crisman)
>>>>
>>>>
>>>> ===================================================
>>>>
>>>> C compiler: gcc
>>>>
>>>> C compiler version:
>>>>
>>>> Using built-in specs.
>>>>
>>>> COLLECT_GCC=/Applications/sage/local/bin/gcc
>>>>
>>>>
>>>> COLLECT_LTO_WRAPPER=/Applications/sage/local/bin/../libexec/gcc/x86_64-apple-darwin11.4.2/4.9.2/lto-wrapper
>>>>
>>>> Target: x86_64-apple-darwin11.4.2
>>>>
>>>> Configured with: ../src/configure 
>>>> --prefix=/Users/karl.crisman/Downloads/sage-6.5/local 
>>>> --with-local-prefix=/Users/karl.crisman/Downloads/sage-6.5/local 
>>>> --with-gmp=/Users/karl.crisman/Downloads/sage-6.5/local 
>>>> --with-mpfr=/Users/karl.crisman/Downloads/sage-6.5/local 
>>>> --with-mpc=/Users/karl.crisman/Downloads/sage-6.5/local --with-system-zlib 
>>>> --disable-multilib --disable-nls --enable-languages=c,c++,fortran 
>>>> --disable-libitm --without-isl --without-cloog  
>>>>
>>>> Thread model: posix
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" 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 http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to