qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

running "make check-unit" failed, undefined reference


From: casmac
Subject: running "make check-unit" failed, undefined reference
Date: Fri, 8 May 2020 14:20:21 +0800

Hi all,
   when i execute make check-unit command , it failed due to undefined reference. how to fix this error?
   many thanks.

xiaolei
-------------------error messge -----------------------
$ make check-unit
make[1]: ??????????/d/cuix/workspace_devl/qemu-4.2.0/slirp??
make[1]: ????all????????????????
make[1]: ??????????/d/cuix/workspace_devl/qemu-4.2.0/slirp??
  CC      tests/check-qdict.o
  LINK    tests/check-qdict.exe
  CC      tests/check-block-qdict.o
  LINK    tests/check-block-qdict.exe
  CC      tests/test-char.o
  CC      tests/socket-helpers.o
  LINK    tests/test-char.exe
  CC      tests/check-qnum.o
  LINK    tests/check-qnum.exe
  CC      tests/check-qstring.o
  LINK    tests/check-qstring.exe
  CC      tests/check-qlist.o
  LINK    tests/check-qlist.exe
  CC      tests/check-qnull.o
  LINK    tests/check-qnull.exe
  CC      tests/check-qobject.o
  LINK    tests/check-qobject.exe
  CC      tests/check-qjson.o
  LINK    tests/check-qjson.exe
  CC      tests/check-qlit.o
  LINK    tests/check-qlit.exe
  CC      tests/test-qobject-output-visitor.o
  CC      tests/test-qapi-types.o
  CC      tests/include/test-qapi-types-sub-module.o
  CC      tests/test-qapi-types-sub-sub-module.o
  CC      tests/test-qapi-visit.o
  CC      tests/include/test-qapi-visit-sub-module.o
  CC      tests/test-qapi-visit-sub-sub-module.o
  CC      tests/test-qapi-introspect.o
  LINK    tests/test-qobject-output-visitor.exe
  CC      tests/test-clone-visitor.o
  LINK    tests/test-clone-visitor.exe
  CC      tests/test-qobject-input-visitor.o
  LINK    tests/test-qobject-input-visitor.exe
  CC      tests/test-qmp-cmds.o
  CC      tests/test-qapi-commands.o
  LINK    tests/test-qmp-cmds.exe
  CC      tests/test-string-input-visitor.o
  LINK    tests/test-string-input-visitor.exe
  CC      tests/test-string-output-visitor.o
  LINK    tests/test-string-output-visitor.exe
  CC      tests/test-qmp-event.o
  CC      tests/test-qapi-events.o
  LINK    tests/test-qmp-event.exe
  CC      tests/test-opts-visitor.o
  LINK    tests/test-opts-visitor.exe
  CC      tests/test-coroutine.o
  CC      tests/iothread.o
  LINK    tests/test-coroutine.exe
  CC      tests/test-visitor-serialization.o
  LINK    tests/test-visitor-serialization.exe
  CC      tests/test-iov.o
  LINK    tests/test-iov.exe
  CC      tests/test-bitmap.o
In file included from D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c:12:
D:/cuix/workspace_devl/qemu-4.2.0/include/qemu/osdep.h:90: warning: "__USE_MINGW_ANSI_STDIO" redefined
   90 | #define __USE_MINGW_ANSI_STDIO 1
      |
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/corecrt.h:10,
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/stdlib.h:9,
                 from D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c:11:
C:/msys64/mingw64/x86_64-w64-mingw32/include/_mingw.h:435: note: this is the location of the previous definition
  435 | #define __USE_MINGW_ANSI_STDIO 0      /* was not defined so it should be 0 */
      |
D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c: In function 'check_bitmap_copy_with_offset':
D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c:25:16: warning: implicit declaration of function 'random'; did you mean 'rand'? [-Wimplicit-function-declaration]
   25 |     bmap1[0] = random();
      |                ^~~~~~
      |                rand
D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c:25:16: warning: nested extern declaration of 'random' [-Wnested-externs]
  LINK    tests/test-bitmap.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: tests/test-bitmap.o: in function `check_bitmap_copy_with_offset':
D:/cuix/workspace_devl/qemu-4.2.0/tests/test-bitmap.c:25: undefined reference to `random'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]