Re: [hatari-devel] Compiling Hatari under Cygwin |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Compiling Hatari under Cygwin
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Mon, 10 Jan 2022 14:04:31 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1641823476; bh=wTgfZ5MwCAJ1X+QrjBMu78gmwrGTwlnMayQMExgsfcg=; h=Date:From:To:Subject:From; b=cAnEVZICbgZ2HQa6D01E0spLrLU8HzJIaWNS0IywRyKgB+/lV54OAZDfgSjcJe5b9 Pf70qTCK4XEN+AYiDNLLBm3W7RtinZkwXSjUlPij0xTlRc56qnS+UviUboWqZ3Sggk FrI0mrITTt4oBicgTxm8c/1DFsAg/Wly9F6JXPiPCuRDUkPM3STzA0NIQBiAPuVtLd Cx52/der6+JYMpbp1TfDwhlkmX85w0l6XEQ7xgCZ4bTbWxSJEO6Q7PahGez1106Jep hKuInn4RYvtvi/xSt+LmfW3qO/dKn52oZWshk8Vhpc5q8/JtrJk6RJ9oH4RZ7ugU0Q TMjF3Yz9RP3ag==
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