LyX-1.4.3 compiler error on redhat-7.3


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers LyX-1.4.3 compiler error on redhat-7.3
# 1  
Old 10-05-2006
LyX-1.4.3 compiler error on redhat-7.3

Hi There,

I'm trying to install LyX 1.4.3 on a machine running Redhat 7.3. I can't upgrade the OS since I don't have root, but I've been given permission to install sw into pkgs by the Sys Admins.

./configure using the Qt frontend worked, but when I then enter make I get:

make[5]: Entering directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs/filesystem/src'
if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../../boost/libs/filesystem/src -I../../../../src -DBOOST_USER_CONFIG="<config.h>" -I../../../../../boost -I/usr/X11R6/include -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -O2 -MT convenience.lo -MD -MP -MF ".deps/convenience.Tpo" -c -o convenience.lo ../../../../../boost/libs/filesystem/src/convenience.cpp; \then mv -f ".deps/convenience.Tpo" ".deps/convenience.Plo"; else rm -f ".deps/convenience.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I../../../../../boost/libs/filesystem/src -I../../../../src "-DBOOST_USER_CONFIG=<config.h>" -I../../../../../boost -I/usr/X11R6/include -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -O2 -MT convenience.lo -MD -MP -MF .deps/convenience.Tpo -c ../../../../../boost/libs/filesystem/src/convenience.cpp -o convenience.o
if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../../boost/libs/filesystem/src -I../../../../src -DBOOST_USER_CONFIG="<config.h>" -I../../../../../boost -I/usr/X11R6/include -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -O2 -MT exception.lo -MD -MP -MF ".deps/exception.Tpo" -c -o exception.lo ../../../../../boost/libs/filesystem/src/exception.cpp; \
then mv -f ".deps/exception.Tpo" ".deps/exception.Plo"; else rm -f ".deps/exception.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I../../../../../boost/libs/filesystem/src -I../../../../src "-DBOOST_USER_CONFIG=<config.h>" -I../../../../../boost -I/usr/X11R6/include -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -O2 -MT exception.lo -MD -MP -MF .deps/exception.Tpo -c ../../../../../boost/libs/filesystem/src/exception.cpp -o exception.o
../../../../../boost/libs/filesystem/src/exception.cpp: In method
`boost::filesystem::filesystem_error::filesystem_e rror (const string &, const string &)':
../../../../../boost/libs/filesystem/src/exception.cpp:220: exception handling disabled, use
-fexceptions to enable
../../../../../boost/libs/filesystem/src/exception.cpp:220: confused by earlier errors, bailing out
make[5]: *** [exception.lo] Error 1
make[5]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs/filesystem/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs/filesystem/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs/filesystem'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost'
make: *** [all-recursive] Error 1

I've been using Linux for years, but I've never administered it, so I'm not entirely sure how to make sense out of all this. Is something missing from the path? Is something not installed on our system?

I'd appreciate any help or advice.

Thanks
# 2  
Old 10-05-2006
Ok, first thing is to understand how to use the code brackets so you can
correctly post the output of scripts. When you're ready to paste in your
code, type in:

Image

Then insert your block of code and then close the code block.

Image

So it's a bit more readable and looks something like this:

Code:
make[5]: Entering directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs/filesystem/src'
if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../../boost/libs/filesystem/src -I../../../../src -DBOOST_USER_CONFIG="<config.h>" -I../../../../../boost -I/usr/X11R6/include -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -O2 -MT convenience.lo -MD -MP -MF ".deps/convenience.Tpo" -c -o convenience.lo ../../../../../boost/libs/filesystem/src/convenience.cpp; \
then mv -f ".deps/convenience.Tpo" ".deps/convenience.Plo"; else rm -f ".deps/convenience.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I../../../../../boost/libs/filesystem/src -I../../../../src "-DBOOST_USER_CONFIG=<config.h>" -I../../../../../boost -I/usr/X11R6/include -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -O2 -MT convenience.lo -MD -MP -MF .deps/convenience.Tpo -c ../../../../../boost/libs/filesystem/src/convenience.cpp -o convenience.o
if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../../boost/libs/filesystem/src -I../../../../src -DBOOST_USER_CONFIG="<config.h>" -I../../../../../boost -I/usr/X11R6/include -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -O2 -MT exception.lo -MD -MP -MF ".deps/exception.Tpo" -c -o exception.lo ../../../../../boost/libs/filesystem/src/exception.cpp; \
then mv -f ".deps/exception.Tpo" ".deps/exception.Plo"; else rm -f ".deps/exception.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I../../../../../boost/libs/filesystem/src -I../../../../src "-DBOOST_USER_CONFIG=<config.h>" -I../../../../../boost -I/usr/X11R6/include -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -O2 -MT exception.lo -MD -MP -MF .deps/exception.Tpo -c ../../../../../boost/libs/filesystem/src/exception.cpp -o exception.o
../../../../../boost/libs/filesystem/src/exception.cpp: In method `boost::filesystem::filesystem_error::filesystem_e rror (const string &, const string &)':
../../../../../boost/libs/filesystem/src/exception.cpp:220: exception handling disabled, use -fexceptions to enable
../../../../../boost/libs/filesystem/src/exception.cpp:220: confused by earlier errors, bailing out
make[5]: *** [exception.lo] Error 1
make[5]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs/filesystem/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs/filesystem/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs/filesystem'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost/libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/w/11/pkgs/lyx-1.4.3/Objdir/boost'
make: *** [all-recursive] Error 1

