English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.OtherUAE (https://eab.abime.net/forumdisplay.php?f=54)
-   -   Compiling P-UAE on Mac OS X (https://eab.abime.net/showthread.php?t=50826)

MagerValp 11 February 2010 13:35

Compiling P-UAE on Mac OS X
 
Has anyone managed to compile P-UAE for Mac OS X? I've cloned the git repository, but can't even get a working configure. I've struggled with autoreconf, automake, aclocal, and autoconf but can't seem to generate a configure script that doesn't die with syntax errors.

An intel build that's newer than 0.8.29-WIP4 would be lovely...

Madcrow 11 February 2010 15:31

I don't know how anyone gets P-UAE built on ANY platform. I tried compiling it once on OpenSUSE 11.2 and I had all the same problems that you seem to be having on Mac. Still, given that P-UAE is mainly for use with the forthcoming Pandora handheld, the fact that it doesn't seem to work elsewhere isn't all that surprising.

gilgamesh 11 February 2010 19:43

Nope, same story here. GnoStiC said somewhere that it works on his Debian 64bit box.

MagerValp 12 February 2010 11:43

OK, thanks for confirming my suspicions. Damn shame though.

GnoStiC 13 February 2010 23:50

<p>sorry that i haven't noticed these messages before..</p>
<p>&nbsp;</p>
<p>here is the latest backup i've found here on my ext hdd (latest version is on my work computer)</p>
<p>&nbsp;</p>
<p><a href="http://www.gamzeguckiran.com/puaex_2010_02_04.tar.gz" target="_blank">http://www.gamzeguckiran.com/puaex_2010_02_04.tar.gz</a></p>
<p>&nbsp;</p>
<p>please try this and meanwhile i can fix the errors you've been getting..</p>
<p>&nbsp;</p>
<p>p.s.: my dev system is ubuntu x64 9.10</p>
<p>p.s.s.: git repo is quite old</p>
--------
ZX14 vs Hayabusa

Hungry Horace 14 February 2010 00:34

previous topic on this subject for reference:

http://eab.abime.net/showthread.php?p=636124

MagerValp 14 February 2010 16:27

Quote:

Originally Posted by GnoStiC (Post 642497)
here is the latest backup i've found here on my ext hdd (latest version is on my work computer)

http://www.gamzeguckiran.com/puaex_2010_02_04.tar.gz

Alright, this manages to run ./configure, but compilation fails:

Quote:

Making all in gui-cocoa
gcc -DHAVE_CONFIG_H -I. -I../../src -I/Library/Frameworks/SDL.framework/Headers -D_REENTRANT -DCPUEMU_0 -DCPUEMU_5 -DCPUEMU_6 -DFPUEMU -DUNALIGNED_PROFITABLE -DJIT -DAGA -DAUTOCONFIG -DFILESYS -DBSDSOCKET -DSUPPORT_THREADS -DUSE_SDL -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DXARCADE -DDRIVESOUND -I../../src/include -I../../src -I../../src -MT cocoaui.o -MD -MP -MF .deps/cocoaui.Tpo -c -o cocoaui.o cocoaui.m
cocoaui.m:57: warning: protocol ‘NSMenuItem’ is deprecated
cocoaui.m:204: warning: protocol ‘NSMenuItem’ is deprecated
cocoaui.m: In function ‘-[EuaeGui validateMenuItem:]’:
cocoaui.m:206: warning: ‘-action’ not found in protocol(s)
cocoaui.m:207: warning: ‘-tag’ not found in protocol(s)
cocoaui.m:220: warning: ‘-setState:’ not found in protocol(s)
cocoaui.m:221: warning: ‘-setState:’ not found in protocol(s)
cocoaui.m:236: warning: ‘-setState:’ not found in protocol(s)
cocoaui.m:237: warning: ‘-setState:’ not found in protocol(s)
cocoaui.m: In function ‘-[EuaeGui openPanelDidEnd:returnCode:contextInfo:]’:
cocoaui.m:323: warning: ‘lossyCString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:368)
cocoaui.m:323: warning: ‘lossyCString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:368)
cocoaui.m: In function ‘gui_open’:
cocoaui.m:401: warning: ‘lossyCString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:368)
cocoaui.m:412: warning: ‘lossyCString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:368)
cocoaui.m:417: warning: ‘lossyCString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:368)
cocoaui.m:417: warning: ‘lossyCString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:368)
cocoaui.m:436: warning: ‘stringWithCString:’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:386)
cocoaui.m:437: warning: ‘stringWithCString:’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:386)
cocoaui.m: At top level:
cocoaui.m:469: error: conflicting types for ‘gui_hd_led’
../../src/include/gui.h:20: error: previous declaration of ‘gui_hd_led’ was here
cocoaui.m:487: error: conflicting types for ‘gui_cd_led’
../../src/include/gui.h:21: error: previous declaration of ‘gui_cd_led’ was here
cocoaui.m: In function ‘gui_message’:
cocoaui.m:539: warning: ‘stringWithCString:’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:386)
cocoaui.m:541: warning: format not a string literal and no format arguments
make[3]: *** [cocoaui.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

gilgamesh 14 February 2010 16:43

@MagerValp: Have you tried --without-cocoa-gui?

I get
Quote:

compemu_support.c:5415: error: ‘veccode’ undeclared (first use in this function)
No clue why, and I can't find a difference between PUAE and EUAE there.

GnoStiC 14 February 2010 17:50

<p>@gilgamesh: </p>
<p>1) what is your configure parameters?</p>
<p>2) uname -a, gcc -V</p>
<p>&nbsp;</p>
<p>@MagerValp:</p>
<p>i only update gtk gui so the error message you get is normal. i'll fix that and rls (hopefully) tomorrow.</p>
________
Aprilia RS50

