qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___


From: Molt
Subject: [Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data
Date: Sat, 09 May 2015 18:19:46 -0000

Public bug reported:

Trying to build qemu on my system fails during linking with the error:

Undefined symbols for architecture x86_64:
  "___emutls_v.prng_state", referenced from:
      _main in region-test.o
      __GLOBAL__sub_I_65535_0_region_test.c in region-test.o
  "___emutls_v.prng_state_data", referenced from:
      _main in region-test.o
      __GLOBAL__sub_I_65535_0_region_test.c in region-test.o

My setup:

OS: OS X 10.10.3, 64bit
gcc: 5.1.0
clang: 6.1.0

configure command:

configure --prefix="$HOME/local" --cc=clang --host-cc=clang
--cxx=clang++

It makes no difference whether I try to build in the source directory or 
somewhere else.
It is the same for qemu release 2.3.0 and qemu address@hidden

Now this is clearly happening in the pixman submodule, but it does not
seem to be a pixman issue, as I can clone
git://anongit.freedesktop.org/pixman
@cf086d4949092861dc3729465a3881d229cc1060 and build it without any
errors with just :

configure --prefix="$HOME/local"
make

It also works with

configure --prefix="$HOME/local" CC=clang CXX=clang++
make

although then OpenMP is disabled.
Also, running

nm qemu/pixman/test/utils.o

gives me (amongst other stuff):

0000000000000020 C ___emutls_v.prng_state
0000000000000020 C ___emutls_v.prng_state_data

So the symbols are actually there, it's really just linking that fails.

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: build osx

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

Title:
  Building on OS X: Undefined symbols ___emutls_v.prng_state and
  ___emutls_v.prng_state_data

Status in QEMU:
  New

Bug description:
  Trying to build qemu on my system fails during linking with the error:

  Undefined symbols for architecture x86_64:
    "___emutls_v.prng_state", referenced from:
        _main in region-test.o
        __GLOBAL__sub_I_65535_0_region_test.c in region-test.o
    "___emutls_v.prng_state_data", referenced from:
        _main in region-test.o
        __GLOBAL__sub_I_65535_0_region_test.c in region-test.o

  My setup:

  OS: OS X 10.10.3, 64bit
  gcc: 5.1.0
  clang: 6.1.0

  configure command:

  configure --prefix="$HOME/local" --cc=clang --host-cc=clang
  --cxx=clang++

  It makes no difference whether I try to build in the source directory or 
somewhere else.
  It is the same for qemu release 2.3.0 and qemu address@hidden

  Now this is clearly happening in the pixman submodule, but it does not
  seem to be a pixman issue, as I can clone
  git://anongit.freedesktop.org/pixman
  @cf086d4949092861dc3729465a3881d229cc1060 and build it without any
  errors with just :

  configure --prefix="$HOME/local"
  make

  It also works with

  configure --prefix="$HOME/local" CC=clang CXX=clang++
  make

  although then OpenMP is disabled.
  Also, running

  nm qemu/pixman/test/utils.o

  gives me (amongst other stuff):

  0000000000000020 C ___emutls_v.prng_state
  0000000000000020 C ___emutls_v.prng_state_data

  So the symbols are actually there, it's really just linking that
  fails.

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



reply via email to

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