try explicitly adding "-stdlib=libc++" to CXXLAGS and LDFLAGS.

On Tue, 29 Oct 2019, 13:45 Andrew, <andrew.mat...@gmail.com> wrote:

> Thanks Dima
>
> On Tuesday, 29 October 2019 17:51:02 UTC+11, Dima Pasechnik wrote:
>>
>> Did you  run
>>
>> xcode-select --install
>>
>> after Xcode upgrade?
>>
>
> Yes, the command line tools are correctly installed but, as far as I can
> see, xcode-select --install  is no longer the correct way to check this
> because it results in the error:
>
> xcode-select: error: command line tools are already installed, use
> "Software Update" to install updates
>
>
>> By the way, why don't you use NTL from brew?
>> https://formulae.brew.sh/formula/ntl#default
>>
>> you can also make things easier by installing Flint and Arb into
>> homebrew, by using formulas from
>> https://github.com/dimpase/homebrew-science
>>
>> Run
>>
>> brew install dimpase/science/flint
>> brew install dimpase/science/arb
>>
>
> Thanks. I didn't know that there were homebrew formulas for any of these.
> Unfortunately, neither of these work either, giving similar (but shorter)
> messages to the compilation errors with sage. Installing flint results in:
>
> ==> Downloading http://flintlib.org/flint-2.5.2.tar.gz
> ########################################################################
> 100.0%
> ==> ./configure --prefix=/usr/local/Cellar/flint/2.5.2_1
> --with-gmp=/usr/local/opt/gmp --with-mpfr=/u
> ==> make
> Last 15 lines from /Users/andrew/Library/Logs/Homebrew/flint/02.make:
>       ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:9:
> error: no member named 'islessgreater' in the global namespace
> using ::islessgreater;
>       ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9:
> error: no member named 'isunordered' in the global namespace
> using ::isunordered;
>       ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9:
> error: no member named 'isunordered' in the global namespace
> using ::isunordered;
>       ~~^
> 13 errors generated.
> make[2]: *** [build/interfaces/NTL-interface.lo] Error 1
> clang: error: no such file or directory:
> 'build/interfaces/NTL-interface.lo'
> make[1]: *** [libflint-13.5.2.dylib] Error 1
> make: *** [library] Error 2
>
>
> and arb fails in the same way because it first tries to install flint.
>
> Andrew
>
>
>
>> (these are source-only, so this will build packages from source)
>>
>>
>> On Tue, Oct 29, 2019 at 2:01 AM Andrew <andrew...@gmail.com> wrote:
>> >
>> > I (stupidly) upgraded to XCode 11.1 on catalina. I have succeeded in
>> compiling sage with python2, not python 3, on an imac but can't get it to
>> compile on a macbook pro with fairly similar specs.I am using homebrew and
>> have:
>> >
>> > ProductName:    Mac OS X
>> > ProductVersion:    10.15
>> > BuildVersion:    19A603
>> > Xcode 11.1
>> > Build version 11A1027
>> >
>> > with gcc --version returning
>> >
>> > 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
>>
>> >
>> > When I try to compile sage is breaks with:
>> >
>> > * package: givaro-4.1.1
>> >   log file: /usr/local/src/sage/logs/pkgs/givaro-4.1.1.log
>> >   build directory:
>> /usr/local/src/sage/local/var/tmp/sage/build/givaro-4.1.1
>> > * package: ntl-11.3.2
>> >   log file: /usr/local/src/sage/logs/pkgs/ntl-11.3.2.log
>> >   build directory:
>> /usr/local/src/sage/local/var/tmp/sage/build/ntl-11.3.2
>> >
>> > Sometimes I also get ntl failing to compile. I have compared the log
>> files one the two machines but can't identify the problem. I attach the log
>> files for givaro and ntl and the install.log from the machine that has the
>> problem. Does anyone have any ideas how to fix this?
>> >
>> > 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-...@googlegroups.com.
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/695c9caa-6efe-49ad-a05f-100c49be7a93%40googlegroups.com.
>>
>>
> --
> 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/dcb00e7a-bd6f-4703-bfbb-e06c040d063d%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-devel/dcb00e7a-bd6f-4703-bfbb-e06c040d063d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAWYfq1v7eyDwsuwLcJyqEmo6adt09AZhXNy4_vXeOkGhfFkPQ%40mail.gmail.com.

Reply via email to