Menu

#467 Header files not found during compilation

next release
pending
None
5
2022-08-02
2022-08-02
Ryan Lynch
No

I get the following error during compilation

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   -D_REENTRANT -I/usr/include/cfitsio  -I. -I. -I. -I. -I/home/pulsar_rhel8/include -I/opt/local/include -I/usr/local/include   -O2 -Wall -pthread -MT smint.o -MD -MP -MF $depbase.Tpo -c -o smint.o smint.C &&\
mv -f $depbase.Tpo $depbase.Po
smint.C:27:10: fatal error: Pulsar/CalibrationInterpolator.h: No such file or directory
 #include "Pulsar/CalibrationInterpolator.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:1677: smint.o] Error 1
make[4]: Leaving directory '/home/pulsar_rhel8/src/psrchive/More/Applications'
make[3]: *** [Makefile:1713: all-recursive] Error 1
make[3]: Leaving directory '/home/pulsar_rhel8/src/psrchive/More/Applications'
make[2]: *** [Makefile:595: all-recursive] Error 1
make[2]: Leaving directory '/home/pulsar_rhel8/src/psrchive/More'
make[1]: *** [Makefile:521: all-recursive] Error 1
make[1]: Leaving directory '/home/pulsar_rhel8/src/psrchive'
make: *** [Makefile:452: all] Error 2

I didn't use any configure flags other than --prefix. The headers seem to be in More/Polarimetry but that path isn't being found.

Related

Bugs: #467

Discussion

  • Willem van Straten

    • status: open --> pending
    • assigned_to: Willem van Straten
     
    • Ryan Lynch

      Ryan Lynch - 2022-08-03

      Thanks for the fast reply.  This fixed the compilation error.  I may
      have found another issue...the --disable-local option for configure
      doesn't seem to actually prevent linking against libraries in
      /opt/local/lib.  From what I can tell this is happening when libtool
      runs.  Maybe this is something about my local environment, but none of
      my environment variables point to /opt/local/lib and our sysadmin tells
      me there shouldn't be anything in the system installs pointing there,
      either.  Could this be a problem with the compilation scripts, or do you
      think it's some subtle issue about my local build environment?

      On 8/2/22 14:38, Willem van Straten wrote:

      • status: open --> pending
      • assigned_to: Willem van Straten
      • Comment:

      Hi Ryan,

      Sorry about that. I've checked in a fix. Could you please try again?

      Cheers,
      Willem


      [bugs:#467] https://sourceforge.net/p/psrchive/bugs/467/ Header
      files not found during compilation

      Status: pending
      Group: next release
      Created: Tue Aug 02, 2022 05:59 PM UTC by Ryan Lynch
      Last Updated: Tue Aug 02, 2022 05:59 PM UTC
      Owner: Willem van Straten

      I get the following error during compilation

      |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-D_REENTRANT-I/usr/include/cfitsio-I.-I.-I.-I.-I/home/pulsar_rhel8/include-I/opt/local/include-I/usr/local/include-O2-Wall-pthread-MTsmint.o-MD-MP-MF$depbase.Tpo-c-osmint.osmint.C&&\
      mv-f$depbase.Tpo$depbase.Posmint.C:27:10:fatalerror:Pulsar/CalibrationInterpolator.h:Nosuchfileordirectory#include"Pulsar/CalibrationInterpolator.h"^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~compilationterminated.make[4]:[Makefile:1677:smint.o]Error1make[4]:Leavingdirectory'/home/pulsar_rhel8/src/psrchive/More/Applications'make[3]:[Makefile:1713:all-recursive]Error1make[3]:Leavingdirectory'/home/pulsar_rhel8/src/psrchive/More/Applications'make[2]:[Makefile:595:all-recursive]Error1make[2]:Leavingdirectory'/home/pulsar_rhel8/src/psrchive/More'make[1]:[Makefile:521:all-recursive]Error1make[1]:Leavingdirectory'/home/pulsar_rhel8/src/psrchive'make:***[Makefile:452:all]Error2|

      I didn't use any configure flags other than --prefix. The headers seem
      to be in More/Polarimetry but that path isn't being found.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/psrchive/bugs/467/

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

      --
      Ryan Lynch

       

      Related

      Bugs: #467

  • Willem van Straten

    Hi Ryan,

    Sorry about that. I've checked in a fix. Could you please try again?

    Cheers,
    Willem

     

Log in to post a comment.

MongoDB Logo MongoDB