gilgamesh 14 February 2010 19:46

Quote:

Originally Posted by GnoStiC (Post 642649)
@gilgamesh:
1) what is your configure parameters?
2) uname -a, gcc -V

configure parameters
Code:

./configure  --with-sdl  --with-sdl-sound  --with-sdl-gl  --with-sdl-gfx --host=i586 --target=i586 CFLAGS="-m32" LDFLAGS="-m32"
uname -a
Code:

Linux linux-zr5a 2.6.31.12-0.1-desktop #1 SMP PREEMPT 2010-01-27 08:20:11 +0100 x86_64 x86_64 x86_64 GNU/Linux
gcc -v
Code:

Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.4 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.4 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux)


MagerValp 14 February 2010 20:17

Quote:

Originally Posted by GnoStiC (Post 642649)
i only update gtk gui so the error message you get is normal. i'll fix that and rls (hopefully) tomorrow.

Thanks, will this be pushed to git or can I grab a snapshot somewhere else?

gilgamesh 14 February 2010 20:24

Just checked preprocessed output (gcc -E ...). Probably NATMEM_OFFSET is not set in compemu_raw_x86.c.

EDIT: Yes, EUAE protects all access by to veccode in build_comp() by #ifdef NATMEM_OFFSET. PUAE/WinUAE does not.

EDIT2: Tried this:
Code:

#ifdef NATMEM_OFFSET
    if (veccode == NULL)
        veccode = cache_alloc (256)
#endif

I hope it makes sense.

Now I get
Code:

memory.c:3050: error: conflicting types for ‘mapped_malloc’
../src/include/memory.h:345: note: previous declaration of ‘mapped_malloc’ was here

EDIT3: Silly. Must be
Code:

uae_u8 *mapped_malloc (size_t s, const TCHAR *file)
in memory.h. And yet another error, but this time the linker...
Doesn't find "au" in sound.c and "gui_..." in disk.c. (I'm building without GUI).

EDIT4: One edit to end them all. au() is some unicode related routine. I commented all the missing functions away since I don't think they're strictly needed. Well, PUAE compiles, runs and restarts with illegal instructions.

xaind 15 February 2010 02:57

I have attached a fixed version of cocoaui.m that will compile.

With this and gilgamesh's fixes to compemu_support.c and memory.c I can get PUAEX to successfully compile in Mac OS X 10.6.2. Unfortunately it doesn't work - it just freezes solid. Here's the output:

Quote:

E-UAE 2.0.1
Build date: Feb 15 2010 12:43:12
SDLGFX: Initialized.
SDLGFX: Using SDL version 1.2.14.
SDLGFX: Display is 32 bits deep.
SDLGFX: Found screenmode: 1920x1200.
SDLGFX: Found screenmode: 1600x1200.
SDLGFX: Found screenmode: 1600x1000.
SDLGFX: Found screenmode: 1344x1008.
SDLGFX: Found screenmode: 1280x960.
SDLGFX: Found screenmode: 1344x840.
SDLGFX: Found screenmode: 1280x800.
SDLGFX: Found screenmode: 1024x768.
SDLGFX: Found screenmode: 1024x640.
SDLGFX: Found screenmode: 960x600.
SDLGFX: Found screenmode: 800x600.
SDLGFX: Found screenmode: 800x500.
SDLGFX: Found screenmode: 640x480.
Found 0 joystick(s)
Found quartz raw keyboard mapping
Using raw keymap
Opening cfgfile '/Users/myname/default.uaerc'...failed
Opening cfgfile 'default.uaerc'...failed
Opening cfgfile '/Users/myname/Amiga/Configs/A500.uaerc'...okay.
unknown config entry: 'cpu_type=68000'
obsolete config entry 'sound_bits'
unknown config entry: 'sound_max_buff=2048'
Testing the RDTSC instruction ... done.
Calibrating TSC frequency...TSC frequency: 2660.949280 MHz
Found quartz raw keyboard mapping
Using raw keymap
Found quartz raw keyboard mapping
Using raw keymap
Entered action_replay_load()
ROM loader..
ROM KEY '/Users/myname/Amiga/Roms/rom.key' 2069 bytes loaded
SDLGFX: Added P96 mode: 640x480x32
SDLGFX: Added P96 mode: 640x480x8
SDLGFX: Added P96 mode: 800x600x32
SDLGFX: Added P96 mode: 800x600x8
SDLGFX: Added P96 mode: 1024x768x32
SDLGFX: Added P96 mode: 1024x768x8
SDLGFX: Added P96 mode: 1920x1200x32
SDLGFX: Added P96 mode: 1920x1200x8
SDLGFX: Added P96 mode: 1600x1200x32
SDLGFX: Added P96 mode: 1600x1200x8
SDLGFX: Added P96 mode: 1600x1000x32
SDLGFX: Added P96 mode: 1600x1000x8
SDLGFX: Added P96 mode: 1344x1008x32
SDLGFX: Added P96 mode: 1344x1008x8
SDLGFX: Added P96 mode: 1280x960x32
SDLGFX: Added P96 mode: 1280x960x8
SDLGFX: Added P96 mode: 1344x840x32
SDLGFX: Added P96 mode: 1344x840x8
SDLGFX: Added P96 mode: 1280x800x32
SDLGFX: Added P96 mode: 1280x800x8
SDLGFX: Added P96 mode: 1024x640x32
SDLGFX: Added P96 mode: 1024x640x8
SDLGFX: Added P96 mode: 960x600x32
SDLGFX: Added P96 mode: 960x600x8
SDLGFX: Added P96 mode: 800x500x32
SDLGFX: Added P96 mode: 800x500x8
No disk in drive 0.
CBuilding CPU table for configuration: 68000 prefetch and cycle-exact 24-bit
1876 CPU functions
Building CPU, 44316 opcodes (0 -1 1)
CPU=68000, FPU=0, JIT=0.
CPUID level=10, Family=6, Model=15, Mask=6, Vendor=GenuineIntel [0]
JJCSDLGFX: Using double-buffered, vsynced output.
SDL: sound driver found and configured at 22050 Hz, buffer is 100 ms (4410 bytes).
BEAMCON0 0000 -> 0020
PAL mode V=50Hz H=15600Hz (227x312)
chipmem cleared
C
EDIT: Removed attached version of cocoaui.m -- see lower down for a newer version.

GnoStiC 15 February 2010 13:02

