All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 1926782] [NEW] configure script --extra-cflags not passed to config-meson.cross
@ 2021-04-30 15:05 Anisse Astier
  2021-04-30 15:47 ` [Bug 1926782] " Anisse Astier
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Anisse Astier @ 2021-04-30 15:05 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Since qemu 5.2, when building, the configure would not finish, but would
return this error instead:

   qemu ../meson.build:852:2: ERROR: C header 'sasl/sasl.h' not found

This is for a cross build, and I invoke qemu with the --extra-cflags and
--extra-ldflags containing all the proper paths to the headers,
libraries etc. It worked properly with qemu 3.1 to 5.1.

After looking into the configure script, it seems that meson is passed
the CFLAGS environment variable instead of QEMU_CFLAGS, and only the
latter contains the --extra-cflags argument:

    echo "c_args = [${CFLAGS:+$(meson_quote $CFLAGS)}]" >> $cross

Using the CFLAGS and LDFLAGS environment variable instead of --extra-
cflags and --extra-ldflags fixes the issue.

** 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/1926782

Title:
  configure script --extra-cflags not passed to config-meson.cross

Status in QEMU:
  New

Bug description:
  Since qemu 5.2, when building, the configure would not finish, but
  would return this error instead:

     qemu ../meson.build:852:2: ERROR: C header 'sasl/sasl.h' not found

  This is for a cross build, and I invoke qemu with the --extra-cflags
  and --extra-ldflags containing all the proper paths to the headers,
  libraries etc. It worked properly with qemu 3.1 to 5.1.

  After looking into the configure script, it seems that meson is passed
  the CFLAGS environment variable instead of QEMU_CFLAGS, and only the
  latter contains the --extra-cflags argument:

      echo "c_args = [${CFLAGS:+$(meson_quote $CFLAGS)}]" >> $cross

  Using the CFLAGS and LDFLAGS environment variable instead of --extra-
  cflags and --extra-ldflags fixes the issue.

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


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

* [Bug 1926782] Re: configure script --extra-cflags not passed to config-meson.cross
  2021-04-30 15:05 [Bug 1926782] [NEW] configure script --extra-cflags not passed to config-meson.cross Anisse Astier
@ 2021-04-30 15:47 ` Anisse Astier
  2021-04-30 15:50 ` Anisse Astier
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Anisse Astier @ 2021-04-30 15:47 UTC (permalink / raw)
  To: qemu-devel

Here is my full invocation of the configure script:

CFLAGS=" -isystem /home/anisse/dev/qemu-cross/build/usr/include" \
LDFLAGS="-Wl,--gc-sections -Wl,-Y/home/anisse/dev/qemu-cross/build/lib -Wl,-Y/home/anisse/dev/qemu-cross/build/usr/lib -Wl,-rpath-link,/home/anisse/dev/qemu-cross/build/lib -Wl,-rpath-link,/home/anisse/dev/qemu-cross/build/usr/lib" \
PKG_CONFIG=pkg-config \
PKG_CONFIG_LIBDIR="/home/anisse/dev/qemu-cross/build/usr/lib/pkgconfig" \
PKG_CONFIG_SYSROOT_DIR="/home/anisse/dev/qemu-cross/build" \
./configure $(cat ../features) --enable-vnc --enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png --target-list=aarch64-softmmu --cross-prefix=/opt/toolchains/aarch64-musl-1.2.2-gcc-10.2.0-binutils-2.36-gdb-7.12.1-1/bin/aarch64-linux-musl-

And the content of the ./features file:

--enable-system --disable-user --disable-linux-user --disable-bsd-user
--disable-docs --disable-guest-agent --disable-guest-agent-msi --enable-
pie --disable-modules --disable-module-upgrades --disable-debug-tcg
--disable-debug-info --disable-sparse --disable-safe-stack --disable-
gnutls --disable-nettle --disable-gcrypt --disable-auth-pam --disable-
sdl --disable-sdl-image --disable-gtk --disable-vte --disable-curses
--disable-iconv --enable-vnc --enable-vnc-sasl --enable-vnc-jpeg
--enable-vnc-png --disable-cocoa --disable-virtfs --disable-virtiofsd
--disable-libudev --disable-mpath --disable-xen --disable-xen-pci-
passthrough --disable-brlapi --disable-curl --enable-membarrier
--enable-fdt --enable-kvm --disable-hax --disable-hvf --disable-whpx
--disable-rdma --disable-pvrdma --disable-vde --disable-netmap
--disable-linux-aio --disable-linux-io-uring --disable-cap-ng --disable-
attr --enable-vhost-net --enable-vhost-vsock --enable-vhost-scsi
--enable-vhost-crypto --enable-vhost-kernel --enable-vhost-user
--disable-vhost-user-blk-server --disable-vhost-vdpa --disable-spice
--disable-rbd --disable-libiscsi --disable-libnfs --disable-smartcard
--disable-u2f --enable-libusb --disable-live-block-migration --disable-
usb-redir --disable-lzo --disable-snappy --disable-bzip2 --disable-lzfse
--disable-zstd --disable-seccomp --disable-coroutine-pool --disable-
glusterfs --disable-tpm --disable-libssh --disable-numa --disable-
libxml2 --disable-tcmalloc --disable-jemalloc --disable-avx2 --disable-
avx512f --disable-replication --disable-opengl --disable-virglrenderer
--disable-xfsctl --disable-qom-cast-debug --enable-tools --disable-bochs
--disable-cloop --disable-dmg --enable-qcow1 --enable-vdi --disable-
vvfat --disable-qed --disable-parallels --disable-sheepdog --enable-
crypto-afalg --disable-capstone --disable-debug-mutex --disable-libpmem
--disable-xkbcommon --disable-rng-none --disable-libdaxctl

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

Title:
  configure script --extra-cflags not passed to config-meson.cross

Status in QEMU:
  New

Bug description:
  Since qemu 5.2, when building, the configure would not finish, but
  would return this error instead:

     qemu ../meson.build:852:2: ERROR: C header 'sasl/sasl.h' not found

  This is for a cross build, and I invoke qemu with the --extra-cflags
  and --extra-ldflags containing all the proper paths to the headers,
  libraries etc. It worked properly with qemu 3.1 to 5.1.

  After looking into the configure script, it seems that meson is passed
  the CFLAGS environment variable instead of QEMU_CFLAGS, and only the
  latter contains the --extra-cflags argument:

      echo "c_args = [${CFLAGS:+$(meson_quote $CFLAGS)}]" >> $cross

  Using the CFLAGS and LDFLAGS environment variable instead of --extra-
  cflags and --extra-ldflags fixes the issue.

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


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

* [Bug 1926782] Re: configure script --extra-cflags not passed to config-meson.cross
  2021-04-30 15:05 [Bug 1926782] [NEW] configure script --extra-cflags not passed to config-meson.cross Anisse Astier
  2021-04-30 15:47 ` [Bug 1926782] " Anisse Astier
