QuantLib + boost 1.55

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

QuantLib + boost 1.55

Vasiliy Afonin

Hello,

I am using OS X 10.9(I am also newbie in unix); boost 1.55+no_single+no_static+python27 and I am trying to make QuantLib work on python 2.7. 

I follow the same procedure as in QuantLib OS X installation and I have the following warning during ./configure of QuantLib:

checking for Boost unit-test framework... no
configure: WARNING: Boost unit-test framework not found.
configure: WARNING: The test suite will be disabled.

I looked on the Internet and found a thread with the same problem http://help.lockergnome.com/linux/Bug-425923-quantlib-FTBFS-boost-libraries--ftopict452445.html. However, it was long ago and as far as I understood the problem was associated with 'new' boost 1.34 and was solved by an update. 
 
After the installation of QuantLib. I install swig without perl java and ruby(there were some problems with them during making). 
I run python setup.py test and get an error:

ImportError: dlopen(build/lib.macosx-10.5-x86_64-2.7/QuantLib/_QuantLib.so, 2): Symbol not found: __ZThn104_N8QuantLib19CappedFlooredCoupon6updateEv
  Referenced from: build/lib.macosx-10.5-x86_64-2.7/QuantLib/_QuantLib.so
  Expected in: dynamic lookup

I also tried to use pyql and got a similar error while testing:
quantlib.test.test_bonds (unittest.loader.ModuleImportFailure) ... ERROR
test_iteration_on_date_list (quantlib.test.test_calendar.TestDateList) ... ok
test_adjust_business_day (quantlib.test.test_calendar.TestQuantLibCalendar) ... make: *** [tests] Segmentation fault: 11
 
I think that these errors are binded somehow. It seems that boost works inappropriately.
Could you please help me to solve this problem?
Best,
Vasily

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

Didrik Pinte-5
Hi Vasiliy,

I have encountered the very same issue. It seems to be down to the linking process on MacOSX 10.9. Using nm on the dylib shows clearly that the mangled names are not available in the shared library. Haven't found the solution yet.

-- Didrik


On 10 December 2013 15:43, Vasiliy Afonin <[hidden email]> wrote:

Hello,

I am using OS X 10.9(I am also newbie in unix); boost 1.55+no_single+no_static+python27 and I am trying to make QuantLib work on python 2.7. 

I follow the same procedure as in QuantLib OS X installation and I have the following warning during ./configure of QuantLib:

checking for Boost unit-test framework... no
configure: WARNING: Boost unit-test framework not found.
configure: WARNING: The test suite will be disabled.

I looked on the Internet and found a thread with the same problem http://help.lockergnome.com/linux/Bug-425923-quantlib-FTBFS-boost-libraries--ftopict452445.html. However, it was long ago and as far as I understood the problem was associated with 'new' boost 1.34 and was solved by an update. 
 
After the installation of QuantLib. I install swig without perl java and ruby(there were some problems with them during making). 
I run python setup.py test and get an error:

ImportError: dlopen(build/lib.macosx-10.5-x86_64-2.7/QuantLib/_QuantLib.so, 2): Symbol not found: __ZThn104_N8QuantLib19CappedFlooredCoupon6updateEv
  Referenced from: build/lib.macosx-10.5-x86_64-2.7/QuantLib/_QuantLib.so
  Expected in: dynamic lookup

I also tried to use pyql and got a similar error while testing:
quantlib.test.test_bonds (unittest.loader.ModuleImportFailure) ... ERROR
test_iteration_on_date_list (quantlib.test.test_calendar.TestDateList) ... ok
test_adjust_business_day (quantlib.test.test_calendar.TestQuantLibCalendar) ... make: *** [tests] Segmentation fault: 11
 
I think that these errors are binded somehow. It seems that boost works inappropriately.
Could you please help me to solve this problem?
Best,
Vasily

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

aazout
Was this issue fixed? I am struggling with the same problem on Mavericks.
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

aazout
Looks like this fixes this issue:

To build the library on Mac OS X 10.9, the QuantLib library must be linked
against libstdc++. To do so, set the environment flags `CXXFLAGS` and `LDFLAGS`
to `-stlib=libstdc++ -mmacosx-version-min=10.6` before compiling from source.

Thanks,
Albert
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

Luigi Ballabio
Thanks, I've added the fix to the installation instructions on the site.

Luigi

