RE: [Quickfix-developers] Compiling Error - Linux Solution
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2004-03-17 15:39:30
|
There really isn't a good way to answer that because it depends on the version of gcc you are using. Some are greedier than others. What version are you using? What is generally true with gcc compilers is they are incredibly inneficient when compiling templates, and our unit test framework is heavily template based. I would like to change this because it also slows down compile times. I would try to compile without the unit tests for now. You will have to rely on the acceptance tests to verify the build is good. To disable compilation of the unit tests just open op the quickfix/src/C++/Makefile.am and comment out the SUBDIRS = test --- "Leanne T. Smith" <le...@en...> wrote: > Oren - > > Do you happen to know the minimal RAM & virtual > memory needed to compile > quickfix? I'd rather compile quickfix in production > mode. > > Here are my RAM & virtual memory stats. > > 08:15:47 up 13 days, 15:50, 1 user, load average: > 0.00, 0.24, 0.34 > 42 processes: 41 sleeping, 1 running, 0 zombie, 0 > stopped > CPU states: 0.4% user, 0.2% system, 0.0% nice, > 99.4% idle > Mem: 124700K total, 113160K used, 11540K > free, 25276K buffers > Swap: 305224K total, 22728K used, 282496K > free, 33584K cached > > I set CXXFLAGS="-O0" where it was originally set to > CXXFLAGS="-g" and > re-ran ./configure. I'm still unable to compile. Any > ideas? > > Thanks! > > > On Wed, 2004-03-17 at 01:41, Miller, Oren wrote: > > Leanne, > > > > I believe when this happens it generally means > that g++ doesn't have enough memory available to it. > Any idea how much ram and virtual memory you have > allocated to that box? > > > > One thing you can try without messing around with > any of that stuff is to turn off compiler > optimizations. This should lessen the memory > requirement. Just set the CXXFLAGS environment > variable to -O0 and run ./configure and make again. > See if that pulls you through the compilation with > your current configuration. > > > > You probably won't want to run in production with > that build but it will at least get you up and > running while you resolve the memory issue. > > > > --oren > > > > -----Original Message----- > > From: Leanne T. Smith [mailto:le...@en...] > > Sent: Tue 3/16/2004 4:01 PM > > To: qui...@li... > > Cc: > > Subject: [Quickfix-developers] Compiling Error - > Linux Solution > > I'm receiving a g++ compiling error for QuickFIX > on Linux. I followed > > the Installation Documentation, so I'm not sure I > could be missing. I've > > attached the error below. Please let me know if > you have any idea what I > > might be overlooking. Thanks. > > > > > > lea@fla:~/quickfix$ make > > make all-recursive > > make[1]: Entering directory > `/home/leanne/quickfix' > > Making all in src > > make[2]: Entering directory > `/home/leanne/quickfix/src' > > Making all in C++ > > make[3]: Entering directory > `/home/leanne/quickfix/src/C++' > > Making all in test > > make[4]: Entering directory > `/home/leanne/quickfix/src/C++/test' > > source='MessagesTestCase.cpp' > object='MessagesTestCase.lo' libtool=yes \ > > depfile='.deps/MessagesTestCase.Plo' > > tmpdepfile='.deps/MessagesTestCase.TPlo' \ > > depmode=gcc /bin/sh ../../../depcomp \ > > /bin/sh ../../../libtool --mode=compile g++ > -DHAVE_CONFIG_H -I. -I. > > -I../../.. -I.. -g -O2 -Wall > -I/usr/include/libxml2/libxml > > -I/usr/include/libxml2 -I/include -I/include/linux > -c -o > > MessagesTestCase.lo `test -f > 'MessagesTestCase.cpp' || echo > > './'`MessagesTestCase.cpp > > g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -g > -O2 -Wall > > -I/usr/include/libxml2/libxml > -I/usr/include/libxml2 -I/include > > -I/include/linux -c MessagesTestCase.cpp > > -Wp,-MD,.deps/MessagesTestCase.TPlo -fPIC -DPIC > -o > > .libs/MessagesTestCase.o > > g++: Internal compiler error: program cc1plus got > fatal signal 9 > > make[4]: *** [MessagesTestCase.lo] Error 1 > > make[4]: Leaving directory > `/home/leanne/quickfix/src/C++/test' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory > `/home/leanne/quickfix/src/C++' > > make[2]: *** [all-recursive] Error 1 > > make[2]: Leaving directory > `/home/leanne/quickfix/src' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/leanne/quickfix' > > make: *** [all] Error 2 > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux > Tutorials > > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > > GenToo technologies. Learn everything from > fundamentals to system > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Quickfix-developers mailing list > > Qui...@li... > > > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux > Tutorials > > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > > GenToo technologies. Learn everything from > fundamentals to system > > > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > > _______________________________________________ > > Quickfix-developers mailing list > > Qui...@li... > > > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com |