cmake 3.11 hangs indefinitely on CMakeDetermineCompilerId.cmake
I attached the output from cmake --trace: cmake_trace.txt
Here is the output of strings on the generated a.out:
CompilerIdC]$ strings a.out
/lib64/ld-linux-x86-64.so.2
libc.so.6
__libc_start_main
/software/fftw3-3.3.5-el7-x86_64/lib
__gmon_start__
GLIBC_2.2.5
[]A\A]A^A_
INFO:compiler[GNU]
INFO:compiler_version[00000007.00000002.00000000]
INFO:platform[Linux]
INFO:arch[]
INFO:dialect_default[11]
;*3$"
GCC: (GNU) 4.8.5 20150623 (Red Hat 4.8.5-16)
GCC: (GNU) 7.2.0
crtstuff.c
deregister_tm_clones
__do_global_dtors_aux
completed.6929
__do_global_dtors_aux_fini_array_entry
frame_dummy
__frame_dummy_init_array_entry
CMakeCCompilerId.c
__FRAME_END__
__init_array_end
_DYNAMIC
__init_array_start
__GNU_EH_FRAME_HDR
_GLOBAL_OFFSET_TABLE_
__libc_csu_fini
_edata
__libc_start_main@@GLIBC_2.2.5
__data_start
__gmon_start__
__dso_handle
_IO_stdin_used
info_platform
__libc_csu_init
info_compiler
__bss_start
main
info_language_dialect_default
__TMC_END__
info_version
info_arch
.symtab
.strtab
.shstrtab
.interp
.note.ABI-tag
.hash
.dynsym
.dynstr
.gnu.version
.gnu.version_r
.rela.dyn
.rela.plt
.init
.plt.got
.text
.fini
.rodata
.eh_frame_hdr
.eh_frame
.init_array
.fini_array
.dynamic
.got.plt
.data
.bss
.comment
Not sure what the problem could be or how to fix.