Skip to contentSkip to conversation

Compile for os x host failed

Qemu-devel iQQator 3 participants 6 messages Apr 10, 2016 – Jun 13, 2016

lore
Share & tools
lore

iQQator

author
#0 lore raw

Public bug reported:

Hello QEMU,

I try compile qemu from git pulled by me today and have a troubles:

GEN trace/generated-helpers.c
CC aarch64-softmmu/trace/generated-helpers.o
LINK aarch64-softmmu/qemu-system-aarch64
Undefined symbols for architecture x86_64:
"_event_notifier_init_fd", referenced from:
_process_msg in ivshmem.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [qemu-system-aarch64] Error 1
make: *** [subdir-aarch64-softmmu] Error 2

** Affects: qemu
Importance: Undecided
Status: New

Signature · 28 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/1568589

Title:
  Compile for os x host failed

Status in QEMU:
  New

Bug description:
  Hello QEMU,

  I try compile qemu from git pulled by me today and have a troubles:

   GEN   trace/generated-helpers.c
    CC    aarch64-softmmu/trace/generated-helpers.o
    LINK  aarch64-softmmu/qemu-system-aarch64
  Undefined symbols for architecture x86_64:
    "_event_notifier_init_fd", referenced from:
        _process_msg in ivshmem.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[1]: *** [qemu-system-aarch64] Error 1
  make: *** [subdir-aarch64-softmmu] Error 2

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

Host:

# uname -a
Darwin MacBook-Pro 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
# ./configure
Configure: http://pastebin.com/L9ytLFDE
# make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

Signature · 28 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/1568589

Title:
  Compile for os x host failed

Status in QEMU:
  New

Bug description:
  Hello QEMU,

  I try compile qemu from git pulled by me today and have a troubles:

   GEN   trace/generated-helpers.c
    CC    aarch64-softmmu/trace/generated-helpers.o
    LINK  aarch64-softmmu/qemu-system-aarch64
  Undefined symbols for architecture x86_64:
    "_event_notifier_init_fd", referenced from:
        _process_msg in ivshmem.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[1]: *** [qemu-system-aarch64] Error 1
  make: *** [subdir-aarch64-softmmu] Error 2

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

Also for i386

LINK i386-softmmu/qemu-system-i386
Undefined symbols for architecture x86_64:
"_event_notifier_init_fd", referenced from:
_process_msg in ivshmem.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [qemu-system-i386] Error 1
make: *** [subdir-i386-softmmu] Error 2

Signature · 28 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/1568589

Title:
  Compile for os x host failed

Status in QEMU:
  New

Bug description:
  Hello QEMU,

  I try compile qemu from git pulled by me today and have a troubles:

   GEN   trace/generated-helpers.c
    CC    aarch64-softmmu/trace/generated-helpers.o
    LINK  aarch64-softmmu/qemu-system-aarch64
  Undefined symbols for architecture x86_64:
    "_event_notifier_init_fd", referenced from:
        _process_msg in ivshmem.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[1]: *** [qemu-system-aarch64] Error 1
  make: *** [subdir-aarch64-softmmu] Error 2

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

fix: http://patchwork.ozlabs.org/patch/603499/

Signature · 28 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/1568589

Title:
  Compile for os x host failed

Status in QEMU:
  New

Bug description:
  Hello QEMU,

  I try compile qemu from git pulled by me today and have a troubles:

   GEN   trace/generated-helpers.c
    CC    aarch64-softmmu/trace/generated-helpers.o
    LINK  aarch64-softmmu/qemu-system-aarch64
  Undefined symbols for architecture x86_64:
    "_event_notifier_init_fd", referenced from:
        _process_msg in ivshmem.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[1]: *** [qemu-system-aarch64] Error 1
  make: *** [subdir-aarch64-softmmu] Error 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1568589/+subscriptions
#4 lore raw
Quoted 1 line · iQQator

fix: http://patchwork.ozlabs.org/patch/603499/

This patch isn't correct. Quoting from its review:

ivshmem.o should only be linked when CONFIG_EVENTFD is set. pci.mak has

    CONFIG_IVSHMEM=$(CONFIG_EVENTFD)

The compile error shown above indicates CONFIG_EVENTFD=y for make (since ivshmem.o gets linked), but !defined(CONFIG_EVENTFD) for C (or else event_notifier_init_fd() would exist). Your build tree is messed up, or the makefiles are broken. Try starting over with a fresh build tree.

End quote.

#5 lore raw
In reply to iQQator

According to the discussion for the patch that you've mentioned, the problem should go away after a "make distclean". Can you still reproduce it after doing a fresh build?

Signature · 28 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/1568589

Title:
  Compile for os x host failed

Status in QEMU:
  New

Bug description:
  Hello QEMU,

  I try compile qemu from git pulled by me today and have a troubles:

   GEN   trace/generated-helpers.c
    CC    aarch64-softmmu/trace/generated-helpers.o
    LINK  aarch64-softmmu/qemu-system-aarch64
  Undefined symbols for architecture x86_64:
    "_event_notifier_init_fd", referenced from:
        _process_msg in ivshmem.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[1]: *** [qemu-system-aarch64] Error 1
  make: *** [subdir-aarch64-softmmu] Error 2

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