Menu

#108 Compilation error in convolution_block_constraints

version_1.0
closed-postponed
None
5
2024-12-02
2024-01-27
Ryan Lynch
No

I'm getting the following compilation error when trying to make the latest version of dspsr

/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../../local_include -I../../Util/epsic/src -I../../Util/epsic/src/util -I../../Util/epsic/src/util -I/home/pulsar_rhel7/include -I/home/pulsar_rhel7/include/epsic  -D_REENTRANT -I/usr/include/cfitsio   -I. -I/data/rfimit/include -std=c++11 -fopenmp -O2 -Wall -MT LoadToFold1.lo -MD -MP -MF $depbase.Tpo -c -o LoadToFold1.lo LoadToFold1.C &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../../local_include -I../../Util/epsic/src -I../../Util/epsic/src/util -I../../Util/epsic/src/util -I/home/pulsar_rhel7/include -I/home/pulsar_rhel7/include/epsic -D_REENTRANT -I/usr/include/cfitsio -I. -I/data/rfimit/include -std=c++11 -fopenmp -O2 -Wall -MT LoadToFold1.lo -MD -MP -MF .deps/LoadToFold1.Tpo -c LoadToFold1.C -o LoadToFold1.o
LoadToFold1.C: In member function 'virtual void dsp::LoadToFold::prepare()':
LoadToFold1.C:969:69: error: no matching function for call to 'convolution_block_constraints(dsp::LoadToFold* const, Reference::To<dsp::LoadToFold::Config>&, const char [6], bool&)'
   convolution_block_constraints(this, config, "dspsr", report_vitals);
                                                                     ^
LoadToFold1.C:969:69: note: candidate is:
In file included from LoadToFold1.C:14:0:
../../local_include/dsp/convolution_block_constraints.h:19:6: note: template<class Pipeline> void dsp::convolution_block_constraints(Pipeline*, typename Pipeline::Config*, const string&, bool)
 void convolution_block_constraints(Pipeline* pipeline, typename Pipeline::Config* config, const std::string& app, bool report_vitals)
      ^
../../local_include/dsp/convolution_block_constraints.h:19:6: note:   template argument deduction/substitution failed:
LoadToFold1.C:969:69: note:   mismatched types 'typename Pipeline::Config*' and 'Reference::To<dsp::LoadToFold::Config>'
   convolution_block_constraints(this, config, "dspsr", report_vitals);
                                                                     ^
make[3]: *** [LoadToFold1.lo] Error 1
make[3]: Leaving directory `/data/rfimit/src/dspsr/Signal/Pulsar'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/rfimit/src/dspsr/Signal'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/rfimit/src/dspsr'
make: *** [all] Error 2
[1]+  Done

Related

Bugs: #108

Discussion

  • Ryan Lynch

    Ryan Lynch - 2024-02-02

    Any other information needed to help with this?

     
  • Ryan Lynch

    Ryan Lynch - 2024-02-16

    Just curious if there is a chance that someone will be able to look at this?

     

    Last edit: Ryan Lynch 2024-02-16
  • Willem van Straten

    Hi Ryan, sorry about the long delay in replying ... is this compilation issue still a problem?

     
    • Ryan Lynch

      Ryan Lynch - 2024-12-02

      I don't think it's relevant anymore.  I've moved to using conda to
      manage dspsr installations.

      Ryan

      On 11/28/24 01:42, Willem van Straten wrote:

      Hi Ryan, sorry about the long delay in replying ... is this
      compilation issue still a problem?


      [bugs:#108] https://sourceforge.net/p/dspsr/bugs/108/ Compilation
      error in convolution_block_constraints

      Status: open
      Group: version_1.0
      Created: Sat Jan 27, 2024 03:50 AM UTC by Ryan Lynch
      Last Updated: Fri Feb 16, 2024 08:23 PM UTC
      Owner: nobody

      I'm getting the following compilation error when trying to make the
      latest version of dspsr

      |/bin/sh../../libtool--tag=CXX--mode=compileg++-std=c++11-DHAVE_CONFIG_H-I.-I../..-I../../local_include-I../../Util/epsic/src-I../../Util/epsic/src/util-I../../Util/epsic/src/util-I/home/pulsar_rhel7/include-I/home/pulsar_rhel7/include/epsic-D_REENTRANT-I/usr/include/cfitsio-I.-I/data/rfimit/include-std=c++11-fopenmp-O2-Wall-MTLoadToFold1.lo-MD-MP-MF$depbase.Tpo-c-oLoadToFold1.loLoadToFold1.C&&\
      mv-f$depbase.Tpo$depbase.Plo
      libtool:compile:g++-std=c++11-DHAVE_CONFIG_H-I.-I../..-I../../local_include-I../../Util/epsic/src-I../../Util/epsic/src/util-I../../Util/epsic/src/util-I/home/pulsar_rhel7/include-I/home/pulsar_rhel7/include/epsic-D_REENTRANT-I/usr/include/cfitsio-I.-I/data/rfimit/include-std=c++11-fopenmp-O2-Wall-MTLoadToFold1.lo-MD-MP-MF.deps/LoadToFold1.Tpo-cLoadToFold1.C-oLoadToFold1.o
      LoadToFold1.C:Inmemberfunction'virtual void
      dsp::LoadToFold::prepare()':
      LoadToFold1.C:969:69:error:nomatchingfunctionforcallto'convolution_block_constraints(dsp::LoadToFold
      const, Reference::To<dsp::loadtofold::config>&, const char [6],
      bool&)'
      convolution_block_constraints(this,config,"dspsr",report_vitals); ^
      LoadToFold1.C:969:69:note:candidateis:
      InfileincludedfromLoadToFold1.C:14:0:
      ../../local_include/dsp/convolution_block_constraints.h:19:6:note:template<classpipeline>voiddsp::convolution_block_constraints(Pipeline</classpipeline></dsp::loadtofold::config>
      ,typenamePipeline::Config,conststring&,bool)
      voidconvolution_block_constraints(Pipeline
      pipeline,typenamePipeline::Configconfig,conststd::string&app,boolreport_vitals)
      ^
      ../../local_include/dsp/convolution_block_constraints.h:19:6:note:templateargumentdeduction/substitutionfailed:
      LoadToFold1.C:969:69:note:mismatchedtypes'typename
      Pipeline::Config
      'and'Reference::To<dsp::loadtofold::config>'
      convolution_block_constraints(this,config,"dspsr",report_vitals); ^
      make[3]:[LoadToFold1.lo]Error1
      make[3]:Leavingdirectory/data/rfimit/src/dspsr/Signal/Pulsar' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/data/rfimit/src/dspsr/Signal' make[1]:
      [all-recursive]Error1
      make[1]:Leavingdirectory`/data/rfimit/src/dspsr' make:***[all]Error2
      [1]+Done |</dsp::loadtofold::config>


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dspsr/bugs/108/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Ryan Lynch

       

      Related

      Bugs: #108

  • Willem van Straten

    • status: open --> closed-postponed
    • assigned_to: Willem van Straten
     
  • Willem van Straten

    Thanks, Ryan. I'll close this bug.

     

Log in to post a comment.

Auth0 Logo