OSX 10.7 build failure
Public bug reported:
qemu-1.0.1
./configure --cc=/usr/bin/gcc --disable-darwin-user --disable-bsd-user --disable-guest-agent
CC bitops.o CC migration-exec.o CC migration-unix.o CC migration-fd.o CC audio/audio.o CC audio/noaudio.o CC audio/wavaudio.o CC audio/mixeng.o CC audio/coreaudio.o
audio/coreaudio.c: In function ‘isPlaying’:audio/coreaudio.c:152: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640) audio/coreaudio.c: In function ‘coreaudio_init_out’:audio/coreaudio.c:310: warning: ‘AudioHardwareGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270) audio/coreaudio.c:326: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640) audio/coreaudio.c:353: warning: ‘AudioDeviceSetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675) audio/coreaudio.c:370: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640) audio/coreaudio.c:386: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640) audio/coreaudio.c:403: warning: ‘AudioDeviceSetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675) audio/coreaudio.c:419: warning: ‘AudioDeviceAddIOProc’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419) audio/coreaudio.c:431: warning: ‘AudioDeviceRemoveIOProc’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433) audio/coreaudio.c: In function ‘coreaudio_fini_out’:audio/coreaudio.c:456: warning: ‘AudioDeviceRemoveIOProc’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
CC audio/wavcapture.o
CC ui/keymaps.o
OBJC ui/cocoa.o
In file included from /System/Library/Frameworks/Security.framework/Headers/Security.h:24,
from /System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9,
from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:70,
from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from ui/cocoa.m:25:/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:73: error: conflicting types for ‘uint16’
/Users/marty/extern/qemu-1.0.1/fpu/softfloat.h:60: error: previous declaration of ‘uint16’ was here
ui/cocoa.m: In function ‘-[QemuCocoaAppController applicationDidFinishLaunching:]’:
ui/cocoa.m:773: warning: ‘beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector:contextInfo:’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:49) ui/cocoa.m: In function ‘-[QemuCocoaAppController openPanelDidEnd:returnCode:contextInfo:]’:
ui/cocoa.m:810: warning: ‘filename’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:276)
make: *** [ui/cocoa.o] Error 1
** Affects: qemu
Importance: Undecided
Status: New
Signature · 56 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/960378
Title:
OSX 10.7 build failure
Status in QEMU:
New
Bug description:
qemu-1.0.1
./configure --cc=/usr/bin/gcc --disable-darwin-user --disable-bsd-user --disable-guest-agent
CC bitops.o
CC migration-exec.o
CC migration-unix.o
CC migration-fd.o
CC audio/audio.o
CC audio/noaudio.o
CC audio/wavaudio.o
CC audio/mixeng.o
CC audio/coreaudio.o
audio/coreaudio.c: In function ‘isPlaying’:
audio/coreaudio.c:152: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
audio/coreaudio.c: In function ‘coreaudio_init_out’:
audio/coreaudio.c:310: warning: ‘AudioHardwareGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
audio/coreaudio.c:326: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
audio/coreaudio.c:353: warning: ‘AudioDeviceSetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675)
audio/coreaudio.c:370: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
audio/coreaudio.c:386: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
audio/coreaudio.c:403: warning: ‘AudioDeviceSetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675)
audio/coreaudio.c:419: warning: ‘AudioDeviceAddIOProc’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
audio/coreaudio.c:431: warning: ‘AudioDeviceRemoveIOProc’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
audio/coreaudio.c: In function ‘coreaudio_fini_out’:
audio/coreaudio.c:456: warning: ‘AudioDeviceRemoveIOProc’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
CC audio/wavcapture.o
CC ui/keymaps.o
OBJC ui/cocoa.o
In file included from /System/Library/Frameworks/Security.framework/Headers/Security.h:24,
from /System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9,
from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:70,
from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from ui/cocoa.m:25:
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:73: error: conflicting types for ‘uint16’
/Users/marty/extern/qemu-1.0.1/fpu/softfloat.h:60: error: previous declaration of ‘uint16’ was here
ui/cocoa.m: In function ‘-[QemuCocoaAppController applicationDidFinishLaunching:]’:
ui/cocoa.m:773: warning: ‘beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector:contextInfo:’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:49)
ui/cocoa.m: In function ‘-[QemuCocoaAppController openPanelDidEnd:returnCode:contextInfo:]’:
ui/cocoa.m:810: warning: ‘filename’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:276)
make: *** [ui/cocoa.o] Error 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/960378/+subscriptionsQEMU 2.6 builds without any deprecation warnings being generated.
** Changed in: qemu
Status: New => Fix Released
Signature · 56 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/960378
Title:
OSX 10.7 build failure
Status in QEMU:
Fix Released
Bug description:
qemu-1.0.1
./configure --cc=/usr/bin/gcc --disable-darwin-user --disable-bsd-user --disable-guest-agent
CC bitops.o
CC migration-exec.o
CC migration-unix.o
CC migration-fd.o
CC audio/audio.o
CC audio/noaudio.o
CC audio/wavaudio.o
CC audio/mixeng.o
CC audio/coreaudio.o
audio/coreaudio.c: In function ‘isPlaying’:
audio/coreaudio.c:152: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
audio/coreaudio.c: In function ‘coreaudio_init_out’:
audio/coreaudio.c:310: warning: ‘AudioHardwareGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
audio/coreaudio.c:326: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
audio/coreaudio.c:353: warning: ‘AudioDeviceSetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675)
audio/coreaudio.c:370: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
audio/coreaudio.c:386: warning: ‘AudioDeviceGetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
audio/coreaudio.c:403: warning: ‘AudioDeviceSetProperty’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675)
audio/coreaudio.c:419: warning: ‘AudioDeviceAddIOProc’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
audio/coreaudio.c:431: warning: ‘AudioDeviceRemoveIOProc’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
audio/coreaudio.c: In function ‘coreaudio_fini_out’:
audio/coreaudio.c:456: warning: ‘AudioDeviceRemoveIOProc’ is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
CC audio/wavcapture.o
CC ui/keymaps.o
OBJC ui/cocoa.o
In file included from /System/Library/Frameworks/Security.framework/Headers/Security.h:24,
from /System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9,
from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:70,
from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from ui/cocoa.m:25:
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:73: error: conflicting types for ‘uint16’
/Users/marty/extern/qemu-1.0.1/fpu/softfloat.h:60: error: previous declaration of ‘uint16’ was here
ui/cocoa.m: In function ‘-[QemuCocoaAppController applicationDidFinishLaunching:]’:
ui/cocoa.m:773: warning: ‘beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector:contextInfo:’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:49)
ui/cocoa.m: In function ‘-[QemuCocoaAppController openPanelDidEnd:returnCode:contextInfo:]’:
ui/cocoa.m:810: warning: ‘filename’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:276)
make: *** [ui/cocoa.o] Error 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/960378/+subscriptionsAm 17.06.2016 um 17:49 schrieb Peter Maydell:
Quoted 5 lines
QEMU 2.6 builds without any deprecation warnings being generated.
** Changed in: qemu
Status: New => Fix Released
The deprecation warnings from
https://bugs.launchpad.net/bugs/960378 are fixed, but I get new ones with OS X 10.11.5 and latest XCode.
Here is a list of problems which I noticed:
configure:
readelf: Error: Not an ELF file - it has the wrong magic bytes at
the start
ld: unknown option: --verbose
make:
/Users/admin/src/qemu/qemu.org/qemu/qemu-doc.texi:7: warning:
unrecognized encoding name `UTF-8'.
/Users/admin/src/qemu/qemu.org/qemu/hw/audio/fmopl.c:1082:39:
warning: shifting a negative signed value is undefined
[-Wshift-negative-value]
/Users/admin/src/qemu/qemu.org/qemu/ui/vnc.c:3766:20: warning:'sasl_server_init' is deprecated: first deprecated in OS X 10.11 [-Wdeprecated-declarations]
(more sasl related deprecation warnings follow) /Users/admin/src/qemu/qemu.org/qemu/target-mips/op_helper.c:1326:68:
warning: shifting a negative signed value is undefined [-Wshift-negative-value]
(more similar warnings follow)
The complete build protocol is available from
https://qemu.weilnetz.de/test/Mac-OS-X-10.11.5.txt
The resulting binary qemu-system-x86_64 boots the BIOS with curses, but not with cocoa which does not show any window or other output.
Regards,
Stefan
Am 18.06.2016 um 21:09 schrieb Stefan Weil:
Quoted 2 lines
The resulting binary qemu-system-x86_64 boots the BIOS with curses, but not with cocoa which does not show any window or other output.
This problem is solved: I had used a remote shell for building on the Mac and tried qemu-system-x86_64 as I do it when running a remote shell on any of my Linux build machines. This works with X Window, but Cocoa shows the output on the Mac's screen.
Stefan
Quoted 6 lines · Stefan Weil
Here is a list of problems which I noticed:
configure:
readelf: Error: Not an ELF file - it has the wrong magic bytes at
the start
We should make our configure test correctly send stderr to /dev/null, since "not an ELF file" is OK and just means "test should not pass".
Quoted 1 line
ld: unknown option: --verbose
This whole test should be 'only if doing linux-user or bsd-user builds' I guess, since it's only for those.
Quoted 4 lines
make:
/Users/admin/src/qemu/qemu.org/qemu/qemu-doc.texi:7: warning:
unrecognized encoding name `UTF-8'.
This is because OSX's texinfo is ancient.
None of the three things above cause build failures, though, even with warnings-as-errors.
Quoted 11 lines
/Users/admin/src/qemu/qemu.org/qemu/hw/audio/fmopl.c:1082:39: warning: shifting a negative signed value is undefined [-Wshift-negative-value] /Users/admin/src/qemu/qemu.org/qemu/ui/vnc.c:3766:20: warning:'
sasl_server_init' is deprecated: first deprecated in OS X 10.11 [-Wdeprecated-declarations]
(more sasl related deprecation warnings follow) /Users/admin/src/qemu/qemu.org/qemu/target-mips/op_helper.c:1326:68:
warning: shifting a negative signed value is undefined [-Wshift-negative-value]
(more similar warnings follow)
Hmm. I don't get any warnings about shifting negative values, so they're presumably new with the clang from 10.11. We really should figure out what we're doing about those and get our compiler flags and/or code in line accordingly.
I'm still on 10.10.5 so I don't see the sasl_server_init() deprecation.
thanks
-- PMM
Quoted 8 lines · Peter Maydell
Quoted 6 lines · Stefan Weil
Here is a list of problems which I noticed:
configure:
readelf: Error: Not an ELF file - it has the wrong magic bytes at
the start
Quoted 8 lines
We should make our configure test correctly send stderr to
/dev/null, since "not an ELF file" is OK and just means "test should not pass".Quoted 1 line
ld: unknown option: --verboseThis whole test should be 'only if doing linux-user or bsd-user builds' I guess, since it's only for those.
I'll put some patches together for these at least.
thanks
-- PMM