sage -f [opts] [packages] is a shortcut for force-building specified 
packages. If you examine the output of `sage -advanced` on a commandline, 
this is noted there. The command `sage -advanced` is a more complete 
version of the typical help command `sage -h`.

(I don't know how to solve your actual problem, unfortunately). - DLD

On Wednesday, October 7, 2020 at 12:26:59 PM UTC-4 wdjo...@gmail.com wrote:

> On a lark, I ran ./sage -f 
> This is undocumented as far as I can tell
> and I've no idea what it does (of course ./sage doesn't
> work since it didn't compile - see my previous email
> in this thread). It seemed to try to compile
> python 3.8.5. I pasted the tail end below, in case this
> is useful. BTW, what does "sage -f" do?
> -David
>
> ...
>
> [python3-3.8.5] 
>
> [python3-3.8.5] Python build finished successfully!
>
> [python3-3.8.5] The necessary bits to build these optional modules were 
> not found:
>
> [python3-3.8.5] _bz2                  _curses               _curses_panel   
>    
>
> [python3-3.8.5] _gdbm                 ossaudiodev           spwd          
>      
>
> [python3-3.8.5] zlib                                                      
>      
>
> [python3-3.8.5] To find the necessary bits, look in setup.py in 
> detect_modules() for the module's name.
>
> [python3-3.8.5] 
>
> [python3-3.8.5] 
>
> [python3-3.8.5] The following modules found by detect_modules() in 
> setup.py, have been
>
> [python3-3.8.5] built by the Makefile instead, as configured by the Setup 
> files:
>
> [python3-3.8.5] _abc                  atexit                pwd           
>      
>
> [python3-3.8.5] time                                                      
>      
>
> [python3-3.8.5] 
>
> [python3-3.8.5] running build_scripts
>
> [python3-3.8.5] creating build/scripts-3.8
>
> [python3-3.8.5] copying and adjusting 
> /Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5/src/Tools/scripts/pydoc3
>  
> -> build/scripts-3.8
>
> [python3-3.8.5] copying and adjusting 
> /Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5/src/Tools/scripts/idle3
>  
> -> build/scripts-3.8
>
> [python3-3.8.5] copying and adjusting 
> /Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5/src/Tools/scripts/2to3
>  
> -> build/scripts-3.8
>
> [python3-3.8.5] changing mode of build/scripts-3.8/pydoc3 from 644 to 755
>
> [python3-3.8.5] changing mode of build/scripts-3.8/idle3 from 644 to 755
>
> [python3-3.8.5] changing mode of build/scripts-3.8/2to3 from 644 to 755
>
> [python3-3.8.5] renaming build/scripts-3.8/pydoc3 to 
> build/scripts-3.8/pydoc3.8
>
> [python3-3.8.5] renaming build/scripts-3.8/idle3 to 
> build/scripts-3.8/idle3.8
>
> [python3-3.8.5] renaming build/scripts-3.8/2to3 to 
> build/scripts-3.8/2to3-3.8
>
> [python3-3.8.5] /usr/bin/install -c -m 644 ./Tools/gdb/libpython.py 
> python.exe-gdb.py
>
> [python3-3.8.5] clang -c -Wno-unused-result -Wsign-compare 
> -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall   -Wno-unused  -std=c99 
> -Wextra -Wno-unused-result -Wno-unused-parameter 
> -Wno-missing-field-initializers -Wstrict-prototypes 
> -Werror=implicit-function-declaration  -I./Include/internal  -I. 
> -I./Include -I/usr/local/opt/openssl/include  
> -I/usr/local/opt/openssl/include  -DPy_BUILD_CORE -o 
> Programs/_testembed.o ./Programs/_testembed.c
>
> [python3-3.8.5] clang -L/Users/wdj/sagefiles/sage-9.2.rc0/local/lib 
> -Wl,-rpath,/Users/wdj/sagefiles/sage-9.2.rc0/local/lib  
> -L/usr/local/opt/openssl/lib 
> -L. -L/Users/wdj/sagefiles/sage-9.2.rc0/local/lib 
> -Wl,-rpath,/Users/wdj/sagefiles/sage-9.2.rc0/local/lib  
> -L/usr/local/opt/openssl/lib 
>   -Wl,-stack_size,1000000  -framework CoreFoundation -o 
> Programs/_testembed Programs/_testembed.o -L. -lpython3.8 -ldl   -framework 
> CoreFoundation    
>
> [python3-3.8.5] sed -e 
> "s,@EXENAME@,/Users/wdj/sagefiles/sage-9.2.rc0/local/bin/python3.8," < 
> ./Misc/python-config.in >python-config.py
>
> [python3-3.8.5] LC_ALL=C sed -e 's,\$(\([A-Za-z0-9_]*\)),\$\{\1\},g' < 
> Misc/python-config.sh >python-config
>
> [python3-3.8.5] Testing importing of various modules...
>
> [python3-3.8.5] ctypes module imported OK
>
> [python3-3.8.5] math module imported OK
>
> [python3-3.8.5] hashlib module imported OK
>
> [python3-3.8.5] crypt module imported OK
>
> [python3-3.8.5] readline module imported OK
>
> [python3-3.8.5] socket module imported OK
>
> [python3-3.8.5] Traceback (most recent call last):
>
> [python3-3.8.5]   File "<string>", line 1, in <module>
>
> [python3-3.8.5] ModuleNotFoundError: No module named 'zlib'
>
> [python3-3.8.5] zlib module failed to import
>
> [python3-3.8.5] sqlite3 module imported OK
>
> [python3-3.8.5] _scproxy module imported OK
>
> [python3-3.8.5] Error: One or more modules failed to import.
>
> [python3-3.8.5] 
>
> [python3-3.8.5] real 2m55.196s
>
> [python3-3.8.5] user 2m11.283s
>
> [python3-3.8.5] sys 0m33.284s
>
> [python3-3.8.5] 
> ************************************************************************
>
> [python3-3.8.5] Error building package python3-3.8.5
>
> [python3-3.8.5] 
> ************************************************************************
>
> [python3-3.8.5] Please email sage-devel (
> http://groups.google.com/group/sage-devel)
>
> [python3-3.8.5] explaining the problem and including the log file
>
> [python3-3.8.5]   
> /Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/python3-3.8.5.log
>
> [python3-3.8.5] Describe your computer, operating system, etc.
>
> [python3-3.8.5] If you want to try to fix the problem yourself, *don't* 
> just cd to
>
> [python3-3.8.5] 
> /Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5 
> and type 'make' or whatever is appropriate.
>
> [python3-3.8.5] Instead, the following commands setup all environment 
> variables
>
> [python3-3.8.5] correctly and load a subshell for you to debug the error:
>
> [python3-3.8.5]   (cd 
> '/Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5' 
> && '/Users/wdj/sagefiles/sage-9.2.rc0/sage' --buildsh)
>
> [python3-3.8.5] When you are done debugging, you can type "exit" to leave 
> the subshell.
>
> [python3-3.8.5] 
> ************************************************************************
>
> make[3]: *** [python3-no-deps] Error 1
>
> make[2]: *** 
> [/Users/wdj/sagefiles/sage-9.2.rc0/local/var/lib/sage/installed/python3-3.8.5]
>  
> Error 2
>
> make[1]: *** [all-build] Error 2
>
>
> real 3m2.022s
>
> user 2m14.632s
>
> sys 0m36.375s
>
> ***************************************************************
>
> Error building Sage.
>
>
> The following package(s) may have failed to build (not necessarily
>
> during this run of 'make all-build'):
>
>
> * package:         python3-3.8.5
>
>   last build time: Oct 7 10:52
>
>   log file:        
> /Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/python3-3.8.5.log
>
>   build directory: 
> /Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5
>
>
> It is safe to delete any log files and build directories, but they
>
> contain information that is helpful for debugging build problems.
>
> WARNING: If you now run 'make' again, the build directory of the
>
> same version of the package will, by default, be deleted. Set the
>
> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>
>
> make: *** [all-build] Error 1
>
>
>
>
>
> On Wed, Oct 7, 2020 at 10:39 AM David Joyner <wdjo...@gmail.com> wrote:
>
>> Hi:
>>
>> The compiler still can't find installed python3:
>>
>> wdj@jeeves sage-9.2.rc0 % which python3
>>
>> /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
>>
>>
>>
>> The log python3-3.8.5.log says
>> "Package 'python3' is currently not installed"
>>
>> Here's the tail after running configure then make -k:
>>
>> [yasm-1.3.0.p0] Finished installing yasm-1.3.0.p0
>>
>> make[3]: Target `all-sage' not remade because of errors.
>>
>> make[2]: *** [all-start] Error 2
>>
>>
>> real 940m12.196s
>>
>> user 113m42.845s
>>
>> sys 15m52.978s
>>
>> ***************************************************************
>>
>> Error building Sage.
>>
>>
>> The following package(s) may have failed to build (not necessarily
>>
>> during this run of 'make all-start'):
>>
>>
>> * package:         python3-3.8.5
>>
>>   last build time: Oct 6 18:49
>>
>>   log file:        
>> /Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/python3-3.8.5.log
>>
>>   build directory: 
>> /Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5
>>
>>
>> It is safe to delete any log files and build directories, but they
>>
>> contain information that is helpful for debugging build problems.
>>
>> WARNING: If you now run 'make' again, the build directory of the
>>
>> same version of the package will, by default, be deleted. Set the
>>
>> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>>
>>
>> make[1]: *** [all-start] Error 1
>>
>> make: *** [all] Error 2
>>
>> make: Target `default' not remade because of errors.
>>
>>
>> - David Joyner
>>
>>
>>

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/3f6e39aa-2edc-4900-a537-70b6c2636d4fn%40googlegroups.com.

Reply via email to