Re: What Magic Compiler Is Needed for LyX?

2003-02-08 Thread Andreas Pour
 On Fri, Feb 07, 2003 at 12:30:12PM -0600, Andreas Pour wrote:
 
  For SuSE 8.0, the compile is broken if you set CXXFLAGS in your env.  This is
 
 IF you're fiddling with CXXFLAGS you should know what you're doing.

Hi,

As it happens I know what I am doing, and hence I know that I should not have to
read Makefiles to divine needed but obscure compile flags.  If you do not care
to document your project fully or have your build system comply with standards,
that is your perogative, of course, but I would suggest that belittling those
who try to help the project is not productive for anyone. 

[ ... ]

Ciao,

Dre



Re: What Magic Compiler Is Needed for LyX?

2003-02-08 Thread Andreas Pour
> On Fri, Feb 07, 2003 at 12:30:12PM -0600, Andreas Pour wrote:
> 
> > For SuSE 8.0, the compile is broken if you set CXXFLAGS in your env.  This is
> 
> IF you're fiddling with CXXFLAGS you should know what you're doing.

Hi,

As it happens I know what I am doing, and hence I know that I should not have to
read Makefiles to divine needed but obscure compile flags.  If you do not care
to document your project fully or have your build system comply with standards,
that is your perogative, of course, but I would suggest that belittling those
who try to help the project is not productive for anyone. 

[ ... ]

Ciao,

Dre



Re: What Magic Compiler Is Needed for LyX?

2003-02-07 Thread Andreas Pour

Hi,

Thanks for the various responses.  I have now managed to compile LyX on SuSE 8.0
and Mandrake 9.0 (I assume RH 8.0 will also now compile and I guess SuSE 8.1
needs a compiler upgrade).

The problems appear to be in the build system, and/or lack of documenation in
the INSTALL files to work around these problems.

For SuSE 8.0, the compile is broken if you set CXXFLAGS in your env.  This is
the proper way for someone compiling to set the proper compile flags and hence
setting this to typical values should not break a compile.  If you use an
unusual option, such as '-ftemplate-depth-30', I suggest you get it into the
CXXFLAGS some other way (by appending it to the CXXFLAGS in the Makefile.am, for
example), or make it clear in the documentation this option needs to be
specifically included.

For Mandrake 9.0 and RH 8.0, the problem is that you need to add
-DHAVE_STRERROR to the compile flags, both systems include strerror() in
/usr/include/string.h.  For some reason the build system does not add it based
on the configure values (it stems from configure.ac).  Not sure how to fix it, I
am far from an autoconf guru, but at least I can report the problem :-).

Hope this is helpful,

Dre


Jean-Marc Lasgouttes wrote:
 
  Andreas == Andreas Pour [EMAIL PROTECTED] writes:
 
 Andreas Hi,
 
 Andreas g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost
 Andreas -isystem /usr/X11R6/include -O2 -march=i386 -mcpu=i386
 Andreas -DNDEBUG -O2 -march=i386 -mcpu=i386 -D_GNU_SOURCE -DNDEBUG
 Andreas -DNO_DEBUG -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
 Andreas -pipe -c insetbib.C -Wp,-MD,.deps/insetbib.TPlo
 Andreas ../../boost/boost/shared_ptr.hpp:203: template instantiation
 Andreas depth exceeds maximum of 17
 
 How did you do the compilation? It is not LyX that adds the
 -march=i386 -mcpu=i386 thingies, as far as I know...
 
 OTOH, LyX does add to CXXFLAGS options like -ftemplate-depth-30 that
 would avoid this error.
 
 JMarc



Re: What Magic Compiler Is Needed for LyX?

2003-02-07 Thread Andreas Pour

Hi,

Thanks for the various responses.  I have now managed to compile LyX on SuSE 8.0
and Mandrake 9.0 (I assume RH 8.0 will also now compile and I guess SuSE 8.1
needs a compiler upgrade).

