Posted by
SourceForge.net on
URL: http://quantlib.414.s1.nabble.com/quantlib-Bugs-2599416-Failure-to-compile-on-ubuntu-tp12983.html
Bugs item #2599416, was opened at 2009-02-14 13:11
Message generated for change (Comment added) made by lballabio
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2599416&group_id=12740Please 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: Luigi Ballabio (lballabio)
Date: 2009-09-29 11:33
Message:
I don't remember having this problem with the past few Ubuntu versions.
Does it work with newer versions?
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-07-20 22:24
Message:
Today I compiled QuantLib 0.9.7 on Ubuntu 9.04 using gcc 4.3.3-5ubuntu4,
libboost 1.37 successfully. Marco (marco dot krohn at gmx dot de)
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-02-16 15: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------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev