qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1184616] [NEW] undefined reference to `trace_qemu_anon_ram_alloc'
@ 2013-05-27 14:02 Nigel Horne
  2013-05-27 19:13 ` Stefan Hajnoczi
  2016-10-19 16:37 ` [Qemu-devel] [Bug 1184616] Re: undefined reference to `trace_qemu_anon_ram_alloc' T. Huth
  0 siblings, 2 replies; 8+ messages in thread
From: Nigel Horne @ 2013-05-27 14:02 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
fails to compile:

...
  LINK  qemu-ga
libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
oslib-posix.c:(.text+0x154): undefined reference to `trace_qemu_anon_ram_alloc'
libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
oslib-posix.c:(.text+0x1e7): undefined reference to `trace_qemu_anon_ram_free'
collect2: error: ld returned 1 exit status
make: *** [qemu-ga] Error 1

This is on Ubuntu 13.04, gcc 4.7.3, configure flags: 
'./configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'

** Affects: qemu
     Importance: Undecided
         Status: New

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

Title:
   undefined reference to `trace_qemu_anon_ram_alloc'

Status in QEMU:
  New

Bug description:
  The latest git version (commit
  6a4e17711442849bf2cc731ccddef5a2a2d92d29) fails to compile:

  ...
    LINK  qemu-ga
  libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
  oslib-posix.c:(.text+0x154): undefined reference to `trace_qemu_anon_ram_alloc'
  libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
  oslib-posix.c:(.text+0x1e7): undefined reference to `trace_qemu_anon_ram_free'
  collect2: error: ld returned 1 exit status
  make: *** [qemu-ga] Error 1

  This is on Ubuntu 13.04, gcc 4.7.3, configure flags: 
  './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'

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

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

* Re: [Qemu-devel] [Bug 1184616] [NEW] undefined reference to `trace_qemu_anon_ram_alloc'
  2013-05-27 14:02 [Qemu-devel] [Bug 1184616] [NEW] undefined reference to `trace_qemu_anon_ram_alloc' Nigel Horne
@ 2013-05-27 19:13 ` Stefan Hajnoczi
  2013-05-27 21:04   ` [Qemu-devel] [Bug 1184616] [NEW] undefined reference to`trace_qemu_anon_ram_alloc' Nigel Horne
  2016-10-19 16:37 ` [Qemu-devel] [Bug 1184616] Re: undefined reference to `trace_qemu_anon_ram_alloc' T. Huth
  1 sibling, 1 reply; 8+ messages in thread
From: Stefan Hajnoczi @ 2013-05-27 19:13 UTC (permalink / raw)
  To: Bug 1184616; +Cc: qemu-devel

On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <1184616@bugs.launchpad.net> wrote:
> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
> fails to compile:
>
> ...
>   LINK  qemu-ga
> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
> oslib-posix.c:(.text+0x154): undefined reference to `trace_qemu_anon_ram_alloc'
> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
> oslib-posix.c:(.text+0x1e7): undefined reference to `trace_qemu_anon_ram_free'
> collect2: error: ld returned 1 exit status
> make: *** [qemu-ga] Error 1
>
> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'

Please try:
make distclean && ./configure --enable-linux-aio --enable-kvm
--enable-vhost-net && make

Stefan

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

* Re: [Qemu-devel] [Bug 1184616] [NEW] undefined reference to`trace_qemu_anon_ram_alloc'
  2013-05-27 19:13 ` Stefan Hajnoczi
@ 2013-05-27 21:04   ` Nigel Horne
  2013-05-28  8:38     ` Stefan Hajnoczi
  0 siblings, 1 reply; 8+ messages in thread
From: Nigel Horne @ 2013-05-27 21:04 UTC (permalink / raw)
  To: qemu-devel

> On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <1184616@bugs.launchpad.net> 
> wrote:
>> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
>> fails to compile:
>>
>> ...
>>   LINK  qemu-ga
>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
>> oslib-posix.c:(.text+0x154): undefined reference to 
>> `trace_qemu_anon_ram_alloc'
>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
>> oslib-posix.c:(.text+0x1e7): undefined reference to 
>> `trace_qemu_anon_ram_free'
>> collect2: error: ld returned 1 exit status
>> make: *** [qemu-ga] Error 1
>>
>> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
>> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
>
> Please try:
> make distclean && ./configure --enable-linux-aio --enable-kvm
> --enable-vhost-net && make

I tried that before I raised the bug.  However I tried it again to be sure, 
and yes I still get the same error.

>
> Stefan

Regards,

-Nigel

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

Title:
   undefined reference to `trace_qemu_anon_ram_alloc'

Status in QEMU:
  New

Bug description:
  The latest git version (commit
  6a4e17711442849bf2cc731ccddef5a2a2d92d29) fails to compile:

  ...
    LINK  qemu-ga
  libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
  oslib-posix.c:(.text+0x154): undefined reference to `trace_qemu_anon_ram_alloc'
  libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
  oslib-posix.c:(.text+0x1e7): undefined reference to `trace_qemu_anon_ram_free'
  collect2: error: ld returned 1 exit status
  make: *** [qemu-ga] Error 1

  This is on Ubuntu 13.04, gcc 4.7.3, configure flags: 
  './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'

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

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

* Re: [Qemu-devel] [Bug 1184616] [NEW] undefined reference to`trace_qemu_anon_ram_alloc'
  2013-05-27 21:04   ` [Qemu-devel] [Bug 1184616] [NEW] undefined reference to`trace_qemu_anon_ram_alloc' Nigel Horne
@ 2013-05-28  8:38     ` Stefan Hajnoczi
  2013-05-28  8:47       ` Fam Zheng
  2013-05-28 13:18       ` Nigel Horne
  0 siblings, 2 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2013-05-28  8:38 UTC (permalink / raw)
  To: Nigel Horne; +Cc: qemu-devel

On Mon, May 27, 2013 at 09:04:26PM -0000, Nigel Horne wrote:
> > On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <1184616@bugs.launchpad.net> 
> > wrote:
> >> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
> >> fails to compile:
> >>
> >> ...
> >>   LINK  qemu-ga
> >> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
> >> oslib-posix.c:(.text+0x154): undefined reference to 
> >> `trace_qemu_anon_ram_alloc'
> >> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
> >> oslib-posix.c:(.text+0x1e7): undefined reference to 
> >> `trace_qemu_anon_ram_free'
> >> collect2: error: ld returned 1 exit status
> >> make: *** [qemu-ga] Error 1
> >>
> >> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
> >> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
> >
> > Please try:
> > make distclean && ./configure --enable-linux-aio --enable-kvm
> > --enable-vhost-net && make
> 
> I tried that before I raised the bug.  However I tried it again to be sure, 
> and yes I still get the same error.

Please post the output of "git status".  I wonder if there are stale
files because the build works fine here.

Stefan

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

* Re: [Qemu-devel] [Bug 1184616] [NEW] undefined reference to`trace_qemu_anon_ram_alloc'
  2013-05-28  8:38     ` Stefan Hajnoczi
@ 2013-05-28  8:47       ` Fam Zheng
  2013-05-28 13:18       ` Nigel Horne
  1 sibling, 0 replies; 8+ messages in thread
From: Fam Zheng @ 2013-05-28  8:47 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: Nigel Horne, qemu-devel

On Tue, 05/28 10:38, Stefan Hajnoczi wrote:
> On Mon, May 27, 2013 at 09:04:26PM -0000, Nigel Horne wrote:
> > > On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <1184616@bugs.launchpad.net> 
> > > wrote:
> > >> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
> > >> fails to compile:
> > >>
> > >> ...
> > >>   LINK  qemu-ga
> > >> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
> > >> oslib-posix.c:(.text+0x154): undefined reference to 
> > >> `trace_qemu_anon_ram_alloc'
> > >> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
> > >> oslib-posix.c:(.text+0x1e7): undefined reference to 
> > >> `trace_qemu_anon_ram_free'
> > >> collect2: error: ld returned 1 exit status
> > >> make: *** [qemu-ga] Error 1
> > >>
> > >> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
> > >> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
> > >
> > > Please try:
> > > make distclean && ./configure --enable-linux-aio --enable-kvm
> > > --enable-vhost-net && make
> > 
> > I tried that before I raised the bug.  However I tried it again to be sure, 
> > and yes I still get the same error.
> 
> Please post the output of "git status".  I wonder if there are stale
> files because the build works fine here.
> 
> Stefan
> 

In my case, git ignored files may also have affects. So make distclean
then git clean -dfx is worth a try.

-- 
Fam

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

* Re: [Qemu-devel] [Bug 1184616] [NEW] undefined reference to`trace_qemu_anon_ram_alloc'
  2013-05-28  8:38     ` Stefan Hajnoczi
  2013-05-28  8:47       ` Fam Zheng
@ 2013-05-28 13:18       ` Nigel Horne
  2013-05-28 13:30         ` Stefan Hajnoczi
  1 sibling, 1 reply; 8+ messages in thread
From: Nigel Horne @ 2013-05-28 13:18 UTC (permalink / raw)
  To: qemu-devel

>>> On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <1184616@bugs.launchpad.net>
>>> wrote:
>>>> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
>>>> fails to compile:
>>>>
>>>> ...
>>>>    LINK  qemu-ga
>>>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
>>>> oslib-posix.c:(.text+0x154): undefined reference to
>>>> `trace_qemu_anon_ram_alloc'
>>>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
>>>> oslib-posix.c:(.text+0x1e7): undefined reference to
>>>> `trace_qemu_anon_ram_free'
>>>> collect2: error: ld returned 1 exit status
>>>> make: *** [qemu-ga] Error 1
>>>>
>>>> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
>>>> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
>>> Please try:
>>> make distclean && ./configure --enable-linux-aio --enable-kvm
>>> --enable-vhost-net && make
>> I tried that before I raised the bug.  However I tried it again to be sure,
>> and yes I still get the same error.
> Please post the output of "git status".  I wonder if there are stale
> files because the build works fine here.

