[tlbuild] asy and c++11

Karl Berry karl at freefriends.org
Sun Jun 4 23:18:19 CEST 2017


When I try to compile asy (the sources in TL now) on centos7, I get the
errors at end if I omit the CXXFLAGS=-ansi (per
tug.org/texlive/build.html), i.e., try to compile with C++11 enabled.

The gcc that comes with this system (gcc 4.8.5 20150623 (Red Hat
4.8.5-11)) purportedly supports C++11. I'll include the whole configure
output for the heck of it. Clearly there is something weird going with
unordered_map, but I have not tried to figure out what to do.

Does anyone else fail with current asy in C++11 mode (no -ansi)? 

Just looking ahead to what we'll have to cope with next year ... -k


+ ASYMPTOTE_EPSDRIVER=epswrite
+ export ASYMPTOTE_EPSDRIVER
+ ./configure -C --prefix=/tmp/ainst --with-latex=/tmp/ainst/latex --with-context=/tmp/ainst/context --enable-fftw --enable-gl --enable-gsl --enable-texlive-build CFLAGS=-g
configure: creating cache config.cache
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for texi2dvi... no
configure: Using /tmp/ainst/latex/asymptote for LaTeX style file
configure: Using /tmp/ainst/context/asymptote for ConTeXT style file
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether make sets $(MAKE)... yes
checking for bison... bison -y
checking how to run the C++ preprocessor... g++ -E
checking unordered_map usability... yes
checking unordered_map presence... no
configure: WARNING: unordered_map: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: unordered_map: proceeding with the compiler's result
checking for unordered_map... yes
checking for gc-7.6.0.tar.gz... yes
configure: enabling local Boehm Garbage Collector gc-7.6.0
checking for getopt_long_only... yes
checking for sqrt in -lm... yes
checking for deflate in -lz... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for stackoverflow_install_handler in -lsigsegv... no
checking for sched_yield in -lrt... yes
checking for history_list in -lreadline... yes
checking ncurses/curses.h usability... yes
checking ncurses/curses.h presence... yes
checking for ncurses/curses.h... yes
checking for setupterm in -lncurses... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking fpu_control.h usability... yes
checking fpu_control.h presence... yes
checking for fpu_control.h... yes
checking for library containing xdrstdio_create... none required
checking gsl/gsl_sf.h usability... no
checking gsl/gsl_sf.h presence... no
checking for gsl/gsl_sf.h... no
configure: *** Header file gsl_sf.h not found: will compile without optional special functions. ***
checking fftw3.h usability... no
checking fftw3.h presence... no
checking for fftw3.h... no
configure: *** Header file fftw3.h not found: will compile without optional fast Fourier transforms. ***
checking for glDepthMask in -lGL... yes
checking for gluNewNurbsRenderer in -lGLU... yes
checking for glutMainLoop in -lglut... yes
checking for OSMesaCreateContext in -lOSMesa... no
configure: *** Could not find libOSMesa: will compile without offscreen rendering support ***
checking for pid_t... yes
checking for size_t... yes
checking for ptrdiff_t... yes
checking for long long... yes
checking for long... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking return type of signal handlers... void
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for dup2... yes
checking for floor... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strchr... yes
checking for tgamma... yes
checking for memrchr... yes
checking for strftime... yes
checking for strptime... yes
checking for error_at_line... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
configure: updating cache config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/png/Makefile
config.status: creating config.h
checking for gc-7.6.0.tar.gz... (cached) yes
+ make
Creating main.d
Creating quaternion.d
Creating algebra3.d
Creating arcball.d
Creating tr.d
Creating glrender.d
Creating writePRC.d
Creating PRCdouble.d
Creating oPRCFile.d
Creating PRCbitStream.d
Creating predicates.d
Creating Delaunay.d
Creating array.d
Creating constructor.d
Creating process.d
Creating envcompleter.d
Creating refaccess.d
Creating fundec.d
Creating varinit.d
Creating application.d
Creating program.d
Creating parser.d
Creating locate.d
Creating impdatum.d
Creating coenv.d
Creating coder.d
Creating simpson.d
Creating fftw++asy.d
Creating fileio.d
Creating interact.d
Creating record.d
Creating absyn.d
Creating virtualfieldaccess.d
Creating access.d
Creating lex.yy.d
Creating camp.tab.d
Creating stack.d
Creating newexp.d
Creating exp.d
Creating entry.d
Creating symbol.d
Creating name.d
Creating callable.d
Creating errormsg.d
Creating dec.d
Creating stm.d
Creating genv.d
Creating env.d
Creating runmath.d
Creating runstring.d
Creating runpath3d.d
Creating runpath.d
Creating runtriple.d
Creating runpair.d
Creating runsystem.d
Creating runfile.d
Creating runarray.d
Creating runhistory.d
Creating runlabel.d
Creating runpicture.d
Creating runbacktrace.d
Creating runtime.d
Creating gsl.d
Creating builtin.d
Creating types.d
Creating pipestream.d
Creating pen.d
Creating bezierpatch.d
Creating beziercurve.d
Creating drawsurface.d
Creating drawpath3.d
Creating path3.d
Creating drawfill.d
Creating knot.d
Creating flatguide.d
Creating guide.d
Creating settings.d
Creating util.d
Creating texfile.d
Creating psfile.d
Creating picture.d
Creating drawlabel.d
Creating drawpath.d
Creating path.d
Creating camperror.d
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o camperror.o -c camperror.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o path.o -c path.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o drawpath.o -c drawpath.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o drawlabel.o -c drawlabel.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o picture.o -c picture.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o psfile.o -c psfile.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o texfile.o -c texfile.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o util.o -c util.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o settings.o -c settings.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o guide.o -c guide.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o flatguide.o -c flatguide.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o knot.o -c knot.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o drawfill.o -c drawfill.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o path3.o -c path3.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o drawpath3.o -c drawpath3.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o drawsurface.o -c drawsurface.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o beziercurve.o -c beziercurve.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o bezierpatch.o -c bezierpatch.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o pen.o -c pen.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o pipestream.o -c pipestream.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o types.o -c types.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o builtin.o -c builtin.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o gsl.o -c gsl.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runtime.o -c runtime.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runbacktrace.o -c runbacktrace.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runpicture.o -c runpicture.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runlabel.o -c runlabel.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runhistory.o -c runhistory.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runarray.o -c runarray.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runfile.o -c runfile.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runsystem.o -c runsystem.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runpair.o -c runpair.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runtriple.o -c runtriple.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runpath.o -c runpath.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runpath3d.o -c runpath3d.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runstring.o -c runstring.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o runmath.o -c runmath.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o env.o -c env.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o genv.o -c genv.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o stm.o -c stm.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o dec.o -c dec.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o errormsg.o -c errormsg.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o callable.o -c callable.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o name.o -c name.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o symbol.o -c symbol.cc
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -fno-var-tracking -I. -Igc-7.6.0/include -o entry.o -c entry.cc
In file included from /usr/include/c++/4.8.2/unordered_map:47:0,
                 from memory.h:22,
                 from common.h:35,
                 from entry.h:15,
                 from entry.cc:15:
