All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data
@ 2015-05-09 18:19 Molt
  2015-05-11 15:17 ` Peter Maydell
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Molt @ 2015-05-09 18:19 UTC (permalink / raw)
  To: qemu-devel

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 git@f8340b360b9bc29d48716ba8aca79df2b9544979.

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 git@f8340b360b9bc29d48716ba8aca79df2b9544979.

  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data
  2015-05-09 18:19 [Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data Molt
@ 2015-05-11 15:17 ` Peter Maydell
  2015-05-14  9:42 ` [Qemu-devel] [Bug 1453436] " Molt
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2015-05-11 15:17 UTC (permalink / raw)
  To: Bug 1453436; +Cc: QEMU Developers

On 9 May 2015 at 19:19, Molt <molt@gmx.net> wrote:
> 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++

I build on OSX 10.10.3 with that clang version, but I build with
the system pixman (in /opt/X11 and presumably part of the optional
X11 OSX download), so I guess that's the difference in our setups
here.

I tried building having configured --without-system-pixman,
but that seems to fail to compile much earlier than your error:

make[3]: *** No rule to make target `pixman-combine.h.template',
needed by `pixman-combine32.h'. Stop.

-- PMM

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [Bug 1453436] Re: Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data
  2015-05-09 18:19 [Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data Molt
  2015-05-11 15:17 ` Peter Maydell
@ 2015-05-14  9:42 ` Molt
  2015-05-14 10:13 ` Peter Maydell
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Molt @ 2015-05-14  9:42 UTC (permalink / raw)
  To: qemu-devel

I have XQuartz 2.7.7 installed and there is no pixman in /opt/X11/bin.

-- 
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 git@f8340b360b9bc29d48716ba8aca79df2b9544979.

  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [Bug 1453436] Re: Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data
  2015-05-09 18:19 [Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data Molt
  2015-05-11 15:17 ` Peter Maydell
  2015-05-14  9:42 ` [Qemu-devel] [Bug 1453436] " Molt
@ 2015-05-14 10:13 ` Peter Maydell
  2015-05-14 11:24 ` Molt
  2016-10-24 10:21 ` Thomas Huth
  4 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2015-05-14 10:13 UTC (permalink / raw)
  To: qemu-devel

It's /opt/X11/lib/libpixman-1.dylib and /opt/X11/include/pixman-1/ for
me, but yes, it's possible I've got that from somewhere other than
XQuartz.

-- 
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 git@f8340b360b9bc29d48716ba8aca79df2b9544979.

  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [Bug 1453436] Re: Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data
  2015-05-09 18:19 [Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data Molt
                   ` (2 preceding siblings ...)
  2015-05-14 10:13 ` Peter Maydell
@ 2015-05-14 11:24 ` Molt
  2016-10-24 10:21 ` Thomas Huth
  4 siblings, 0 replies; 6+ messages in thread
From: Molt @ 2015-05-14 11:24 UTC (permalink / raw)
  To: qemu-devel

Ah well, I only have the "normal" PATH set, not library or include path.
But I managed to build qemu now by just building pixman separately.

-- 
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 git@f8340b360b9bc29d48716ba8aca79df2b9544979.

  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [Bug 1453436] Re: Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data
  2015-05-09 18:19 [Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data Molt
                   ` (3 preceding siblings ...)
  2015-05-14 11:24 ` Molt
@ 2016-10-24 10:21 ` Thomas Huth
  4 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2016-10-24 10:21 UTC (permalink / raw)
  To: qemu-devel

According to comment #4, the build finally worked, so I'm closing this
ticket now.

** Changed in: qemu
       Status: New => Won't Fix

-- 
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:
  Won't Fix

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 git@f8340b360b9bc29d48716ba8aca79df2b9544979.

  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-24 10:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-09 18:19 [Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data Molt
2015-05-11 15:17 ` Peter Maydell
2015-05-14  9:42 ` [Qemu-devel] [Bug 1453436] " Molt
2015-05-14 10:13 ` Peter Maydell
2015-05-14 11:24 ` Molt
2016-10-24 10:21 ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.