I am trying to compile lyx-1.4.0cvs in order to port the LyX/Mac
patches from 1.3.x.  Unfortunately, the build stops dead with
gcc-2.95.2 (the only Apple compiler that can handle lyx-1.3.x) at:


source='formulabase.C' object='formulabase.lo' libtool=yes \
depfile='.deps/formulabase.Plo' tmpdepfile='.deps/formulabase.TPlo' \
depmode=gcc /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ 
-I../../boost    -g -O -Wno-non-template-friend -ftemplate-depth-30 -W -Wall -c -o 
formulabase.lo `test -f 'formulabase.C' || echo './'`formulabase.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -g -O 
-Wno-non-template-friend -ftemplate-depth-30 -W -Wall -c formulabase.C 
-Wp,-MD,.deps/formulabase.TPlo
In file included from ../../src/support/debugstream.h:17,
                 from ../../src/debug.h:16,
                 from formulabase.C:31:
../../boost/boost/test/detail/nullstream.hpp:20: ostream: No such file or directory
../../boost/boost/test/detail/nullstream.hpp:21: streambuf: No such file or directory
formulabase.C:818: warning: #warning pretty ugly
make[3]: *** [formulabase.lo] Error 1


When I switch to gcc-3.3 the 1.4.0cvs build stops at:


source='insetfloat.C' object='insetfloat.lo' libtool=yes \
depfile='.deps/insetfloat.Plo' tmpdepfile='.deps/insetfloat.TPlo' \
depmode=gcc3 /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ 
-I../../boost    -g -O -fno-exceptions -W -Wall -c -o insetfloat.lo `test -f 
'insetfloat.C' || echo './'`insetfloat.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -g -O -fno-exceptions -W 
-Wall -c insetfloat.C -MT insetfloat.lo -MD -MP -MF .deps/insetfloat.TPlo
In file included from ../../boost/boost/type_traits/conversion_traits.hpp:19,
                 from ../../boost/boost/signals/detail/signals_common.hpp:48,
                 from ../../boost/boost/signals/connection.hpp:19,
                 from ../../boost/boost/signals/signal_template.hpp:24,
                 from ../../boost/boost/signals/signal0.hpp:30,
                 from ../../src/buffer.h:22,
                 from insetfloat.C:16:
../../boost/boost/type_traits/is_convertible.hpp:274: warning: use of `long 
   double' type; its size may change in a future release
../../boost/boost/type_traits/is_convertible.hpp:274: warning: (Long double 
   usage is reported only once for each file.
../../boost/boost/type_traits/is_convertible.hpp:274: warning: To disable this 
   warning, use -Wno-long-double.)
insetfloat.C: In member function `void InsetFloat::addToToc(lyx::toc::TocList&, 
   const Buffer&) const':
insetfloat.C:395: error: call of overloaded `tostr(long unsigned int)' is 
   ambiguous
../../src/support/tostr.h:21: error: candidates are: const std::string 
   tostr(bool)
../../src/support/tostr.h:23: error:                 const std::string 
   tostr(int)
../../src/support/tostr.h:25: error:                 const std::string 
   tostr(unsigned int)
../../src/support/tostr.h:27: error:                 const std::string 
   tostr(long int)
../../src/support/tostr.h:29: error:                 const std::string 
   tostr(double)
../../src/support/tostr.h:31: error:                 const std::string 
   tostr(const std::string&) <near match>
make[3]: *** [insetfloat.lo] Error 1


Gcc-2.95.2 (which can build lyx-1.3.x), and a gcc-3.1 & gcc-3.3 that
cannot compile lyx-1.3.x, are the only compilers available on MacOSX.
I'd welcome suggestions on getting lyx-1.4.0cvs to compile so I can
update the various LyX/Mac patches.  Thanks.
-- 

Ronald Florence                         www.18james.com

Reply via email to