The problems appear to be in the build system, and/or lack of documenation in
the INSTALL files to work around these problems.

For SuSE 8.0, the compile is broken if you set CXXFLAGS in your env.  This is
the proper way for someone compiling to set the proper compile flags and hence
setting this to typical values should not break a compile.  If you use an
unusual option, such as '-ftemplate-depth-30', I suggest you get it into the
CXXFLAGS some other way (by appending it to the CXXFLAGS in the Makefile.am, for
example), or make it clear in the documentation this option needs to be
specifically included.

For Mandrake 9.0 and RH 8.0, the problem is that you need to add
"-DHAVE_STRERROR" to the compile flags, both systems include strerror() in
/usr/include/string.h.  For some reason the build system does not add it based
on the configure values (it stems from configure.ac).  Not sure how to fix it, I
am far from an autoconf guru, but at least I can report the problem :-).

Hope this is helpful,

Dre


Jean-Marc Lasgouttes wrote:
> 
> >>>>> "Andreas" == Andreas Pour <[EMAIL PROTECTED]> writes:
> 
> Andreas> Hi,
> 
> Andreas> g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost
> Andreas> -isystem /usr/X11R6/include -O2 -march=i386 -mcpu=i386
> Andreas> -DNDEBUG -O2 -march=i386 -mcpu=i386 -D_GNU_SOURCE -DNDEBUG
> Andreas> -DNO_DEBUG -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> Andreas> -pipe -c insetbib.C -Wp,-MD,.deps/insetbib.TPlo
> Andreas> ../../boost/boost/shared_ptr.hpp:203: template instantiation
> Andreas> depth exceeds maximum of 17
> 
> How did you do the compilation? It is not LyX that adds the
> -march=i386 -mcpu=i386 thingies, as far as I know...
> 
> OTOH, LyX does add to CXXFLAGS options like -ftemplate-depth-30 that
> would avoid this error.
> 
> JMarc



What Magic Compiler Is Needed for LyX?

2003-02-06 Thread Andreas Pour

Hi,

Congrats on the release and porting LyX to Qt :-).  Unfortunately for me
compilation failed on the three major Linux commercial distros with the attached
logs:

  * SuSE 8.0:  gcc2.95.3.log
  * SuSE 8.1:  gcc3.2-suse81.log
  * Mandrake 9.0 / RedHat 8.0:  gcc3.2-mand90-rh80.log

What compiler is recommended, BTW?

Ciao,

Dre
Making all in insets
make[3]: Entering directory `/usr/src/packages/BUILD/lyx-1.3.0/src/insets'
source='insetbib.C' object='insetbib.lo' libtool=yes \
depfile='.deps/insetbib.Plo' tmpdepfile='.deps/insetbib.TPlo' \
depmode=gcc /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ 
-I../../boost  -isystem /usr/X11R6/include  -O2 -march=i386 -mcpu=i386 -DNDEBUG -O2 
-march=i386 -mcpu=i386 -D_GNU_SOURCE -DNDEBUG -DNO_DEBUG -D_REENTRANT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -pipe -c -o insetbib.lo `test -f 'insetbib.C' || echo 
'./'`insetbib.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem 
/usr/X11R6/include -O2 -march=i386 -mcpu=i386 -DNDEBUG -O2 -march=i386 -mcpu=i386 
-D_GNU_SOURCE -DNDEBUG -DNO_DEBUG -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -pipe 
-c insetbib.C -Wp,-MD,.deps/insetbib.TPlo
../../boost/boost/shared_ptr.hpp:203: template instantiation depth exceeds maximum of 
17
../../boost/boost/shared_ptr.hpp:203:  (use -ftemplate-depth-NN to increase the 
maximum)
../../boost/boost/shared_ptr.hpp:203:   instantiating 
`boost::detail::shared_ptr_traitsboost::signals::detail::cached_return_valueboost::signals::detail::unusable
 '
