[tlbuild] Fwd: New Asymptote does not compile on Mac

Richard Koch koch at uoregon.edu
Thu Mar 28 01:18:56 CET 2019


I should have also copied this to TLbuilders:

> Begin forwarded message:
> 
> From: "Richard M. Koch" <koch at uoregon.edu>
> Subject: New Asymptote does not compile on Mac
> Date: March 27, 2019 at 5:10:16 PM PDT
> To: Karl Berry <karl at freefriends.org>, John Bowman <bowman at ualberta.ca>
> 
> John,
> 
> Here are some facts which I hope will allow you to diagnose the problem.
> 
> a) I don't compile on the latest system, Mojave, but instead on macOS 10.12, Sierra, from three years ago
> 
> b) until these changes, asy compiles with no errors at all
> 
> c) the full TeX Live this year compiled fine without errors, from the beginning of testing until now
> 
> d) Apple only deprecated OpenGL in Yosemite, so that should be irrelevant for this problem.
> 
> e) It looks to me like there is a problem in memory.h; I assume the changes in this asy are fairly small and you can trace this down
> 
> f) I don't know, or use, C++, so I won't be helpful finding the problem.
> 
> Here is the console output at the error:
> 
> -------------
> 
> Build/include/gsi -I/Users/koch/AsymptoteBuild/include/readline -I. -Igc-8.0.2/include -I/usr/include/tirpc -std=c++11 -g -O3 -o util.o -c util.cc <http://util.cc/>
> g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -D_THREAD_SAFE -pthread -DFFTWPP_SINGLE_THREAD -I/Users/koch/AsymptoteBuild/include -I/Users/koch/AsymptoteBuild/include/gsi -I/Users/koch/AsymptoteBuild/include/readline -I. -Igc-8.0.2/include -I/usr/include/tirpc -std=c++11 -g -O3 -o settings.o -c settings.cc <http://settings.cc/>
> In file included from settings.cc:18 <http://settings.cc:18/>:
> In file included from ./common.h:35:
> In file included from ./memory.h:13:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/map:1577:27: error: no matching member function for call to
>       'select_on_container_copy_construction'
>           __alloc_traits::select_on_container_copy_construction(__m.__tree_.__alloc()))
>           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./memory.h:148:14: note: in instantiation of member function 'std::__1::multimap<const sym::symbol, trans::tyEntry *, std::__1::less<const sym::symbol>,
>       gc_allocator<std::__1::pair<const sym::symbol, trans::tyEntry *> > >::multimap' requested here
> GC_CONTAINER(multimap);
>              ^
> ./env.h:61:8: note: in instantiation of member function 'sym::table<trans::tyEntry *>::collapseScope' requested here
>     te.collapseScope(); ve.collapseScope();
>        ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:1582:9: note: candidate function not viable: no known
>       conversion from 'gc_allocator<std::__1::__value_type<const sym::symbol, trans::tyEntry *>>' to 'const gc_allocator<std::__1::pair<const sym::symbol,
>       trans::tyEntry *>>' for 1st argument
>         select_on_container_copy_construction(const allocator_type& __a)
>         ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:1723:9: note: candidate function not viable: requires 2
>       arguments, but 1 was provided
>         select_on_container_copy_construction(true_type, const allocator_type& __a)
>         ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:1727:9: note: candidate function not viable: requires 2
>       arguments, but 1 was provided
>         select_on_container_copy_construction(false_type, const allocator_type& __a)
>         ^
> 1 error generated.
> make: *** [settings.o] Error 1
> 
> Richard Koch
> koch at uoregon.edu <mailto:koch at uoregon.edu>
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tlbuild/attachments/20190327/5fbef5d2/attachment-0001.html>


More information about the tlbuild mailing list