Skip to contentSkip to conversation

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

Qemu-devel Edward Vielmetti 3 participants 5 messages Oct 19, 2016 – Apr 30, 2019

lore
Share & tools
lore
#0 lore raw

Public bug reported:

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

** Affects: qemu
Importance: Undecided
Status: New

Signature · 42 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1634726

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

Status in QEMU:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1634726/+subscriptions
#1 lore raw

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

Signature · 42 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1634726

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

Status in QEMU:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1634726/+subscriptions
#2 lore raw
In reply to Edward Vielmetti

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

Signature · 42 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1634726

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

Status in QEMU:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1634726/+subscriptions
#3 lore raw
In reply to Edward Vielmetti

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

Signature · 42 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1634726

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

Status in QEMU:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1634726/+subscriptions
#4 lore raw
In reply to Edward Vielmetti

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

** Changed in: qemu
Status: New => Fix Released

Signature · 42 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1634726

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

Status in QEMU:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1634726/+subscriptions