I don't have anything like MACOSX_DEPLOYMENT_TARGET or CPLUS_INCLUDE_PATH 
set and I'll paste the list of filenames contain cmath below.

I wonder if this is part of the problem. According to gcc--version:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
--with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

however, the gxx-include directory 

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1

does not exist. I tried adding a link from here to 

/Library/Developer/CommandLineTools/usr/include/c++/v1/

and setting CXXFLAGS="-isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" but this didn't help.

Thanks again for your help!
Andrew
----
/Applications/GIMP.app/Contents/Resources/lib/python2.7/lib-dynload/cmath.so
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/lib-dynload/cmath.cpython-37m-darwin.so
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/cmath.rb
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/lib-dynload/cmath.cpython-37m-darwin.so
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/cmath.rb
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath
/Library/Ruby/Gems/2.6.0/specifications/default/cmath-1.0.0.gemspec
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cmath.so
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/cmath.rb
/System/Library/Templates/Data/Library/Ruby/Gems/2.6.0/specifications/default/cmath-1.0.0.gemspec
/opt/metasploit-framework/embedded/lib/ruby/2.4.0/cmath.rb
/usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
/usr/local/Cellar/boost/1.71.0/include/boost/config/no_tr1/cmath.hpp
/usr/local/Cellar/boost/1.71.0/include/boost/phoenix/stl/cmath.hpp
/usr/local/Cellar/boost/1.71.0/include/boost/units/cmath.hpp
/usr/local/Cellar/ipython/7.8.0/libexec/vendor/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/cmath.pyi
/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/cmath.cpython-37m-darwin.so
/usr/local/Cellar/python@2/2.7.16_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cmath.so
/usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/cmath.rb
/usr/local/Cellar/ruby/2.6.5/lib/ruby/gems/2.6.0/specifications/default/cmath-1.0.0.gemspec
/usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath
/usr/local/src/sage/local/include/boost/config/no_tr1/cmath.hpp
/usr/local/src/sage/local/include/boost/phoenix/stl/cmath.hpp
/usr/local/src/sage/local/include/boost/units/cmath.hpp

On Wednesday, 30 October 2019 17:41:33 UTC+11, Dima Pasechnik wrote:
>
> it seems to be related to Apple removing support for libstdc++. 
>
> Could it be that you have something related to "deployment target" 
> (MACOSX_DEPLOYMENT_TARGET ?) in your default environment variables, or 
> similar settings in Xcode? 
> Or perhaps CPLUS_INCLUDE_PATH is set somewhere? 
>
> Perhaps your "XcodeDefault.xctoolchain" - that's where that wretched 
> C++ cmath header comes from - is pointing to a wrong toolchain? 
> Can you search for the files named "cmath" on the machine? 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/518a5813-7c1d-4d5d-85df-bf43398aef7c%40googlegroups.com.

Reply via email to