Re: [hatari-devel] Compiling Hatari under Cygwin

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 10/01/2022 à 00:04, Cyprian Konador a écrit :
Hi Team,

I've just tried to compile Hatari under Cygwin.
According to the manual I run "cmake ..", but it shows me an error message. Below is a part of "CMakeError.log":

/usr/lib/gcc/i686-pc-cygwin/11/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/cmTC_4dfba.dir/src.c.o:src.c:(.text+0x19): undefined reference to `__asan_init' /usr/lib/gcc/i686-pc-cygwin/11/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/cmTC_4dfba.dir/src.c.o:src.c:(.text+0x1e): undefined reference to `__asan_version_mismatch_check_v8'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_4dfba.dir/build.make:99: cmTC_4dfba.exe] Error 1

I guess it is due to the lack of AddressSanitizer, which doesn't seem to be present under my Cygwin.I wonder if this is needed. Maybe I can somehow skip AddressSanitizer test?


Hi

according to CMakeLists.txt, libasan is only used if detected by this :

CHECK_C_COMPILER_FLAG("-fsanitize=address" ASAN_AVAILABLE)
if(ASAN_AVAILABLE)

I can't tell why your cygwin is failing at this, but you can try to try to force : unset(ENABLE_ASAN 1) after these lines, this way it should not use the ASAN part later in the cmake file.

Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/