Hello, here is the situation: $ pwd /home/jcelerier/perso/build-static/tests/static/foo=bar/CMakeFiles/CMakeTmp $ cat /home/jcelerier/perso/build-static/tests/static/foo=bar/CMakeFiles/CMakeTmp/testCXXCompiler.cxx #ifndef __cplusplus # error "The CMAKE_CXX_COMPILER is set to a C compiler" #endif int main(){return 0;} $ # compiling: ok $ /usr/bin/c++ -o CMakeFiles/cmTC_b634c.dir/testCXXCompiler.cxx.o -c /home/jcelerier/perso/build-static/tests/static/foo=bar/CMakeFiles/CMakeTmp/testCXXCompiler.cxx $ # linking: $ /usr/bin/c++ -fuse-ld=gold -Wl,--threads -Wl,--gdb-index CMakeFiles/cmTC_b634c.dir/testCXXCompiler.cxx.o -o cmTC_b634c gives me the following various errors: ===== tcache_thread_shutdown(): unaligned tcache chunk detected double free or corruption (out) collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped compilation terminated. ===== /usr/bin/ld.gold : internal error in ~File_view, at position /build/binutils/src/binutils-gdb/gold/fileread.cc : 868 ===== double free or corruption (out) collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped compilation terminated. ===== collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped compilation terminated. etc... randomly. It compiles once every 10 times roughly. I am on archlinux. I am under the impression that this is due to the path containing uncommon characters ? (dots, '=')
Please try master branch. It may have been fixed.
This may be a dup of PRs 26827/26200.