[ quantlib-Bugs-2599416 ] Failure to compile on ubuntu

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-2599416 ] Failure to compile on ubuntu

SourceForge.net
Bugs item #2599416, was opened at 2009-02-14 12:11
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2599416&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Failure to compile on ubuntu

Initial Comment:
Hello,

  I am compiling QuantLib 0.9.7 on my ubuntu machine.
The procedure that I am running is:

$ tar zxvf QuantLib-0.9.7.tar.gz
$ cd QuantLib-0.9.7
$ ./configure
$ make

  but then I will get the following errors at the very ending of the compilation:

make[3]: Entering directory `/tmp/QuantLib-0.9.7/ql'
/bin/bash ../libtool --tag=CXX --mode=link g++  -g -O2 -Wall   -o libQuantLib.la -rpath /usr/local/lib -release 0.9.7 currency.lo default.lo discretizedasset.lo errors.lo exchangerate.lo exercise.lo index.lo interestrate.lo issuer.lo money.lo position.lo prices.lo settings.lo stochasticprocess.lo termstructure.lo timegrid.lo cashflows/libCashFlows.la currencies/libCurrencies.la experimental/libExperimental.la indexes/libIndexes.la instruments/libInstruments.la legacy/libLegacy.la math/libMath.la methods/libMethods.la models/libModels.la pricingengines/libPricingEngines.la processes/libProcesses.la quotes/libQuotes.la termstructures/libTermStructures.la time/libTime.la utilities/libUtilities.la
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.2.4/crtbeginS.o  .libs/currency.o .libs/default.o .libs/discretizedasset.o .libs/errors.o .libs/exchangerate.o .libs/exercise.o .libs/index.o .libs/interestrate.o .libs/issuer.o .libs/money.o .libs/position.o .libs/prices.o .libs/settings.o .libs/stochasticprocess.o .libs/termstructure.o .libs/timegrid.o  -Wl,--whole-archive cashflows/.libs/libCashFlows.a currencies/.libs/libCurrencies.a experimental/.libs/libExperimental.a indexes/.libs/libIndexes.a instruments/.libs/libInstruments.a legacy/.libs/libLegacy.a math/.libs/libMath.a methods/.libs/libMethods.a models/.libs/libModels.a pricingengines/.libs/libPricingEngines.a processes/.libs/libProcesses.a quotes/.libs/libQuotes.a termstructures/.libs/libTermStructures.a time/.libs/libTime.a utilities/.libs/libUtilities.a -Wl,--no-whole-archive  -L/usr/lib/gcc/i486-linux-gnu/4.2.4 -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.2.4/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crtn.o    -Wl,-soname -Wl,libQuantLib-0.9.7.so -o .libs/libQuantLib-0.9.7.so
collect2: ld returned 1 exit status
make[3]: *** [libQuantLib.la] Error 1
make[3]: Leaving directory `/tmp/QuantLib-0.9.7/ql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/QuantLib-0.9.7/ql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/QuantLib-0.9.7/ql'
make: *** [all-recursive] Error 1

The development environment that I am using is:

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

  I have libboost installed, and the version is 1.34.1-4ubuntu3 (I install the ubuntu package)

  Any solutions?
  Thank you very much.

WONG Hang.
[hidden email]





----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2009-02-16 14:32

Message:
You are not getting an direct error message from the compiler / linker but
just a failure message.  Could you have other issues like bad ram?  Could
the compile have been killed for excessive ram usage?  Building QL is quite
demanding.

I don't think there is a reason it should not build on Ubuntu has the
Debian packages have built fine on a number of compiler and linker
releases.

Dirk (Debian maintainer for QL)

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2599416&group_id=12740

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev