Opened 23 months ago

Last modified 11 months ago

#62025 assigned defect

qemu +vnc fails to configure

Reported by: mouse07410 (Mouse) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: qemu

Description

MacOS 10.15.7, Xcode-12.3.

# QEMU configure log Sun Jan 10 14:38:39 EST 2021
# Configured with: '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/configure' '--prefix=/opt/local' '--cpu=x86_64' '--cc=/usr/bin/clang' '--objcc=/usr/bin/clang' '--host-cc=/usr/bin/clang' '--python=/opt/local/bin/python3.8' '--meson=internal' '--iasl=/usr/bin/false' '--enable-cocoa' '--disable-curses' '--disable-capstone' '--disable-sdl' '--disable-gtk' '--disable-opengl' '--enable-bzip2' '--disable-curl' '--disable-attr' '--disable-vde' '--disable-brlapi' '--disable-cap-ng' '--disable-spice' '--disable-libiscsi' '--disable-rbd' '--disable-smartcard' '--enable-libusb' '--disable-usb-redir' '--disable-seccomp' '--disable-linux-aio' '--disable-glusterfs' '--disable-rdma' '--disable-libssh' '--enable-vnc' '--disable-gnutls' '--disable-gcrypt' '--disable-nettle' '--disable-numa' '--disable-xen' '--disable-snappy' '--enable-lzo' '--disable-lzfse' '--enable-zstd' '--enable-gnutls' '--enable-vnc-sasl' '--enable-vnc-jpeg' '--enable-vnc-png' '--target-list=,x86_64-softmmu,arm-softmmu,aarch64-softmmu' '--extra-ldflags=-L/opt/local/lib -Wl,-headerpad_max_install_names'
#

funcs: do_compiler do_cc compile_object check_define main
lines: 141 173 555 581 0
/usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64 -std=gnu99 -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c
config-temp/qemu-conf.c:2:2: error: __linux__ not defined
#error __linux__ not defined
 ^
1 error generated.

funcs: do_compiler do_cc compile_object check_define main
.  .  .  .  .

Attachments (4)

qemu.main.log.txt (89.2 KB) - added by mouse07410 (Mouse) 23 months ago.
qemu.config.log.txt (137.5 KB) - added by mouse07410 (Mouse) 23 months ago.
meson-log.txt (26.8 KB) - added by cooljeanius (Eric Gallager) 18 months ago.
meson-log.txt for qemu +vnc
config.log (47.9 KB) - added by ShadSterling (Shad Sterling) 11 months ago.
config.log for qemu 6.2.0 with all variants disabled, on macOS 11.6 with Xcode 12.5.1

Download all attachments as: .zip

Change History (11)

Changed 23 months ago by mouse07410 (Mouse)

Attachment: qemu.main.log.txt added

Changed 23 months ago by mouse07410 (Mouse)

Attachment: qemu.config.log.txt added

comment:1 Changed 23 months ago by mouse07410 (Mouse)

It looks like the culprit is +vnc, as without this flag the configuration (and the subsequent build) succeeds.

comment:2 Changed 23 months ago by jmroot (Joshua Root)

Owner: set to raimue
Port: qemu added
Status: newassigned
Summary: qemu fails to configureqemu +vnc fails to configure

Please remember to fill in the Port field and Cc the maintainer.

comment:3 Changed 23 months ago by mouse07410 (Mouse)

Please remember to fill in the Port field and Cc the maintainer

My apologies! Honestly forgot. :-(

Last edited 23 months ago by mouse07410 (Mouse) (previous) (diff)

comment:4 Changed 22 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:5 Changed 22 months ago by ShadSterling (Shad Sterling)

I'm seeing the same error with +vnc and/or any of the +target_* variants

comment:6 Changed 20 months ago by raimue (Rainer Müller)

As the error was thrown by meson, the real error description must be inside the meson log file:

1099	:info:configure A full log can be found at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/build/meson-logs/meson-log.txt
1100	:info:configure ERROR: meson setup failed

Changed 18 months ago by cooljeanius (Eric Gallager)

Attachment: meson-log.txt added

meson-log.txt for qemu +vnc

comment:7 Changed 11 months ago by ShadSterling (Shad Sterling)

I'm seeing a similar error trying to install qemu 6.2.0 with all variants disabled, on macOS 11.6 with Xcode 12.5.1

# QEMU configure log Thu Dec 30 05:41:33 EST 2021
# Configured with: '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-6.2.0/configure' '--prefix=/opt/local' '--cpu=x86_64' '--cc=/usr/bin/clang' '--objcc=/usr/bin/clang' '--host-cc=/usr/bin/clang' '--sphinx-build=/opt/local/bin/sphinx-build-3.9' '--meson=/opt/local/bin/meson' '--iasl=/usr/bin/false' '--disable-cocoa' '--disable-curses' '--disable-capstone' '--disable-sdl' '--disable-gtk' '--disable-opengl' '--enable-bzip2' '--enable-hvf' '--disable-curl' '--disable-attr' '--disable-vde' '--disable-brlapi' '--disable-cap-ng' '--disable-spice' '--disable-libiscsi' '--disable-rbd' '--disable-smartcard' '--disable-libusb' '--disable-usb-redir' '--disable-seccomp' '--disable-linux-aio' '--disable-glusterfs' '--disable-rdma' '--disable-libssh' '--disable-vnc' '--disable-gnutls' '--disable-gcrypt' '--disable-nettle' '--disable-numa' '--disable-xen' '--disable-snappy' '--disable-lzo' '--disable-lzfse' '--disable-zstd' '--target-list=' '--extra-ldflags=-L/opt/local/lib -Wl,-headerpad_max_install_names'
#

funcs: do_compiler do_cc compile_object check_define main
lines: 145 177 487 504 0
/usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64 -std=gnu11 -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c
config-temp/qemu-conf.c:2:2: error: __linux__ not defined
#error __linux__ not defined
 ^
1 error generated.

funcs: do_compiler do_cc compile_object check_define main
lines: 145 177 487 506 0
/usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64 -std=gnu11 -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c
config-temp/qemu-conf.c:2:2: error: _WIN32 not defined
#error _WIN32 not defined
 ^
1 error generated.

... and so on

Changed 11 months ago by ShadSterling (Shad Sterling)

Attachment: config.log added

config.log for qemu 6.2.0 with all variants disabled, on macOS 11.6 with Xcode 12.5.1

Note: See TracTickets for help on using tickets.