Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error on candide #49

Open
lbaumo opened this issue Sep 28, 2023 · 7 comments
Open

install error on candide #49

lbaumo opened this issue Sep 28, 2023 · 7 comments
Assignees

Comments

@lbaumo
Copy link

lbaumo commented Sep 28, 2023

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?

@sfarrens sfarrens self-assigned this Sep 28, 2023
@lbaumo
Copy link
Author

lbaumo commented Sep 28, 2023

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

@lbaumo
Copy link
Author

lbaumo commented Sep 28, 2023

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

@sfarrens
Copy link
Member

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

@lbaumo
Copy link
Author

lbaumo commented Sep 28, 2023

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.

@sfarrens
Copy link
Member

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

@lbaumo
Copy link
Author

lbaumo commented Sep 29, 2023

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.

@sfarrens
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants