You may be having some kind of memory shortage. Try compiling without
debug information which will save both memory and disk space.

Do:

make clean
setenv CXXFLAGS -O
configure [whatever configure options you use]
make

And see what happens

Lior.


PS: Shouldn't we have -O as the default compilation setting for a stable
release, -g -O for cvs and pre-releases ?



On Mon, 6 Nov 2000, Yves Capdeboscq wrote:

> Hello,
> 
> When I try to compile lyx-1.1.5fix2 on my machine (a
> sparc-sun-solaris2.7) I get a strange error message at the end of the
> compilation:
> 
> Making all in intl
> Making all in po
> Making all in src
> make  all-recursive
> Making all in mathed
> Making all in insets
> Making all in support
> /bin/sh ../libtool --mode=link g++  -g -O2 -fno-rtti -fno-exceptions  -o
> lyx  BufferView.o BufferView2.o BufferView_pimpl.o Bullet.o  Chktex.o
> ColorHandler.o CutAndPaste.o DepTable.o FontInfo.o  FontLoader.o
> ImportLaTeX.o ImportNoweb.o LColor.o LaTeX.o  LaTeXFeatures.o LaTeXLog.o
> Literate.o LyXAction.o LyXSendto.o LyXView.o  Painter.o PainterBase.o
> PaperLayout.o ParagraphExtra.o Spacing.o  TableLayout.o TabularLayout.o
> TextCache.o ToolbarDefaults.o  UpdateInset.o WorkArea.o bmtable.o
> buffer.o bufferlist.o bufferparams.o  bufferview_funcs.o bullet_forms.o
> bullet_forms_cb.o chset.o combox.o  credits.o credits_form.o debug.o
> filedlg.o font.o form1.o intl.o  kbmap.o kbsequence.o language.o
> lastfiles.o latexoptions.o layout.o  layout_forms.o lyx.o lyx_cb.o
> lyx_gui.o lyx_gui_misc.o lyx_main.o  lyx_sendfax.o lyx_sendfax_main.o
> lyx_sty.o lyxfont.o lyxfr0.o lyxfr1.o  lyxfunc.o lyxlex.o lyxlex_pimpl.o
> lyxlookup.o lyxrc.o lyxserver.o  lyxvc.o main.o menus.o minibuffer.o
> paragraph.o print_form.o screen.o  sp_form.o spellchecker.o table.o
> tabular.o tex-accent.o tex-strings.o  texoptions.o texrow.o text.o
> text2.o toolbar.o tracer.o trans.o  trans_mgr.o undo.o vc-backend.o
> vspace.o mathed/libmathed.la insets/libinsets.la support/libsupport.la
> -lforms -lXpm -lSM -lICE -liberty -lc -lm   -L/usr/openwin/lib
> -R/usr/openwin/lib -lX11 -lsocket  -lnsl
> g++ -g -O2 -fno-rtti -fno-exceptions -o lyx BufferView.o BufferView2.o
> BufferView_pimpl.o Bullet.o Chktex.o ColorHandler.o CutAndPaste.o
> DepTable.o FontInfo.o FontLoader.o ImportLaTeX.o ImportNoweb.o LColor.o
> LaTeX.o LaTeXFeatures.o LaTeXLog.o Literate.o LyXAction.o LyXSendto.o
> LyXView.o Painter.o PainterBase.o PaperLayout.o ParagraphExtra.o
> Spacing.o TableLayout.o TabularLayout.o TextCache.o ToolbarDefaults.o
> UpdateInset.o WorkArea.o bmtable.o buffer.o bufferlist.o bufferparams.o
> bufferview_funcs.o bullet_forms.o bullet_forms_cb.o chset.o combox.o
> credits.o credits_form.o debug.o filedlg.o font.o form1.o intl.o kbmap.o
> kbsequence.o language.o lastfiles.o latexoptions.o layout.o
> layout_forms.o lyx.o lyx_cb.o lyx_gui.o lyx_gui_misc.o lyx_main.o
> lyx_sendfax.o lyx_sendfax_main.o lyx_sty.o lyxfont.o lyxfr0.o lyxfr1.o
> lyxfunc.o lyxlex.o lyxlex_pimpl.o lyxlookup.o lyxrc.o lyxserver.o
> lyxvc.o main.o menus.o minibuffer.o paragraph.o print_form.o screen.o
> sp_form.o spellchecker.o table.o tabular.o tex-accent.o tex-strings.o
> texoptions.o texrow.o text.o text2.o toolbar.o tracer.o trans.o
> trans_mgr.o undo.o vc-backend.o vspace.o mathed/.libs/libmathed.a
> insets/.libs/libinsets.a support/.libs/libsupport.a -lforms -lXpm -lSM
> -lICE -liberty -lc -lm -L/usr/openwin/lib -lX11 -lsocket -lnsl
> -R/usr/openwin/lib -R/usr/openwin/lib
> ld: fatal: file /dev/zero: cannot mmap file: Not enough space
> ld: elf error: file lyx: elf_update: Memory allocation error: output
> file space: Not enough space
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `lyx'
> Current working directory /tmp/lyx-1.1.5fix2/src
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /tmp/lyx-1.1.5fix2/src
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive-am'
> Current working directory /tmp/lyx-1.1.5fix2/src
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> 
> Is this a known error (has anybody tried to compile this version on this
> machine) or is it a local problem with my compiler (gcc 2.95,2, newly
> installed) ?
> 
> Thanks.
> 
> By the way, when I try to compile older versions, I have even more
> problems
> For example for lyx-1.1.4
> Making all in intl
> Making all in po
> Making all in src
> make  all-recursive
> Making all in mathed
> /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> -I../../src -I../../images -I./../  -I/usr/openwin/include  -g -O2
> -fno-rtti -fno-exceptions -c formula.C
> g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I../../images -I./../
> -I/usr/openwin/include -g -O2 -fno-rtti -fno-exceptions -c formula.C -o
> formula.o
> In file included from /usr/local/include/forms.h:968,
>                  from ../../src/lyxfont.h:18,
>                  from ../../src/insets/lyxinset.h:20,
>                  from formula.h:24,
>                  from formula.C:25:
> /usr/openwin/include/X11/Xlib.h:2063: ANSI C++ forbids declaration
> `XSetTransientForHint' with no type
> (hundreds of message like this)
> 
> any idea?
> 
> Thanks again.
> 
> 
> 

Reply via email to