Hi Willem,
I have a similar problem to https://sourceforge.net/p/dspsr/bugs/132/, where dspsr build breaks. The first part was solved by fixing $PKG_CONFIG_PATH. Following this dspsr begins to build but breaks later at :
libtool: compile: g++ -std=c++14 -DHAVE_CONFIG_H -I. -I../../.. -I../../../local_include -I/home/psr/install/include/epsic -I/usr/local/include -fopenmp -g -O2 -MT FITSDigitizer.lo -MD -MP -MF .deps/FITSDigitizer.Tpo -c FITSDigitizer.C -o FITSDigitizer.o
libtool: compile: g++ -std=c++14 -DHAVE_CONFIG_H -I. -I../../.. -I../../../local_include -I/home/psr/install/include/epsic -I/usr/local/include -fopenmp -g -O2 -MT FITSOutputFile.lo -MD -MP -MF .deps/FITSOutputFile.Tpo -c FITSOutputFile.C -o FITSOutputFile.o
For some reason the psrchive include directory is not being passed to g++. I am attaching the output for pkg-config --debug psrchive. Could you please suggest a fix? Thanks!
Cheers,
Ramesh
Hi Willem,
A quick follow up: I used a quick workaround of setting
export CXXFLAGS=-I/home/psr/install/include, running configure again and got dspsr to compile. Thanks!Last edit: Ramesh 2026-03-03
Hi Ramesh, that's quite strange because most of the DSPSR build depends on PSRCHIVE. It's also odd to see
/home/psr/install/include/epsicon the compilation command line but not/home/psr/install/include... Could you please also attach a copy ofKernel/Formats/fits/Makefilefrom your DSPSR build directory?Hi Willem,
Here is the Makefile.
Cheers,
Ramesh
Thanks for that, Ramesh. Stranger still
shows that only the epsic headers folder is included in
PSRCHIVE_CFLAGS... what is returned when you run the following command?Hi Willem,
I get:
Cheers,
Ramesh
Thanks, Ramesh. Could you please check if the
PKG_CONFIG_SYSTEM_INCLUDE_PATHenvironment variable is set on your system, and if it includes/home/psr/install/include?I did the following test on my laptop, which can reproduce the "stripping" of the first
-IoutputIf
PKG_CONFIG_SYSTEM_INCLUDE_PATHis not defined, please tryC_INCLUDE_PATH... on my system, it has the same effect.If
PKG_CONFIG_SYSTEM_INCLUDE_PATHorC_INCLUDE_PATH(orCPATH?) is defined in your environment, I might be able to fix the dpsr configure script to disablepkg-configfrom stripping the paths.Hi Willem,
Yes,
C_INCLUDE_PATHwas set, as reporduced below:BTW, I am building dspsr in a docker container (based on debian:bookworm) - is that something to watch out?
Cheers,
Ramesh
Thanks, Ramesh!
As an optimization,
pkg-configis stripping/home/psr/install/includefrom thePSRCHIVE_CFLAGSthat is passed to the dspsr build tools. However, the compiler appears to be ignoringC_INCLUDE_PATHand therefore this include path is getting missed.I've checked in a fix to the dspsr
configure.acfile that should disablepkg-configfrom stripping system include header paths from its output, by definingPKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1before callingAX_PKG_CHECK_MODULESCould you please try out this fix on your end?
Last edit: Willem van Straten 2026-03-05
Hi Willem,
Awesome, after a fresh pull, the build goes through just fine. Thank you very much!
Thank you for confirming!