[hatari-devel] ASAN linking problem with Previous

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


Hello all,

it seems Previous is having a linking problem if ASAN is enabled. When I try to compile I get lots of error from this kind (see below). This happens although I added enable_testing() just like Hatari does. 

Does anyone have an idea what I might do wrong? If I apply the appended patch it seems to work. No problems when compiling Hatari.

Regards,
Andreas

Undefined symbols for architecture arm64:
  "___asan_memcpy", referenced from:
      _Audio_Output_Init in audio.c.o
      _Audio_Input_Init in audio.c.o
      _Configuration_SetDefault in configuration.c.o
      _Configuration_SetDefault in configuration.c.o
      _Configuration_SetDefault in configuration.c.o
      _Change_CopyChangedParamsToConfiguration in change.c.o
      _Change_ApplyCommandline in change.c.o
      _Change_ApplyCommandline in change.c.o
      _Change_ApplyCommandline in change.c.o
      ...
  "___asan_memmove", referenced from:
      _File_SplitPath in file.c.o
      _rs_encode in rs.c.o
      _rs_decode in rs.c.o
      _Str_Trim in str.c.o
      _DebugUI_EvaluateExpressions in libDebug.a[arm64][3](debugui.c.o)
      _DebugUI_EvaluateExpressions in libDebug.a[arm64][3](debugui.c.o)
      _BreakCond_Remove in libDebug.a[arm64][4](breakcond.c.o)
      ...
..
..
..
ld: symbol(s) not found for architecture arm64
c++: error: linker command failed with exit code 1 (use -v to see invocation)

Attachment: asan.diff
Description: Binary data



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