qemu "make test" fails in iov.c with "undefined reference" on aarch64 on Ubuntu 16.04

Bug #1634726 reported by Edward Vielmetti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

I'm building the master tree on a multicore ARMv8 machine running Ubuntu 16.04. The build worked just fine, using the simple directions in the README file and "make -j 64" to do the build.

Next, I did "make test", and got this:

emv@armv8hello:~/src/qemu/qemu/build$ make test
make -C tests/tcg test
make[1]: Entering directory '/mnt/src/qemu/qemu/build/tests/tcg'
  CC test_path.o
  LINK test_path
test_path.o: In function `qemu_iovec_is_zero':
/home/emv/src/qemu/qemu/util/iov.c:365: undefined reference to `buffer_is_zero'
collect2: error: ld returned 1 exit status
/home/emv/src/qemu/qemu/rules.mak:105: recipe for target 'test_path' failed
make[1]: *** [test_path] Error 1
make[1]: Leaving directory '/mnt/src/qemu/qemu/build/tests/tcg'
Makefile:498: recipe for target 'test' failed
make: *** [test] Error 2

I expected "make test" to complete with no errors.

uname -a:
Linux armv8hello.local.lan 4.4.0-38-generic #57-Ubuntu SMP Wed Sep 7 10:19:14 UTC 2016 aarch64 aarch64 aarch64 GNU/Linux

emv@armv8hello:~/src/qemu/qemu$ more VERSION
2.7.50

Revision history for this message
Peter Maydell (pmaydell) wrote :

You want 'make check' to run the self-tests. 'make test' is a bunch of broken old stuff :-(

Revision history for this message
Edward Vielmetti (edward-vielmetti) wrote :

Ah, perhaps this bug should be renamed, "remove make test target".

While I'm noting things, "make check" builds OK on this system, complaining only about kvm. My next goal is "make docker-test".

Revision history for this message
Edward Vielmetti (edward-vielmetti) wrote :

"make docker-test" fails repeatedly with

Pulling repository docker.io/library/qemu
docker: Error: image library/qemu:debian-bootstrap not found.
See 'docker run --help'.
Pulling repository docker.io/library/qemu
docker: Error: image library/qemu:fedora not found.
See 'docker run --help'.

etc.

Revision history for this message
Thomas Huth (th-huth) wrote :

"make test" has been removed, so I'll mark this as fixed now.

Changed in qemu:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.