../../boost/boost/shared_ptr.hpp:203:   instantiated from 
`boost::shared_ptrboost::signals::detail::cached_return_valueboost::signals::detail::unusable
 '
../../boost/boost/signals/detail/slot_call_iterator.hpp:42:   instantiated from 
`boost::signals::detail::slot_call_policiesboost::signals::detail::call_bound0void::callerboost::function0void,allocatorboost::function_base
  ,_Rb_tree_iteratorpairconst 
boost::any,boost::signals::detail::connection_slot_pair,pairconst 
boost::any,boost::signals::detail::connection_slot_pair ,pairconst 
boost::any,boost::signals::detail::connection_slot_pair * '
../../boost/boost/type_traits/is_convertible.hpp:124:   instantiated from 
`boost::detail::is_convertible_implboost::signals::detail::slot_call_policiesboost::signals::detail::call_bound0void::callerboost::function0void,allocatorboost::function_base
  ,_Rb_tree_iteratorpairconst 
boost::any,boost::signals::detail::connection_slot_pair,pairconst 
boost::any,boost::signals::detail::connection_slot_pair ,pairconst 
boost::any,boost::signals::detail::connection_slot_pair *  
,boost::detail::int_convertible'
../../boost/boost/type_traits/is_enum.hpp:91:   instantiated from 
`boost::is_convertibleboost::signals::detail::slot_call_policiesboost::signals::detail::call_bound0void::callerboost::function0void,allocatorboost::function_base
  ,_Rb_tree_iteratorpairconst 
boost::any,boost::signals::detail::connection_slot_pair,pairconst 
boost::any,boost::signals::detail::connection_slot_pair ,pairconst 
boost::any,boost::signals::detail::connection_slot_pair *  
,boost::detail::int_convertible'
../../boost/boost/type_traits/is_enum.hpp:91:   instantiated from 
`boost::detail::is_enum_helperfalse::typeboost::signals::detail::slot_call_policiesboost::signals::detail::call_bound0void::callerboost::function0void,allocatorboost::function_base
  ,_Rb_tree_iteratorpairconst 
boost::any,boost::signals::detail::connection_slot_pair,pairconst 
boost::any,boost::signals::detail::connection_slot_pair ,pairconst 
boost::any,boost::signals::detail::connection_slot_pair *  '
../../boost/boost/type_traits/is_enum.hpp:91:   instantiated from 
`boost::detail::is_enum_implboost::signals::detail::slot_call_policiesboost::signals::detail::call_bound0void::callerboost::function0void,allocatorboost::function_base
  ,_Rb_tree_iteratorpairconst 
boost::any,boost::signals::detail::connection_slot_pair,pairconst 
boost::any,boost::signals::detail::connection_slot_pair ,pairconst 
boost::any,boost::signals::detail::connection_slot_pair *  '
../../boost/boost/type_traits/is_scalar.hpp:36:   instantiated from 
`boost::is_enumboost::signals::detail::slot_call_policiesboost::signals::detail::call_bound0void::callerboost::function0void,allocatorboost::function_base
  ,_Rb_tree_iteratorpairconst 
boost::any,boost::signals::detail::connection_slot_pair,pairconst 
boost::any,boost::signals::detail::connection_slot_pair ,pairconst 
boost::any,boost::signals::detail::connection_slot_pair *  '
../../boost/boost/type_traits/is_scalar.hpp:36:   instantiated from 
`boost::detail::is_scalar_implboost::signals::detail::slot_call_policiesboost::signals::detail::call_bound0void::callerboost::function0void,allocatorboost::function_base
  ,_Rb_tree_iteratorpairconst 
boost::any,boost::signals::detail::connection_slot_pair,pairconst 
boost::any,boost::signals::detail::connection_slot_pair ,pairconst 

What Magic Compiler Is Needed for LyX?

2003-02-06 Thread Andreas Pour

Hi,