On Thu, Feb 27, 2014 at 11:30 PM, aazout <[hidden email]> wrote:

> Looks like this fixes this issue:
>
> To build the library on Mac OS X 10.9, the QuantLib library must be linked
> against libstdc++. To do so, set the environment flags `CXXFLAGS` and
> `LDFLAGS`
> to `-stlib=libstdc++ -mmacosx-version-min=10.6` before compiling from
> source.
>
> Thanks,
> Albert
>
>
>
> --
> View this message in context: http://quantlib.10058.n7.nabble.com/QuantLib-boost-1-55-tp14715p15042.html
> Sent from the quantlib-dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> QuantLib-dev mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-dev



--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

tulassay
Hello,
I am also having a linking issue that might be related, with ld complaining about  
> ld: symbol(s) not found for architecture x86_64

This is on Mac OS X 10.9.2, with QuantLib 1.4 & Boost 1.55, binaries installed via Homebrew.
I tried to rebuild QuantLib with the below flags set, but it didn't help.
Any suggestions?
thanks
Zsolt


<quote author="Luigi Ballabio">
Thanks, I've added the fix to the installation instructions on the site.

Luigi

On Thu, Feb 27, 2014 at 11:30 PM, aazout <[hidden email]> wrote:
> Looks like this fixes this issue:
>
> To build the library on Mac OS X 10.9, the QuantLib library must be linked
> against libstdc++. To do so, set the environment flags `CXXFLAGS` and
> `LDFLAGS`
> to `-stlib=libstdc++ -mmacosx-version-min=10.6` before compiling from
> source.
>
> Thanks,
> Albert
>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

tulassay
Never mind, I figured it out
thanks
Zsolt
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

romu
Hi,

Could you tell me how you fixed this issue?

I followed the recommandations of Luigi and it does not work.

Thank's in advance
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

auser
In reply to this post by tulassay
Can you please help us with how to solve the issue?
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

Luigi Ballabio
This was suggested earlier in the thread. Does it fix the issue?

--------------------
To build the library on Mac OS X 10.9, the QuantLib library must be linked
against libstdc++. To do so, set the environment flags `CXXFLAGS` and
`LDFLAGS`
to `-stlib=libstdc++ -mmacosx-version-min=10.6` before compiling from
source.


On Mon, Nov 17, 2014 at 2:51 AM, auser <[hidden email]> wrote:
Can you please help us with how to solve the issue?




--
View this message in context: http://quantlib.10058.n7.nabble.com/QuantLib-boost-1-55-tp14715p16038.html
Sent from the quantlib-dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev



--

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

auser
Hey Luigi,

Thanks for your message this indeed solves the issue.
One small correction: stdlib instead of stlib. It is also in one of your SO posts.
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

Luigi Ballabio
Thanks, it's fixed now.

Luigi

On Mon, Nov 17, 2014 at 7:50 PM, auser <[hidden email]> wrote:
Hey Luigi,

Thanks for your message this indeed solves the issue.
One small correction: stdlib instead of stlib. It is also in one of your SO
posts.




--
View this message in context: http://quantlib.10058.n7.nabble.com/QuantLib-boost-1-55-tp14715p16048.html
Sent from the quantlib-dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev



--

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

jasonhsing
Hi Luigi,

I have set CXXFLAGS and LDFLAGS to -stdlib=libstdc++ -mmacosx-version-min=10.6.
But the Quantlib still cannot work, because of a clang: error:
         invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later).

Any suggestions?
Thank you so much.

Jason
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib + boost 1.55

Luigi Ballabio
Google suggests to try -mmacosx-version-min=10.7 instead.

Luigi

On Wed, Dec 3, 2014 at 2:50 AM, jasonhsing <[hidden email]> wrote:
Hi Luigi,

I have set CXXFLAGS and LDFLAGS to -stdlib=libstdc++
-mmacosx-version-min=10.6.
But the Quantlib still cannot work, because of a clang: error:
         invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or
later).

Any suggestions?
Thank you so much.
<http://quantlib.10058.n7.nabble.com/file/n16099/Screen_Shot_2014-12-02_at_%E4%B8%8B%E5%8D%888.jpg>
Jason



--
View this message in context: http://quantlib.10058.n7.nabble.com/QuantLib-boost-1-55-tp14715p16099.html
Sent from the quantlib-dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev



--

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev