pkgsrc-Users archive

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

Re: qemu on mac?



On Tue, 15 Jan 2013, Greg Troxel wrote:

> Trying to build pkgsrc/emulators/qemu on Mac OS X 10.7, it seems all the
> .o files are x86-64 instead of i386, even though I had bootstrapped with
> the 32-bit ABI, and other programs build as 32-bit.
> Does anyone understand what's wrong?

I had same problem last month. -m64  was passed to it.

+.if empty(OPSYS:MDarwin)
+BUILDLINK_TRANSFORM+=  rm:-m64
+.endif

I also had:

+# Note that Python 3 or later is not yet supported.
+PYTHON_VERSIONS_ACCEPTED=      27 26 25 24

But I had other problems running it, for example:

macmini:qemu jreed$  ~/opt/pkg/bin/qemu-system-i386 
Tue Jan 15 13:32:18 macmini.lab.isc.org qemu-system-i386[56397] <Error>: 
kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors 
as they are logged.
_RegisterApplication(), FAILED TO establish the default connection to 
the WindowServer, _CGSDefaultConnection() is NULL.
2013-01-15 13:32:18.640 qemu-system-i386[56397:903] An uncaught 
exception was raised
2013-01-15 13:32:18.641 qemu-system-i386[56397:903] Error (1002) 
creating CGSWindow
2013-01-15 13:32:18.642 qemu-system-i386[56397:903] *** Terminating app 
due to uncaught exception 'NSInternalInconsistencyException', reason: 
'Error (1002) creating CGSWindow'
*** Call stack at first throw:
(
        0   CoreFoundation                      0x962046ba __raiseError 
+ 410
        1   libobjc.A.dylib                     0x9796d509 
objc_exception_throw + 56
        2   CoreFoundation                      0x962043e8 +[NSException 
raise:format:arguments:] + 136
        3   CoreFoundation                      0x9620435a +[NSException 
raise:format:] + 58
        4   AppKit                              0x91de89be 
_NSCreateWindowWithOpaqueShape2 + 519
        5   AppKit                              0x91d6d8a6 -[NSWindow 
_commonAwake] + 1624
        6   AppKit                              0x91d6a56e -[NSWindow 
_commonInitFrame:styleMask:backing:defer:] + 1524
        7   AppKit                              0x91d691c1 -[NSWindow 
_initContent:styleMask:backing:defer:contentView:] + 1568
        8   AppKit                              0x91d68b9b -[NSWindow 
initWithContentRect:styleMask:backing:defer:] + 71
        9   qemu-system-i386                    0x00175de4 0x0 + 1531364
        10  qemu-system-i386                    0x00176d3a 0x0 + 1535290
        11  qemu-system-i386                    0x00004495 0x0 + 17557
)
Trace/BPT trap


I didn't look further then as I started a winter holiday and forgot :)

(I was hoping to run qemu-system-arm on a MacMini to emulate a Raspberry 
Pi, so I could add raspbian to a development build/test farm.)



Home | Main Index | Thread Index | Old Index