Congrats on the release and porting LyX to Qt :-).  Unfortunately for me
compilation failed on the three major Linux commercial distros with the attached
logs:

  * SuSE 8.0:  gcc2.95.3.log
  * SuSE 8.1:  gcc3.2-suse81.log
  * Mandrake 9.0 / RedHat 8.0:  gcc3.2-mand90-rh80.log

What compiler is recommended, BTW?

Ciao,

Dre
Making all in insets
make[3]: Entering directory `/usr/src/packages/BUILD/lyx-1.3.0/src/insets'
source='insetbib.C' object='insetbib.lo' libtool=yes \
depfile='.deps/insetbib.Plo' tmpdepfile='.deps/insetbib.TPlo' \
depmode=gcc /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ 
-I../../boost  -isystem /usr/X11R6/include  -O2 -march=i386 -mcpu=i386 -DNDEBUG -O2 
-march=i386 -mcpu=i386 -D_GNU_SOURCE -DNDEBUG -DNO_DEBUG -D_REENTRANT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -pipe -c -o insetbib.lo `test -f 'insetbib.C' || echo 
'./'`insetbib.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem 
/usr/X11R6/include -O2 -march=i386 -mcpu=i386 -DNDEBUG -O2 -march=i386 -mcpu=i386 
-D_GNU_SOURCE -DNDEBUG -DNO_DEBUG -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -pipe 
-c insetbib.C -Wp,-MD,.deps/insetbib.TPlo
../../boost/boost/shared_ptr.hpp:203: template instantiation depth exceeds maximum of 
17
../../boost/boost/shared_ptr.hpp:203:  (use -ftemplate-depth-NN to increase the 
maximum)
../../boost/boost/shared_ptr.hpp:203:   instantiating 
`boost::detail::shared_ptr_traits'
../../boost/boost/shared_ptr.hpp:203:   instantiated from 
`boost::shared_ptr'
../../boost/boost/signals/detail/slot_call_iterator.hpp:42:   instantiated from 
`boost::signals::detail::slot_call_policies >,_Rb_tree_iterator >'
../../boost/boost/type_traits/is_convertible.hpp:124:   instantiated from 
`boost::detail::is_convertible_impl >,_Rb_tree_iterator > 
&,boost::detail::int_convertible>'
../../boost/boost/type_traits/is_enum.hpp:91:   instantiated from 
`boost::is_convertible >,_Rb_tree_iterator > 
&,boost::detail::int_convertible>'
../../boost/boost/type_traits/is_enum.hpp:91:   instantiated from 
`boost::detail::is_enum_helper::type >,_Rb_tree_iterator > &>'
../../boost/boost/type_traits/is_enum.hpp:91:   instantiated from 
`boost::detail::is_enum_impl >,_Rb_tree_iterator > >'
../../boost/boost/type_traits/is_scalar.hpp:36:   instantiated from 
`boost::is_enum >,_Rb_tree_iterator > >'
../../boost/boost/type_traits/is_scalar.hpp:36:   instantiated from 
`boost::detail::is_scalar_impl >,_Rb_tree_iterator > >'
../../boost/boost/type_traits/is_class.hpp:73:   instantiated from 
`boost::is_scalar >,_Rb_tree_iterator > >'
../../boost/boost/type_traits/is_class.hpp:73:   instantiated from 
`boost::detail::is_class_impl >,_Rb_tree_iterator > >'
../../boost/boost/type_traits/is_empty.hpp:74:   instantiated from 
`boost::is_class >,_Rb_tree_iterator > >'
../../boost/boost/type_traits/is_empty.hpp:74:   instantiated from 
`boost::detail::is_empty_impl >,_Rb_tree_iterator > >'
../../boost/boost/iterator_adaptors.hpp:844:   instantiated from 
`boost::is_empty >,_Rb_tree_iterator > >'
../../boost/boost/iterator_adaptors.hpp:844:   instantiated from 
`boost::compressed_pair<_Rb_tree_iterator