<p>UPDATE:</p>
<p><a href="http://www.gamzeguckiran.com/puaex_2010_02_15.tar.gz" target="_blank">http://www.gamzeguckiran.com/puaex_2010_02_15.tar.gz</a></p>
<p>&nbsp;</p>
<p>please try this and report <img src="images/smilies/smile.gif" border="0" alt="" title="Smile" smilieid="1" class="inlineimg" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>@xaind:</p>
<p>if this doesn't work for you, can you please try without </p>
<p>Opening cfgfile '<b>/Users/myname/Amiga/Configs/A500.uaerc</b>'...okay.</p>
<p>and</p>
<p>ROM KEY '<b>/Users/myname/Amiga/Roms/rom.key</b>' 2069 bytes loaded</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>EDIT:</p>
<p>my work notebook:</p>
<p>
Quote:

</p>
<p>Linux GnoStiC-dv7 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010 i686 GNU/Linux</p>
<p>&nbsp;</p>
<p>Description:&nbsp;&nbsp;&nbsp;&nbsp;Ubuntu 9.10</p>
<p>&nbsp;</p>
<p>gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) </p>
<p>
</p>
________
Suzuki GSR600

gilgamesh 15 February 2010 13:45

Commented out gui_disk_image_change(), gui_lock() and gui_unlock() from disk.c. Problem didn't go away.

Code:

PUAE 2.0.2
Build date: Feb 15 2010 13:31:39
SDLGFX: Initialized.
SDLGFX: Using SDL version 1.2.13.
SDLGFX: Display is 32 bits deep.
SDLGFX: Found screenmode: 1440x900.
SDLGFX: Found screenmode: 1024x768.
SDLGFX: Found screenmode: 832x624.
SDLGFX: Found screenmode: 800x600.
SDLGFX: Found screenmode: 720x400.
SDLGFX: Found screenmode: 700x525.
SDLGFX: Found screenmode: 640x512.
SDLGFX: Found screenmode: 640x480.
SDLGFX: Found screenmode: 640x400.
SDLGFX: Found screenmode: 640x350.
SDLGFX: Found screenmode: 576x432.
SDLGFX: Found screenmode: 512x384.
SDLGFX: Found screenmode: 416x312.
SDLGFX: Found screenmode: 400x300.
SDLGFX: Found screenmode: 360x200.
SDLGFX: Found screenmode: 320x240.
SDLGFX: Found screenmode: 320x200.
SDLGFX: Found screenmode: 320x175.
Found 0 joystick(s)
Found x11pc raw keyboard mapping
Using cooked keymap
Opening cfgfile '/home/uae/.uaerc'...okay.
Testing the RDTSC instruction ... done.
TSC frequency: 2393.500000 MHz
Found x11pc raw keyboard mapping
Using cooked keymap
Found x11pc raw keyboard mapping
Using cooked keymap
Entered action_replay_load()
ROM loader..
SDLGFX: Added P96 mode: 320x200x32
SDLGFX: Added P96 mode: 320x200x8
SDLGFX: Added P96 mode: 320x240x32
SDLGFX: Added P96 mode: 320x240x8
SDLGFX: Added P96 mode: 320x256x32
SDLGFX: Added P96 mode: 320x256x8
SDLGFX: Added P96 mode: 320x400x32
SDLGFX: Added P96 mode: 320x400x8
SDLGFX: Added P96 mode: 640x350x32
SDLGFX: Added P96 mode: 640x350x8
SDLGFX: Added P96 mode: 640x480x32
SDLGFX: Added P96 mode: 640x480x8
SDLGFX: Added P96 mode: 640x512x32
SDLGFX: Added P96 mode: 640x512x8
SDLGFX: Added P96 mode: 800x600x32
SDLGFX: Added P96 mode: 800x600x8
SDLGFX: Added P96 mode: 1024x768x32
SDLGFX: Added P96 mode: 1024x768x8
SDLGFX: Added P96 mode: 1152x864x32
SDLGFX: Added P96 mode: 1152x864x8
SDLGFX: Added P96 mode: 1440x900x32
SDLGFX: Added P96 mode: 1440x900x8
SDLGFX: Added P96 mode: 832x624x32
SDLGFX: Added P96 mode: 832x624x8
SDLGFX: Added P96 mode: 720x400x32
SDLGFX: Added P96 mode: 720x400x8
SDLGFX: Added P96 mode: 700x525x32
SDLGFX: Added P96 mode: 700x525x8
SDLGFX: Added P96 mode: 640x400x32
SDLGFX: Added P96 mode: 640x400x8
SDLGFX: Added P96 mode: 576x432x32
SDLGFX: Added P96 mode: 576x432x8
SDLGFX: Added P96 mode: 512x384x32
SDLGFX: Added P96 mode: 512x384x8
SDLGFX: Added P96 mode: 416x312x32
SDLGFX: Added P96 mode: 416x312x8
SDLGFX: Added P96 mode: 400x300x32
SDLGFX: Added P96 mode: 400x300x8
SDLGFX: Added P96 mode: 360x200x32
SDLGFX: Added P96 mode: 360x200x8
SDLGFX: Added P96 mode: 320x175x32
SDLGFX: Added P96 mode: 320x175x8
CBuilding CPU table for configuration: 68000 prefetch 24-bit
1876 CPU functions
Building CPU, 44316 opcodes (0 1 1)
CPU=68000, FPU=0, JIT=0.
CPUID level=10, Family=6, Model=7, Mask=6, Vendor=GenuineIntel [0]
JJCSDL: sound driver found and configured at 44100 Hz, buffer is 100 ms (17640 bytes).
BEAMCON0 0000 -> 0020
PAL mode V=50Hz H=15600Hz (227x312)
chipmem cleared
CIllegal instruction: 4e7b at 00FC0564 -> 00FC0582
PAL mode V=50Hz H=15600Hz (227x312)
Exception 3 (fc0fe3) at fc0fe0 -> fc081a!
PAL mode V=50Hz H=15600Hz (227x312)
Illegal instruction: 4e7b at 00FC0564 -> 00FC0582
PAL mode V=50Hz H=15600Hz (227x312)
Exception 3 (fc0fe3) at fc0fe0 -> fc081a!
PAL mode V=50Hz H=15600Hz (227x312)
Illegal instruction: 4e7b at 00FC0564 -> 00FC0582
PAL mode V=50Hz H=15600Hz (227x312)
Exception 3 (fc0fe3) at fc0fe0 -> fc081a!
PAL mode V=50Hz H=15600Hz (227x312)
Illegal instruction: 4e7b at 00FC0564 -> 00FC0582
DCOP1LC: 00000420, COP2LC: 00c00276 COPPTR: 0000046c
DIWSTRT: 2c81 DIWSTOP: f4c1 DDFSTRT: 0038 DDFSTOP: 00d0
BPLCON 0: 0000 1: 0000 2: 0024 3: 0c00 4: 0011

