Comment 7 for bug 1737194

Revision history for this message
John Arbuckle (programmingkidx) wrote : Re: [Qemu-devel] [Bug 1737194] Re: Windows NT 4.0 fails to boot from qcow2 installation

> On Jan 25, 2018, at 11:16 AM, Peter Maydell <email address hidden> wrote:
>
> On 25 January 2018 at 15:58, John Arbuckle <email address hidden> wrote:
>> I did try to build at commits 306ec6c3cece7004429c79c1ac93d49919f1f1cc
>> and e689f7c668cbd9d08f330e17c3dd3a059c9553d3. Both failed to build on my
>> Mac OS X system. Here is the error message I usually saw:
>>
>> LINK qemu-io
>> Undefined symbols for architecture x86_64:
>> "_use_rt_clock", referenced from:
>> _bdrv_acct_start in block.o
>> _bdrv_acct_done in block.o
>> Undefined symbols for architecture x86_64:
>> _qemu_clock_get_ns in qemu-timer.o
>> "_use_rt_clock", referenced from:
>> _bdrv_acct_start in block.o
>> _bdrv_acct_done in block.o
>> _qemu_clock_get_ns in qemu-timer.o
>
> If you configure with --disable-tools does it manage to build,
> or does it just go on to fail to link the main QEMU binary
> with the same error? (We've had some issues in the past I think
> where configure put libraries on the main binary link line but
> not on the tools link lines, so maybe worth a try...)
>
> thanks
> -- PMM
>

It still fails to build:

Build commands: ./configure --disable-tools --target-list=i386-softmmu && make -j 4

QEMU at commit: 306ec6c3cece7004429c79c1ac93d49919f1f1cc

  LINK i386-softmmu/qemu-system-i386
Undefined symbols for architecture x86_64:
  "_use_rt_clock", referenced from:
      _bdrv_acct_start in block.o
      _bdrv_acct_done in block.o
      _qemu_clock_get_ns in qemu-timer.o
      _cpu_get_clock in cpus.o
      _cpu_enable_ticks in cpus.o
      _cpu_disable_ticks in cpus.o
      _icount_warp_rt in cpus.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