@ 2021-04-30 15:50 ` Anisse Astier
  2021-05-15 11:10 ` Thomas Huth
  2021-07-15  4:17 ` Launchpad Bug Tracker
  3 siblings, 0 replies; 5+ messages in thread
From: Anisse Astier @ 2021-04-30 15:50 UTC (permalink / raw)
  To: qemu-devel

Sorry, this is the "fixed" version, but you get the idea of how I invoke it. sasl.h is present in 
/home/anisse/dev/qemu-cross/build/usr/include/sasl/sasl.h ; this path is passed through -isystem.

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

Title:
  configure script --extra-cflags not passed to config-meson.cross

Status in QEMU:
  New

Bug description:
  Since qemu 5.2, when building, the configure would not finish, but
  would return this error instead:

     qemu ../meson.build:852:2: ERROR: C header 'sasl/sasl.h' not found

  This is for a cross build, and I invoke qemu with the --extra-cflags
  and --extra-ldflags containing all the proper paths to the headers,
  libraries etc. It worked properly with qemu 3.1 to 5.1.

  After looking into the configure script, it seems that meson is passed
  the CFLAGS environment variable instead of QEMU_CFLAGS, and only the
  latter contains the --extra-cflags argument:

      echo "c_args = [${CFLAGS:+$(meson_quote $CFLAGS)}]" >> $cross

  Using the CFLAGS and LDFLAGS environment variable instead of --extra-
  cflags and --extra-ldflags fixes the issue.

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


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

* [Bug 1926782] Re: configure script --extra-cflags not passed to config-meson.cross
  2021-04-30 15:05 [Bug 1926782] [NEW] configure script --extra-cflags not passed to config-meson.cross Anisse Astier
  2021-04-30 15:47 ` [Bug 1926782] " Anisse Astier
  2021-04-30 15:50 ` Anisse Astier
@ 2021-05-15 11:10 ` Thomas Huth
  2021-07-15  4:17 ` Launchpad Bug Tracker
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2021-05-15 11:10 UTC (permalink / raw)
  To: qemu-devel

The QEMU project is currently moving its bug tracking to another system.
For this we need to know which bugs are still valid and which could be
closed already. Thus we are setting the bug state to "Incomplete" now.

If the bug has already been fixed in the latest upstream version of QEMU,
then please close this ticket as "Fix released".

If it is not fixed yet and you think that this bug report here is still
valid, then you have two options:

1) If you already have an account on gitlab.com, please open a new ticket
for this problem in our new tracker here:

    https://gitlab.com/qemu-project/qemu/-/issues

and then close this ticket here on Launchpad (or let it expire auto-
matically after 60 days). Please mention the URL of this bug ticket on
Launchpad in the new ticket on GitLab.

2) If you don't have an account on gitlab.com and don't intend to get
one, but still would like to keep this ticket opened, then please switch
the state back to "New" or "Confirmed" within the next 60 days (other-
wise it will get closed as "Expired"). We will then eventually migrate
the ticket automatically to the new system (but you won't be the reporter
of the bug in the new system and thus you won't get notified on changes
anymore).

Thank you and sorry for the inconvenience.


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

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

Title:
  configure script --extra-cflags not passed to config-meson.cross

Status in QEMU:
  Incomplete

Bug description:
  Since qemu 5.2, when building, the configure would not finish, but
  would return this error instead:

     qemu ../meson.build:852:2: ERROR: C header 'sasl/sasl.h' not found

  This is for a cross build, and I invoke qemu with the --extra-cflags
  and --extra-ldflags containing all the proper paths to the headers,
  libraries etc. It worked properly with qemu 3.1 to 5.1.

  After looking into the configure script, it seems that meson is passed
  the CFLAGS environment variable instead of QEMU_CFLAGS, and only the
  latter contains the --extra-cflags argument:

      echo "c_args = [${CFLAGS:+$(meson_quote $CFLAGS)}]" >> $cross

  Using the CFLAGS and LDFLAGS environment variable instead of --extra-
  cflags and --extra-ldflags fixes the issue.

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


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

* [Bug 1926782] Re: configure script --extra-cflags not passed to config-meson.cross
  2021-04-30 15:05 [Bug 1926782] [NEW] configure script --extra-cflags not passed to config-meson.cross Anisse Astier
                   ` (2 preceding siblings ...)
  2021-05-15 11:10 ` Thomas Huth
@ 2021-07-15  4:17 ` Launchpad Bug Tracker
  3 siblings, 0 replies; 5+ messages in thread
From: Launchpad Bug Tracker @ 2021-07-15  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

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

Title:
  configure script --extra-cflags not passed to config-meson.cross

Status in QEMU:
  Expired

Bug description:
  Since qemu 5.2, when building, the configure would not finish, but
  would return this error instead:

     qemu ../meson.build:852:2: ERROR: C header 'sasl/sasl.h' not found

  This is for a cross build, and I invoke qemu with the --extra-cflags
  and --extra-ldflags containing all the proper paths to the headers,
  libraries etc. It worked properly with qemu 3.1 to 5.1.

  After looking into the configure script, it seems that meson is passed
  the CFLAGS environment variable instead of QEMU_CFLAGS, and only the
  latter contains the --extra-cflags argument:

      echo "c_args = [${CFLAGS:+$(meson_quote $CFLAGS)}]" >> $cross

  Using the CFLAGS and LDFLAGS environment variable instead of --extra-
  cflags and --extra-ldflags fixes the issue.

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



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

end of thread, other threads:[~2021-07-15  4:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 15:05 [Bug 1926782] [NEW] configure script --extra-cflags not passed to config-meson.cross Anisse Astier
2021-04-30 15:47 ` [Bug 1926782] " Anisse Astier
2021-04-30 15:50 ` Anisse Astier
2021-05-15 11:10 ` Thomas Huth
2021-07-15  4:17 ` Launchpad Bug Tracker

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.