CosmoStat/Sparse2D

install error on candide

Opened this issue · 7 comments

lbaumo commented

libmga2d.a(WPackets.cc.o): In function WPACKETS_2D::get_info_block(int, InfoBlock) const': WPackets.cc:(.text+0x2124): undefined reference to std::__throw_bad_array_new_length()'
libmga2d.a(WPackets.cc.o): In function WPACKETS_2D::ortho_threshold(WPTransf_2D*, float)': WPackets.cc:(.text+0x31f1): undefined reference to std::__throw_bad_array_new_length()'
libmga2d.a(WPackets.cc.o): In function WPACKETS_2D::set_info_band()': WPackets.cc:(.text+0x37e6): undefined reference to std::__throw_bad_array_new_length()'
libmga2d.a(WPackets.cc.o): In function WPACKETS_2D::set_info(InfoBlock, std::vector<InfoBlock, std::allocator<InfoBlock> >&)': WPackets.cc:(.text+0x5f36): undefined reference to std::__throw_bad_array_new_length()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/cb_deconv] Error 1
make[1]: *** [src/CMakeFiles/cb_deconv.dir/all] Error 2
make: *** [all] Error 2

Any suggestions?

lbaumo commented

this error is solved by switching to gcc 10 (gcc 11 and higher do not work)- this should be listed as a requirement

lbaumo commented

ah, but now there is a problem with healpix:
In file included from /home/baumont/software/Sparse2D-3.0.0/src/mrs/libmrs/HealpixClass.cc:20: /home/baumont/software/Sparse2D-3.0.0/src/mrs/libmrs/HealpixClass.h:31:10: fatal error: healpix_map.h: No such file or directory 31 | #include "healpix_map.h" | ^~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [src/CMakeFiles/mrs.dir/mrs/libmrs/HealpixClass.cc.o] Error 1 make[1]: *** [src/CMakeFiles/mrs.dir/all] Error 2 make: *** [all] Error 2

You need to install healpy-data. You can find the Linux CI set up here.

lbaumo commented

I installed healpy-data and added what I thought were the relevant directories to my library and include paths, Healpix_3.82/include and Healpix_3.82/lib, but I am getting the error HEALPIX not found.

OK, I will have to investigate next week as Candide does not seem to like connections from ESA ESTEC.

lbaumo commented

ah the mystery path that I wasn't setting was $PKG_CONFIG_PATH. I think I will write up some instructions on how to install the code with non-standard paths.

Feel free to open a PR with changes to the README.md