Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8892

ROOT classical build cannot use external Unuran

    XMLWordPrintable

    Details

    • Development:

      Description

      I cannot finish compiling ROOT on my machine, because I have external Unuran, which is detected, but the build system cannot use it:

      ROOTIGNOREPREFIX=1 bin/rootcling -rootbuild -f math/unuran/src/G__Unuran.cxx -s lib/libUnuran.so -rml libUnuran.so -rmf lib/libUnuran.rootmap -m lib/libCore_rdict.pcm -m lib/libHist._rdict.pcm -m lib/libMathCore._rdict.pcm -c  /home/amadio/src/root/math/unuran/inc/TUnuranSampler.h /home/amadio/src/root/math/unuran/inc/TUnuranContDist.h /home/amadio/src/root/math/unuran/inc/TUnuran.h /home/amadio/src/root/math/unuran/inc/TUnuranBaseDist.h /home/amadio/src/root/math/unuran/inc/TUnuranDiscrDist.h /home/amadio/src/root/math/unuran/inc/TUnuranMultiContDist.h /home/amadio/src/root/math/unuran/inc/TUnuranEmpDist.h /home/amadio/src/root/math/unuran/inc/LinkDef.h
      g++  -pipe -m64 -std=c++11 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude   -pthread  -MMD -MP -I. -o math/unuran/src/G__Unuran.o -c math/unuran/src/G__Unuran.cxx
      g++ -shared -Wl,-soname,libUnuran.so -m64 -O2 -DNDEBUG -Wl,--no-undefined -Wl,--as-needed -o lib/libUnuran.so math/unuran/src/TUnuranSampler.o math/unuran/src/TUnuranContDist.o math/unuran/src/TUnuran.o math/unuran/src/TUnuranDiscrDist.o math/unuran/src/TUnuranMultiContDist.o math/unuran/src/TUnuranEmpDist.o math/unuran/src/G__Unuran.o -Llib -lCore -ldl -Llib -lHist -lMathCore
      math/unuran/src/TUnuran.o: In function `TUnuran::TUnuran(TRandom*, unsigned int)':
      TUnuran.cxx:(.text+0x4e): undefined reference to `unur_set_default_debug'
      TUnuran.cxx:(.text+0x65): undefined reference to `unur_set_default_debug'
      TUnuran.cxx:(.text+0x86): undefined reference to `unur_set_default_debug'
      math/unuran/src/TUnuran.o: In function `TUnuran::~TUnuran()':
      TUnuran.cxx:(.text+0xcd): undefined reference to `unur_free'
      TUnuran.cxx:(.text+0xdb): undefined reference to `unur_urng_free'
      TUnuran.cxx:(.text+0xe9): undefined reference to `unur_distr_free'
      math/unuran/src/TUnuran.o: In function `TUnuran::SetRandomGenerator()':
      TUnuran.cxx:(.text+0x170): undefined reference to `unur_urng_new'
      TUnuran.cxx:(.text+0x188): undefined reference to `unur_urng_set_delete'
      TUnuran.cxx:(.text+0x19a): undefined reference to `unur_urng_set_seed'
      TUnuran.cxx:(.text+0x1b8): undefined reference to `unur_chg_urng'
      math/unuran/src/TUnuran.o: In function `TUnuran::Init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
      TUnuran.cxx:(.text+0x307): undefined reference to `unur_str2gen'
      math/unuran/src/TUnuran.o: In function `TUnuran::SetContDistribution(TUnuranContDist const&)':
      TUnuran.cxx:(.text+0x46a): undefined reference to `unur_distr_free'
      TUnuran.cxx:(.text+0x46f): undefined reference to `unur_distr_cont_new'
      TUnuran.cxx:(.text+0x486): undefined reference to `unur_distr_set_extobj'
      TUnuran.cxx:(.text+0x49f): undefined reference to `unur_distr_cont_set_logpdf'
      TUnuran.cxx:(.text+0x4b2): undefined reference to `unur_distr_cont_set_dlogpdf'
      TUnuran.cxx:(.text+0x4f1): undefined reference to `unur_distr_cont_set_pdf'
      TUnuran.cxx:(.text+0x504): undefined reference to `unur_distr_cont_set_dpdf'
      TUnuran.cxx:(.text+0x521): undefined reference to `unur_distr_cont_set_cdf'
      TUnuran.cxx:(.text+0x553): undefined reference to `unur_distr_cont_set_domain'
      TUnuran.cxx:(.text+0x5a5): undefined reference to `unur_distr_cont_set_mode'
      TUnuran.cxx:(.text+0x5ea): undefined reference to `unur_distr_cont_set_pdfarea'
      math/unuran/src/TUnuran.o: In function `TUnuran::SetMultiDistribution(TUnuranMultiContDist const&)':
      TUnuran.cxx:(.text+0x63a): undefined reference to `unur_distr_free'
      TUnuran.cxx:(.text+0x64e): undefined reference to `unur_distr_cvec_new'
      TUnuran.cxx:(.text+0x666): undefined reference to `unur_distr_set_extobj'
      TUnuran.cxx:(.text+0x683): undefined reference to `unur_distr_cvec_set_logpdf'
      TUnuran.cxx:(.text+0x696): undefined reference to `unur_distr_cvec_set_dlogpdf'
      TUnuran.cxx:(.text+0x6ac): undefined reference to `unur_distr_cvec_set_pdlogpdf'
      TUnuran.cxx:(.text+0x709): undefined reference to `unur_distr_cvec_set_mode'
      TUnuran.cxx:(.text+0x729): undefined reference to `unur_distr_cvec_set_pdf'
      TUnuran.cxx:(.text+0x73c): undefined reference to `unur_distr_cvec_set_dpdf'
      TUnuran.cxx:(.text+0x752): undefined reference to `unur_distr_cvec_set_pdpdf'
      TUnuran.cxx:(.text+0x76a): undefined reference to `unur_distr_cvec_set_domain_rect'
      math/unuran/src/TUnuran.o: In function `TUnuran::SetEmpiricalDistribution(TUnuranEmpDist const&)':
      TUnuran.cxx:(.text+0x7f6): undefined reference to `unur_distr_free'
      TUnuran.cxx:(.text+0x803): undefined reference to `unur_distr_cvemp_new'
      TUnuran.cxx:(.text+0x83a): undefined reference to `unur_distr_cvemp_set_data'
      TUnuran.cxx:(.text+0x871): undefined reference to `unur_distr_cemp_new'
      TUnuran.cxx:(.text+0x8a6): undefined reference to `unur_distr_cemp_set_hist'
      TUnuran.cxx:(.text+0x8b1): undefined reference to `unur_distr_cemp_set_data'
      math/unuran/src/TUnuran.o: In function `TUnuran::SetDiscreteDistribution(TUnuranDiscrDist const&)':
      TUnuran.cxx:(.text+0x8d8): undefined reference to `unur_distr_free'
      TUnuran.cxx:(.text+0x8dd): undefined reference to `unur_distr_discr_new'
      TUnuran.cxx:(.text+0x906): undefined reference to `unur_distr_discr_set_pv'
      TUnuran.cxx:(.text+0x947): undefined reference to `unur_distr_set_extobj'
      TUnuran.cxx:(.text+0x95a): undefined reference to `unur_distr_discr_set_pmf'
      TUnuran.cxx:(.text+0x974): undefined reference to `unur_distr_discr_set_cdf'
      TUnuran.cxx:(.text+0x997): undefined reference to `unur_distr_discr_set_domain'
      TUnuran.cxx:(.text+0x9db): undefined reference to `unur_distr_discr_set_mode'
      TUnuran.cxx:(.text+0xa1a): undefined reference to `unur_distr_discr_set_pmfsum'
      math/unuran/src/TUnuran.o: In function `TUnuran::SetMethodAndInit()':
      TUnuran.cxx:(.text+0xa96): undefined reference to `_unur_str2par'
      TUnuran.cxx:(.text+0xaa8): undefined reference to `unur_set_use_distr_privatecopy'
      TUnuran.cxx:(.text+0xab5): undefined reference to `unur_free'
      TUnuran.cxx:(.text+0xabd): undefined reference to `unur_init'
      TUnuran.cxx:(.text+0xac9): undefined reference to `_unur_slist_free'
      TUnuran.cxx:(.text+0xb2f): undefined reference to `_unur_slist_free'
      math/unuran/src/TUnuran.o: In function `TUnuran::SampleMulti(double*)':
      TUnuran.cxx:(.text+0xebd): undefined reference to `unur_sample_vec'
      math/unuran/src/TUnuran.o: In function `TUnuran::SetLogLevel(unsigned int)':
      TUnuran.cxx:(.text+0xf07): undefined reference to `unur_chg_debug'
      TUnuran.cxx:(.text+0xf1d): undefined reference to `unur_chg_debug'
      math/unuran/src/TUnuran.o: In function `TUnuran::InitPoisson(double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
      TUnuran.cxx:(.text+0xf6a): undefined reference to `unur_distr_poisson'
      math/unuran/src/TUnuran.o: In function `TUnuran::InitBinomial(unsigned int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
      TUnuran.cxx:(.text+0xffb): undefined reference to `unur_distr_binomial'
      math/unuran/src/TUnuran.o: In function `TUnuran::ReInitDiscrDist(unsigned int, double*)':
      TUnuran.cxx:(.text+0x106e): undefined reference to `unur_distr_discr_set_pmfparams'
      TUnuran.cxx:(.text+0x1076): undefined reference to `unur_reinit'
      math/unuran/src/TUnuran.o: In function `TUnuran::SampleDiscr()':
      TUnuran.cxx:(.text+0xe94): undefined reference to `unur_sample_discr'
      math/unuran/src/TUnuran.o: In function `TUnuran::Sample()':
      TUnuran.cxx:(.text+0xea4): undefined reference to `unur_sample_cont'
      math/unuran/src/TUnuran.o: In function `ContDist::Cdf(double, unur_distr const*)':
      TUnuran.cxx:(.text._ZN8ContDist3CdfEdPK10unur_distr[_ZN8ContDist3CdfEdPK10unur_distr]+0xb): undefined reference to `unur_distr_get_extobj'
      math/unuran/src/TUnuran.o: In function `ContDist::Dpdf(double, unur_distr const*)':
      TUnuran.cxx:(.text._ZN8ContDist4DpdfEdPK10unur_distr[_ZN8ContDist4DpdfEdPK10unur_distr]+0xb): undefined reference to `unur_distr_get_extobj'
      math/unuran/src/TUnuran.o: In function `ContDist::Pdf(double, unur_distr const*)':
      TUnuran.cxx:(.text._ZN8ContDist3PdfEdPK10unur_distr[_ZN8ContDist3PdfEdPK10unur_distr]+0xb): undefined reference to `unur_distr_get_extobj'
      math/unuran/src/TUnuran.o: In function `MultiDist::Pdpdf(double const*, int, unur_distr*)':
      TUnuran.cxx:(.text._ZN9MultiDist5PdpdfEPKdiP10unur_distr[_ZN9MultiDist5PdpdfEPKdiP10unur_distr]+0xf): undefined reference to `unur_distr_get_extobj'
      math/unuran/src/TUnuran.o: In function `MultiDist::Dpdf(double*, double const*, unur_distr*)':
      TUnuran.cxx:(.text._ZN9MultiDist4DpdfEPdPKdP10unur_distr[_ZN9MultiDist4DpdfEPdPKdP10unur_distr]+0x10): undefined reference to `unur_distr_get_extobj'
      math/unuran/src/TUnuran.o:TUnuran.cxx:(.text._ZN9MultiDist3PdfEPKdP10unur_distr[_ZN9MultiDist3PdfEPKdP10unur_distr]+0x8): more undefined references to `unur_distr_get_extobj' follow
      collect2: error: ld returned 1 exit status
      make: *** [/home/amadio/src/root/math/unuran/Module.mk:157: lib/libUnuran.so] Error 1

        Attachments

          Activity

            People

            Assignee:
            amadio Guilherme Amadio
            Reporter:
            amadio Guilherme Amadio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: