[Top][All Lists]

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

[Bug 1896096] Re: Git version: Build process is broken in block_curl.c.o

From: Toolybird
Subject: [Bug 1896096] Re: Git version: Build process is broken in block_curl.c.o
Date: Sat, 19 Sep 2020 22:31:47 -0000

Looking deeper into this... I believe there are indeed qemu bugs here.

It's actually the qemu configure script which is adding `-pie'

$ echo $LDFLAGS

Yet meson-logs/meson-log.txt tells me that:

Using 'LDFLAGS' from environment with value: '-g -pie -Wl,-O1,--sort-

Where did the `-pie' come from? Answer: the qemu configure script!


Simply unsetting LDFLAGS allows the build to complete successfully.

Not only that, qemu is now ignoring my user supplied CFLAGS from the
environment. I haven't analysed this one yet but I'm starting to realise
this hybrid meson/configure script approach is quite complicated.

You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

  Git version: Build process is broken in block_curl.c.o

Status in QEMU:

Bug description:
  Gcc version: 10.2.0
  Glusterfs: 8.1
  Libguestfs: 1.42

  Configure options used:

  configure \
      --prefix=/usr \
      --sysconfdir=/etc \
      --localstatedir=/var \
      --libexecdir=/usr/lib/qemu \
      --extra-ldflags="$LDFLAGS" \
      --smbd=/usr/bin/smbd \
      --enable-modules \
      --enable-sdl \
      --disable-werror \
      --enable-slirp=system \
      --enable-xfsctl \
      --audio-drv-list="pa alsa sdl"
  Error log attached. Here is the beginning:

  /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/Scrt1.o: 
in function `_start':
  (.text+0x24): undefined reference to `main'
  /usr/bin/ld: libblock-curl.a(block_curl.c.o): in function `curl_block_init':

To manage notifications about this bug go to:

reply via email to

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