Re: [hatari-devel] Compiling Hatari under Cygwin

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


Am Mon, 10 Jan 2022 13:54:00 +0100
schrieb Nicolas Pomarède <npomarede@xxxxxxxxxxxx>:

> 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

CHECK_C_COMPILER_FLAG is only testing the compiler flag - but the error
here looks like an issue during linking ... so maybe that's the
reason why the check is not working as expected here?

> 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.

ENABLE_ASAN is set to 0 by default, so I'm a little bit surprised that
this is causing trouble here ... did you enable it by accident? If so,
setting it to 0 should fix the issue, hopefully.

 Thomas



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