This way, while it gets rather lengthy, it is quite a bit more readable and
someone might be able to figure out what's going on.

I did a quick google search and found this link:

http://www.openoffice.org/issues/show_bug.cgi?id=56716

It appears that perhaps with the new gcc compiler, the code needs to have
exceptions turned on rather than disabled (see the -f flags in your two g++
lines). While the link references OpenOffice, the bug is exactly the one
you're experiencing. It looks like LyX might not be compatible with the gcc
that's on your system. You might check out the lyx folks and see if they
have an updated bit of source or a patch.

I did a quick look at the lyx site and you're trying the most current version.
Perhaps there's a problem with your version of gcc vs what they're
expecting. You might check the mailing list for the software or check out
the bugzilla.lyx.org site and search for the specific error (as I'm running
Safari, it appears I'm not able to search bugzilla).

Carl
# 3  
Old 10-06-2006
Thanks. You were correct in that it seemed to be a gcc problem, I tried intalling earlier versions. Non of the 1.4.x versions worked, but once I whent back to 1.3.x things wrked much better.

I'll try to be better about the way I post code in the future, sorry, I've never really done this before.
# 4  
Old 10-06-2006
Quote:
Originally Posted by dirgni
Thanks. You were correct in that it seemed to be a gcc problem, I tried intalling earlier versions. Non of the 1.4.x versions worked, but once I whent back to 1.3.x things wrked much better.
Cool, I'm glad it finally worked for you. You still might mention it to the group so they can fix it.

Quote:
I'll try to be better about the way I post code in the future, sorry, I've never really done this before.
I wasn't smacking you personally Smilie I figure others are reading this and many people post messages with code or output snippets that's hard to read. I make the effort here to help the others who are trying to help. As you can see, it's lots easier to troubleshoot the problem when the output or code is legible Smilie

Carl
 
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Linux

Xlc compiler on Redhat Linux

Hi , Currently i have my c and pro*c code got compiled in IBM POWER - AIX machine with xlc compiler version 9. We are planning to migrate all our applications from IBM POWER - AIX to Redhat Linux. Can i use the same current (IBM AIX) xlc compiler with the same compiling... (3 Replies)
Discussion started by: mugunthanvh
3 Replies

2. Programming

How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?

To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first? The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies
Login or Register to Ask a Question