You are not logged in.

#1 2011-05-25 05:35:34

bonox
Member
Registered: 2011-05-25
Posts: 2

Quantlib package build problem

Dear Archers

While trying to build the Quantlib package from AUR ,I get the following error: 


BermudanSwaption.Tpo" -c -o BermudanSwaption.o BermudanSwaption.cpp; \
    then mv -f ".deps/BermudanSwaption.Tpo" ".deps/BermudanSwaption.Po"; else rm -f ".deps/BermudanSwaption.Tpo"; exit 1; fi
In file included from ../../ql/math/interpolations/all.hpp:18:0,
                 from ../../ql/math/all.hpp:31,
                 from ../../ql/quantlib.hpp:46,
                 from BermudanSwaption.cpp:22:
../../ql/math/interpolations/multicubicspline.hpp:276:33: error: reference 'y2_' cannot be declared 'mutable' [-fpermissive]
../../ql/math/interpolations/multicubicspline.hpp:277:34: error: reference 'v_' cannot be declared 'mutable' [-fpermissive]
../../ql/math/interpolations/multicubicspline.hpp:336:33: error: reference 'y2_' cannot be declared 'mutable' [-fpermissive]
../../ql/math/interpolations/multicubicspline.hpp:337:34: error: reference 'v_' cannot be declared 'mutable' [-fpermissive]
../../ql/math/interpolations/multicubicspline.hpp:337:39: error: reference 'v1_' cannot be declared 'mutable' [-fpermissive]
../../ql/math/interpolations/multicubicspline.hpp:337:45: error: reference 'v2_' cannot be declared 'mutable' [-fpermissive]
make[2]: *** [BermudanSwaption.o] Error 1

Any suggestions would be appreciated.

Offline

#2 2011-05-25 14:28:10

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Quantlib package build problem

https://bugs.launchpad.net/ubuntu/+sour … bug/770950

http://www.mail-archive.com/debian-bugs … 98780.html

there are some better explanations of what it means, but it looks like using -fpermissive right now would work,
also, reporting this upstream would probably be the best and getting their patch applied would be ideal.

Offline

#3 2011-05-26 02:19:31

bonox
Member
Registered: 2011-05-25
Posts: 2

Re: Quantlib package build problem

Thanks for the reply,

  I added -fpermissive to CXXFLAGS in /etc/makepkg.conf and I could build the package,
  Although the warnings are still there.

Eventually I reported a bug to https://sourceforge.net/projects/quantlib/develop

Offline

#4 2011-05-26 02:43:32

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Quantlib package build problem

great news!

just as a reference, here is the link to the actual bug report:
http://sourceforge.net/tracker/index.ph … tid=112740

Offline

Board footer

Powered by FluxBB