Code Monkey home page Code Monkey logo

Comments (6)

lballabio avatar lballabio commented on June 12, 2024

Was that a clean build? May you try with the 1.33 release candidate at https://github.com/lballabio/QuantLib/releases/tag/v1.33rc, or with 1.33 if it comes out by the time you read this? Thanks!

from quantlib.

ryandesign avatar ryandesign commented on June 12, 2024

Was that a clean build?

I think so. I (or rather MacPorts on my behalf) extracted the 1.30 tarball and configured and began to build it. When I encountered a build error from #1091 I manually patched the file and continued to build without starting from scratch.

May you try with the 1.33 release candidate

Oh! I didn't realize versions newer than 1.30 were available. The automated checking I had programmed into the MacPorts port was looking for tags beginning with "QuantLib-v" and I see you have switched to tags beginning with "v". I will try a newer version.

from quantlib.

ryandesign avatar ryandesign commented on June 12, 2024

With 1.32 and 1.33-rc I did not have to apply any patch for #1091.

With 1.32 linking failed with:

Undefined symbols for architecture x86_64:
  "std::__1::vector<QuantLib::Handle<QuantLib::Quote>, std::__1::allocator<QuantLib::Handle<QuantLib::Quote> > >::~vector()", referenced from:
      BatesModelTest::testDAXCalibration() in batesmodel.o
      QuantLib::InterpolatedZeroCurve<QuantLib::Linear>::InterpolatedZeroCurve(std::__1::vector<QuantLib::Date, std::__1::allocator<QuantLib::Date> > const&, std::__1::vector<double, std::__1::allocator<double> > const&, QuantLib::DayCounter const&, QuantLib::Calendar const&, std::__1::vector<QuantLib::Handle<QuantLib::Quote>, std::__1::allocator<QuantLib::Handle<QuantLib::Quote> > > const&, std::__1::vector<QuantLib::Date, std::__1::allocator<QuantLib::Date> > const&, QuantLib::Linear const&, QuantLib::Compounding, QuantLib::Frequency) in batesmodel.o
      QuantLib::YieldTermStructure::~YieldTermStructure() in batesmodel.o
      QuantLib::YieldTermStructure::~YieldTermStructure() in batesmodel.o
      virtual thunk to QuantLib::YieldTermStructure::~YieldTermStructure() in batesmodel.o
      virtual thunk to QuantLib::YieldTermStructure::~YieldTermStructure() in batesmodel.o
      QuantLib::ZeroYieldStructure::~ZeroYieldStructure() in batesmodel.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [quantlib-test-suite] Error 1

With 1.33-rc the error was:

Undefined symbols for architecture x86_64:
  "std::__1::vector<QuantLib::Handle<QuantLib::Quote>, std::__1::allocator<QuantLib::Handle<QuantLib::Quote> > >::~vector()", referenced from:
      QuantLibTests::BatesModelTests::testDAXCalibration::test_method() in batesmodel.o
      QuantLib::InterpolatedZeroCurve<QuantLib::Linear>::InterpolatedZeroCurve(std::__1::vector<QuantLib::Date, std::__1::allocator<QuantLib::Date> > const&, std::__1::vector<double, std::__1::allocator<double> > const&, QuantLib::DayCounter const&, QuantLib::Calendar const&, std::__1::vector<QuantLib::Handle<QuantLib::Quote>, std::__1::allocator<QuantLib::Handle<QuantLib::Quote> > > const&, std::__1::vector<QuantLib::Date, std::__1::allocator<QuantLib::Date> > const&, QuantLib::Linear const&, QuantLib::Compounding, QuantLib::Frequency) in batesmodel.o
      QuantLib::YieldTermStructure::~YieldTermStructure() in batesmodel.o
      QuantLib::YieldTermStructure::~YieldTermStructure() in batesmodel.o
      virtual thunk to QuantLib::YieldTermStructure::~YieldTermStructure() in batesmodel.o
      virtual thunk to QuantLib::YieldTermStructure::~YieldTermStructure() in batesmodel.o
      QuantLib::ZeroYieldStructure::~ZeroYieldStructure() in batesmodel.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [quantlib-test-suite] Error 1

Trying a different compiler (llvm.org clang 16.0.6) to build 1.33-rc, the build succeeds.

from quantlib.

lballabio avatar lballabio commented on June 12, 2024

The instructions at https://www.quantlib.org/install/macosx.shtml suggest setting some particular CXXFLAGS and LDFLAGS based on the OS version --- do they make any difference?

from quantlib.

github-actions avatar github-actions commented on June 12, 2024

This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

from quantlib.

github-actions avatar github-actions commented on June 12, 2024

This issue was automatically closed because it has been stalled for two weeks with no further activity.

from quantlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.