/usr/include/c++/4.8.2/bits/hashtable.h: In instantiation of 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__node_type* std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_allocate_node(_Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<const sym::symbol&>, std::tuple<>}; _Key = sym::symbol; _Value = std::pair<const sym::symbol, trans::venv::namevalue>; _Alloc = gc_allocator<std::pair<const sym::symbol, trans::venv::namevalue> >; _ExtractKey = std::__detail::_Select1st; _Equal = trans::venv::nameeq; _H1 = trans::venv::namehash; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__node_type = std::__!
 detail::_Hash_node<std::pair<const sym::symbol, trans::venv::namevalue>, true>]':
/usr/include/c++/4.8.2/bits/hashtable_policy.h:493:8:   required from 'std::__detail::_Map_base<_Key, _Pair, _Alloc, std::__detail::_Select1st, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, true>::mapped_type& std::__detail::_Map_base<_Key, _Pair, _Alloc, std::__detail::_Select1st, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, true>::operator[](const key_type&) [with _Key = sym::symbol; _Pair = std::pair<const sym::symbol, trans::venv::namevalue>; _Alloc = gc_allocator<std::pair<const sym::symbol, trans::venv::namevalue> >; _Equal = trans::venv::nameeq; _H1 = trans::venv::namehash; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>; std::__detail::_Map_base<_Key, _Pair, _Alloc, std::__detail::_Select1st, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, true>::mapped_type = trans::venv::namevalue; std::__detail::_Map_base<!
 _Key, _Pair, _Alloc, std::__detail::_Select1st, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, true>::key_type = sym::symbol]'
/usr/include/c++/4.8.2/bits/unordered_map.h:596:20:   required from 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](const key_type&) [with _Key = sym::symbol; _Tp = trans::venv::namevalue; _Hash = trans::venv::namehash; _Pred = trans::venv::nameeq; _Alloc = gc_allocator<std::pair<const sym::symbol, trans::venv::namevalue> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = trans::venv::namevalue; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = sym::symbol]'
entry.cc:511:33:   required from here
/usr/include/c++/4.8.2/bits/hashtable.h:727:6: error: no matching function for call to 'gc_allocator<std::__detail::_Hash_node<std::pair<const sym::symbol, trans::venv::namevalue>, true> >::construct(std::_Hashtable<sym::symbol, std::pair<const sym::symbol, trans::venv::namevalue>, gc_allocator<std::pair<const sym::symbol, trans::venv::namevalue> >, std::__detail::_Select1st, trans::venv::nameeq, trans::venv::namehash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::__node_type*&, const std::piecewise_construct_t&, std::tuple<const sym::symbol&>, std::tuple<>)'
      _M_node_allocator().construct(__n, std::forward<_Args>(__args)...);
      ^
/usr/include/c++/4.8.2/bits/hashtable.h:727:6: note: candidate is:
In file included from memory.h:86:0,
                 from common.h:35,
                 from entry.h:15,
                 from entry.cc:15:
gc-7.6.0/include/gc_allocator.h:142:8: note: void gc_allocator<GC_Tp>::construct(gc_allocator<GC_Tp>::pointer, const GC_Tp&) [with GC_Tp = std::__detail::_Hash_node<std::pair<const sym::symbol, trans::venv::namevalue>, true>; gc_allocator<GC_Tp>::pointer = std::__detail::_Hash_node<std::pair<const sym::symbol, trans::venv::namevalue>, true>*]
   void construct(pointer __p, const GC_Tp& __val) { new(__p) GC_Tp(__val); }
        ^
gc-7.6.0/include/gc_allocator.h:142:8: note:   candidate expects 2 arguments, 4 provided
make: *** [entry.o] Error 1


More information about the tlbuild mailing list