and so on ...

GnoStiC 15 February 2010 13:49

<p>@gilgamesh:</p>
<p>what is your kick.rom version?</p>
<p>&nbsp;</p>
<p>
Quote:

</p>
<p>CPU=68000, FPU=0, JIT=0.</p>
<p>...</p>
<p>Illegal instruction: 4e7b at 00FC0564 -&gt; 00FC0582</p>
<p>
</p>
________
Harley-Davidson FLHTC

gilgamesh 15 February 2010 13:58

Kickstart 1.3 34.5.

When I use KS 3.0, then the error is
Code:

CIllegal instruction: 4e7b at 00F80B68 -> 00F80BF0

MagerValp 15 February 2010 16:05

Quote:

Originally Posted by GnoStiC (Post 642795)
UPDATE:
http://www.gamzeguckiran.com/puaex_2010_02_15.tar.gz
please try this and report

http://mazzy.paradroid.net/tmp/puae-2010-02-15.txt

GnoStiC 15 February 2010 16:31

<p>@gilgamesh:</p>
<p>i was able to reproduce your &quot;exception 3&quot; error..</p>
<p>&nbsp;</p>
<p>apparently compiling with &quot;--disable-ui&quot; is the reason.. with gtk gui, everything works fine.. i'll look into it..</p>
________
vaporizer reviews

gilgamesh 15 February 2010 20:23

@MagerValp: That REX error means you're compiling x86 code with an amd64 assembler. See my config parameters in #10 for a (hopefully functional) alternative.


All times are GMT +2. The time now is 12:34.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.10981 seconds with 11 queries