thdauser / simput

SIMulation INpuT software (used by sixte)
GNU General Public License v3.0
6 stars 3 forks source link

Trouble in installing simput #1

Open tekkamanmaverick opened 3 years ago

tekkamanmaverick commented 3 years ago

Dear Dr. Dauser,

I can't install simput in my computer. The machine is mac os big sur. I used gcc-10. The error message as follow,

headas_file_check.c:68:49: error: implicit declaration of function 'HDfile_check_init' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (0 == s_ape_default_file_check) status = HDfile_check_init(); ^ headas_file_check.c:68:49: note: did you mean 'HDfile_check'? ./headas_utils.h:72:7: note: 'HDfile_check' declared here int HDfile_check(const char file_name, const char open_mode); ^ headas_file_check.c:91:16: error: implicit declaration of function 'ape_util_set_file_check_func' is invalid in C99 [-Werror,-Wimplicit-function-declaration] status = ape_util_set_file_check_func(0); ^ headas_file_check.c:95:18: error: implicit declaration of function 'ape_util_get_file_check_func' is invalid in C99 [-Werror,-Wimplicit-function-declaration] status = ape_util_get_file_check_func(&s_ape_default_file_check); ^ headas_file_check.c:95:18: note: did you mean 'ape_util_set_file_check_func'? headas_file_check.c:91:16: note: 'ape_util_set_file_check_func' declared here status = ape_util_set_file_check_func(0); ^ headas_file_check.c:107:16: error: implicit declaration of function 'ape_util_set_file_check_func' is invalid in C99 [-Werror,-Wimplicit-function-declaration] status = ape_util_set_file_check_func(&HDfile_check); ^ 4 errors generated. make[3]: [headas_file_check.lo] Error 1 make[2]: [all-recursive] Error 1 make[1]: [all-recursive] Error 1 make: [all] Error 2

Thank you and best wishes.

matteobachetti commented 3 years ago

FWIW, I got exactly the same error. My system: Mac OS 11.3.1 Apple clang version 12.0.5 (clang-1205.0.22.11) heasoft-6.27.2, x86_64-apple-darwin19.3.0

matteobachetti commented 3 years ago

I would like to add that HEASoft can only be compiled using gcc>=10 on Big Sur, so it would be great if SIXTE could be built with recent gcc versions

thdauser commented 3 years ago

We're looking into this. For a more interactive process to help solve your problem you can also directly write to sixte-support@lists.fau.de

matteobachetti commented 3 years ago

Thanks @thdauser!

malorenz commented 3 years ago

We will update the affected libraries in Simput. In the meantime, you could switch to gcc-9 for the Simput compilation.

matteobachetti commented 3 years ago

Thanks @malorenz. I managed to get it compiled in a linux workstation, so for now I'll use that version. I will retry installation on my Mac when I can use the compilers supported by HEAsoft (Big Sur, Be Sure, is a Big Sore)