Here it is:

# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       libhw32/
#       libhw64/
#       trace.c
#       trace.h

I don't do any local modification just 'git pull' and recompile. Perhaps 
git is broken so I should 'git clone' and start again.

-Nigel

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

Title:
   undefined reference to `trace_qemu_anon_ram_alloc'

Status in QEMU:
  New

Bug description:
  The latest git version (commit
  6a4e17711442849bf2cc731ccddef5a2a2d92d29) fails to compile:

  ...
    LINK  qemu-ga
  libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
  oslib-posix.c:(.text+0x154): undefined reference to `trace_qemu_anon_ram_alloc'
  libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
  oslib-posix.c:(.text+0x1e7): undefined reference to `trace_qemu_anon_ram_free'
  collect2: error: ld returned 1 exit status
  make: *** [qemu-ga] Error 1

  This is on Ubuntu 13.04, gcc 4.7.3, configure flags: 
  './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'

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

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

* Re: [Qemu-devel] [Bug 1184616] [NEW] undefined reference to`trace_qemu_anon_ram_alloc'
  2013-05-28 13:18       ` Nigel Horne
@ 2013-05-28 13:30         ` Stefan Hajnoczi
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2013-05-28 13:30 UTC (permalink / raw)
  To: Bug 1184616; +Cc: qemu-devel

On Tue, May 28, 2013 at 3:18 PM, Nigel Horne <1184616@bugs.launchpad.net> wrote:
>>>> On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <1184616@bugs.launchpad.net>
>>>> wrote:
>>>>> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
>>>>> fails to compile:
>>>>>
>>>>> ...
>>>>>    LINK  qemu-ga
>>>>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
>>>>> oslib-posix.c:(.text+0x154): undefined reference to
>>>>> `trace_qemu_anon_ram_alloc'
>>>>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
>>>>> oslib-posix.c:(.text+0x1e7): undefined reference to
>>>>> `trace_qemu_anon_ram_free'
>>>>> collect2: error: ld returned 1 exit status
>>>>> make: *** [qemu-ga] Error 1
>>>>>
>>>>> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
>>>>> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
>>>> Please try:
>>>> make distclean && ./configure --enable-linux-aio --enable-kvm
>>>> --enable-vhost-net && make
>>> I tried that before I raised the bug.  However I tried it again to be sure,
>>> and yes I still get the same error.
>> Please post the output of "git status".  I wonder if there are stale
>> files because the build works fine here.
>
> Here it is:
>
> # On branch master
> # Untracked files:
> #   (use "git add <file>..." to include in what will be committed)
> #
> #       libhw32/
> #       libhw64/
> #       trace.c
> #       trace.h

rm trace.[ch]

Then try again.

The problem is that the auto-generated tracing files moved into
trace/generated-* but the Makefile and C compiler include paths still
pick up the old trace.[ch].

You probably built an older version of QEMU first in the same
directory.  The latest make distclean doesn't know about the old
trace.[ch] files.

Stefan

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

* [Qemu-devel] [Bug 1184616] Re: undefined reference to `trace_qemu_anon_ram_alloc'
  2013-05-27 14:02 [Qemu-devel] [Bug 1184616] [NEW] undefined reference to `trace_qemu_anon_ram_alloc' Nigel Horne
  2013-05-27 19:13 ` Stefan Hajnoczi
@ 2016-10-19 16:37 ` T. Huth
  1 sibling, 0 replies; 8+ messages in thread
From: T. Huth @ 2016-10-19 16:37 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: New => Invalid

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

Title:
   undefined reference to `trace_qemu_anon_ram_alloc'

Status in QEMU:
  Invalid

Bug description:
  The latest git version (commit
  6a4e17711442849bf2cc731ccddef5a2a2d92d29) fails to compile:

  ...
    LINK  qemu-ga
  libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
  oslib-posix.c:(.text+0x154): undefined reference to `trace_qemu_anon_ram_alloc'
  libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
  oslib-posix.c:(.text+0x1e7): undefined reference to `trace_qemu_anon_ram_free'
  collect2: error: ld returned 1 exit status
  make: *** [qemu-ga] Error 1

  This is on Ubuntu 13.04, gcc 4.7.3, configure flags: 
  './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'

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

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

end of thread, other threads:[~2016-10-19 16:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-27 14:02 [Qemu-devel] [Bug 1184616] [NEW] undefined reference to `trace_qemu_anon_ram_alloc' Nigel Horne
2013-05-27 19:13 ` Stefan Hajnoczi
2013-05-27 21:04   ` [Qemu-devel] [Bug 1184616] [NEW] undefined reference to`trace_qemu_anon_ram_alloc' Nigel Horne
2013-05-28  8:38     ` Stefan Hajnoczi
2013-05-28  8:47       ` Fam Zheng
2013-05-28 13:18       ` Nigel Horne
2013-05-28 13:30         ` Stefan Hajnoczi
2016-10-19 16:37 ` [Qemu-devel] [Bug 1184616] Re: undefined reference to `trace_qemu_anon_ram_alloc' T. Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).