On Mon, Sep 10, 2018 at 6:33 AM John H Palmieri <jhpalmier...@gmail.com> wrote:
>
> One thing to try, in case you haven't already: run make once, and if it fails 
> with a warning like this, try running make again immediately (without doing 
> "make distclean"). (Sage may be using Sage's python in the installation 
> process before it's quite ready, but when you run 'make' a second time, the 
> installation of python2 will have completed.)

+1 You're probably running into https://trac.sagemath.org/ticket/18438
 which is a race condition in parallel builds.

Just re-run `make` without doing `make distclean` and it should continue.

> On Sunday, September 9, 2018 at 9:28:11 PM UTC-7, Andrew wrote:
>>
>> I'm now trying, without success, to compile 8.4.beta4.
>>
>> I have homebrew installed. For the past few years I have stopped it from 
>> affecting the sage compliation by setting my PATH accordingly. If I do this 
>> and use
>> make distclean && make
>>
>> then I still the error above with make failing on pip-18.0. Here is the 
>> pip-18.0.log file:
>>
>> pip-18.0
>> ====================================================
>> Setting up build directory for pip-18.0
>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.0
>> Finished extraction
>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.0/src
>> No patch files found in ../patches
>> ****************************************************
>> Host system:
>> Darwin p718m.pc.maths.usyd.edu.au 17.7.0 Darwin Kernel Version 17.7.0: Thu 
>> Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
>> ****************************************************
>> C compiler: gcc
>> C compiler version:
>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
>> --with-gxx-include-dir=/usr/include/c++/4.2.1
>> Apple LLVM version 9.1.0 (clang-902.0.39.2)
>> Target: x86_64-apple-darwin17.7.0
>> Thread model: posix
>> InstalledDir: 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>> ****************************************************
>> No record that 'pip' was ever installed; skipping uninstall
>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.0/src
>> /usr/local/src/sage/local/bin/python3: No module named pip
>> ********************************************************************************
>> Error building / installing pip3
>> ********************************************************************************
>>
>> real 0.102      user 0.044      sys 0.024       pcpu 67.51
>>
>> ************************************************************************
>> Error installing package pip-18.0
>> ************************************************************************
>> Please email sage-devel (http://groups.google.com/group/sage-devel)
>> explaining the problem and including the log file
>>   /usr/local/src/sage/logs/pkgs/pip-18.0.log
>> Describe your computer, operating system, etc.
>> If you want to try to fix the problem yourself, *don't* just cd to
>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.0 and type 'make' or 
>> whatever is appropriate.
>> Instead, the following commands setup all environment variables
>> correctly and load a subshell for you to debug the error:
>>   (cd '/usr/local/src/sage/local/var/tmp/sage/build/pip-18.0' && 
>> '/usr/local/src/sage/sage' --sh)
>> When you are done debugging, you can type "exit" to leave the subshell.
>> ************************************************************************
>>
>> make distclean && make I hit an error compiling python3-3.6.6.p0. The log 
>> file python3.6 is attached.
>>
>> If, instead, I run make distclean && make without removing brew then I get a 
>> little further, with make now breaking on the build of python3-3.6.6.p0, with
>> python3-3.6.6.p0.log now looking like:
>>
>>
>> Found local metadata for python3-3.6.6.p0
>> Traceback (most recent call last):
>>   File "/usr/local/src/sage/local/lib/python2.7/site.py", line 62, in 
>> <module>
>>     import os
>>   File "/usr/local/src/sage/local/lib/python2.7/os.py", line 49, in <module>
>>     import posixpath as path
>>   File "/usr/local/src/sage/local/lib/python2.7/posixpath.py", line 17, in 
>> <module>
>>     import warnings
>> ImportError: No module named warnings
>> ************************************************************************
>> Error downloading Python-3.6.6.tar.gz
>> ************************************************************************
>> Please email sage-devel (http://groups.google.com/group/sage-devel)
>> explaining the problem and including the log file
>>   /usr/local/src/sage/logs/pkgs/python3-3.6.6.p0.log
>> Describe your computer, operating system, etc.
>> ************************************************************************
>> I am seeing the same behaviour on an imac and on a macbook pro. both of 
>> which are running:
>> ProductName:    Mac OS X
>> ProductVersion:    10.13.6
>> BuildVersion:    17G65
>> Xcode 9.4.1
>> Build version 9F2000
>> Does anyone have  an idea of what's going wrong here?
>>
>> Andrew
>>
> --
> 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 sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to