[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building roadrunner from your salsa branch



Hi Balbir,

I hope you don't mind that I'm quoting you in public.  We are a team
that just discusses everything openly and to be honest I do not know the
answer to your question and thus I'm trying to gather more input by
quoting you.

On Tue, Feb 16, 2021 at 01:06:07PM +0000, Balbir Thomas wrote:
> Thank you for packaging libroadrunner.

It is actually only an *attempt* to package that library (which
I updated in Git[1] now).

> I am trying to
> build it for myself from your salsa branch, on 
> debian/stable. All dependencies seem to be available.
> However build fails since it requires rr-libstruct.

Are you sure about this?  I get:

cd /build/libroadrunner-1.5.4/obj-x86_64-linux-gnu/source && /usr/bin/c++ -DBUILD_LLVM -DEXPORT_RR -DLIBLAX_STATIC -DLIBSBML_STATIC -DLIBSBML_USE_CPP_NAMESPACE -DPOCO_NO_AUTOMATIC_LIBS -DPOCO_STATIC -DSTATIC_LIBSTRUCT -DSTATIC_NLEQ1 -DSTATIC_NLEQ2 -DSTATIC_PUGI -Droadrunner_EXPORTS -I/build/libroadrunner-1.5.4 -I/build/libroadrunner-1.5.4/third_party -I/usr/include/    libxml2 -I/usr/lib/llvm-11/include -I/build/libroadrunner-1.5.4/obj-x86_64-linux-gnu/source -I/build/libroadrunner-1.5.4/source/. -I/usr/include/rr-libstruct -I/usr/include/sbml -I/usr/ include/cvode -g -O2 -ffile-prefix-map=/build/libroadrunner-1.5.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fPIC -o CMakeFiles/  roadrunner.dir/rrExecutableModel.cpp.o -c /build/libroadrunner-1.5.4/source/rrExecutableModel.cpp
/build/libroadrunner-1.5.4/source/rrLogger.cpp: In function ‘Poco::SplitterChannel* rr::getSplitterChannel()’:
/build/libroadrunner-1.5.4/source/rrLogger.cpp:353:29: error: cannot ‘dynamic_cast’ ‘Poco::Logger::getChannel() const()’ (of type ‘using Ptr = class Poco::AutoPtr<Poco::Channel>’ {aka   ‘class Poco::AutoPtr<Poco::Channel>’}) to type ‘class Poco::FormattingChannel*’ (source is not a pointer)
  353 |     FormattingChannel *fc = dynamic_cast<FormattingChannel*>(pocoLogger->getChannel());
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/libroadrunner-1.5.4/source/rrLogger.cpp:355:27: error: cannot ‘dynamic_cast’ ‘Poco::FormattingChannel::getChannel() const()’ (of type ‘using Ptr = class Poco::AutoPtr<Poco::      Channel>’ {aka ‘class Poco::AutoPtr<Poco::Channel>’}) to type ‘class Poco::SplitterChannel*’ (source is not a pointer)
  355 |     SplitterChannel *sc = dynamic_cast<SplitterChannel*>(fc->getChannel());
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/libroadrunner-1.5.4/source/rrLogger.cpp: In function ‘Poco::PatternFormatter* rr::getPatternFormatter()’:
/build/libroadrunner-1.5.4/source/rrLogger.cpp:363:29: error: cannot ‘dynamic_cast’ ‘Poco::Logger::getChannel() const()’ (of type ‘using Ptr = class Poco::AutoPtr<Poco::Channel>’ {aka   ‘class Poco::AutoPtr<Poco::Channel>’}) to type ‘class Poco::FormattingChannel*’ (source is not a pointer)
  363 |     FormattingChannel *fc = dynamic_cast<FormattingChannel*>(pocoLogger->getChannel());
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/libroadrunner-1.5.4/source/rrLogger.cpp:365:28: error: cannot ‘dynamic_cast’ ‘Poco::FormattingChannel::getFormatter() const()’ (of type ‘using Ptr = class Poco::AutoPtr<Poco::    Formatter>’ {aka ‘class Poco::AutoPtr<Poco::Formatter>’}) to type ‘class Poco::PatternFormatter*’ (source is not a pointer)
  365 |     PatternFormatter *pf = dynamic_cast<PatternFormatter*>(fc->getFormatter());
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  6%] Building CXX object source/CMakeFiles/roadrunner.dir/rrRoadRunner.cpp.o


and since I have no solution for this I stopped working on this issue
(and I admit I nearly forgot this project - thanks for bringing it up to
my radar again ;-) ).

> This does not seem to be one of the dependencies
> in debian/control . I have seen the rr-libstruct
> git repository, but could no find any salsa 
> branch with debian packaging.  

Where did you found that repository?
 
> I would be grateful if you know if rr-libstruct
> is packaged for debian.

We can try to package this here and its a very good idea to contact the
Debian Med mailing list about this kind of issues.  May be someone might
have a clue about the build issue above and if you give a pointer to
rr-libstruct we can have a look how to get it packaged.

Kind regards and thanks a lot for your interest

      Andreas.


[1] https://salsa.debian.org/med-team/libroadrunner 

-- 
http://fam-tille.de


Reply to: