Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble making on Linux PowerPC #51

Open
ppcluddite opened this issue Nov 4, 2013 · 3 comments
Open

Trouble making on Linux PowerPC #51

ppcluddite opened this issue Nov 4, 2013 · 3 comments

Comments

@ppcluddite
Copy link

I'm having trouble getting Sheepshaver working on Debian Wheezy PowerPC. I installed the dependencies libx11-dev, libgtk2.0-dev, libesd0-dev, and libsdl1.2-dev, then did:

cd macemu/SheepShaver
make links
cd src/Unix
NO_CONFIGURE=1 ./autogen.sh
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf
make

but it failed with Error 1:

https://gist.github.com/ppcluddite/7308026

I then succeeded in getting it to build with an altered sheepthreads.c file found in this post:

http://www.emaculation.com/forum/viewtopic.php?f=20&t=6553&start=25#p43895

However, when I start up SheepShaver, the terminal only outputs this:

dan@powerbook:~/Development/macemu/SheepShaver/src/Unix$ ./SheepShaver
SheepShaver V2.4 by Christian Bauer and Mar"c" Hellwig

No preference window comes up or anything. I also added vm.mmap_min_addr = 0 to /etc/sysctl.conf. Here are the configure and make outputs to the second build:

https://gist.github.com/ppcluddite/7308090

There are warnings in it about prefs_editor_gtk, but I don't know exactly what they mean. This is where I'm stuck.

@cat7
Copy link

cat7 commented Nov 6, 2013

I tried to debug a SheepShaver built with the updated sheepthreads.c Quitting SheepShaver and stepping into it results in:

Single stepping until exit from function usleep,
which has no line number information.
fastlock_acquire (lock=0x1011e330) at Linux/sheepthreads.c:211
211 while (test_and_set(&lock->spinlock, 1))
(gdb) step
212 usleep(0);

It seems to be stuck in this loop.

Commenting out this in sheepthreads.c:
static void fastlock_acquire(struct fastlock *lock)
{
MEMORY_BARRIER();
//while (test_and_set(&lock->spinlock, 1))
// usleep(0);
}

makes the GUI appear.

Next error is: Cannot map usable RAM area. Try to decrease the MacOS RAM size.

@ppcluddite
Copy link
Author

Hi,

I commented out those two lines like you said and got the GUI to appear, too. When I clicked Browse to navigate to the rom file, though, it quit. The error message was this:

**
GLib-GIO:ERROR:/build/glib2.0-OdhN7C/glib2.0-2.36.4/./gio/gdbusconnection.c:1627:g_dbus_connection_send_message_unlocked: CONNECTION_ENSURE_LOCK: GDBusConnection object lock is not locked
Aborted

So then I went back and hand-typed in the path to the rom and clicked Start, and I got the disk with the question mark window. I believe here is where a .sheepshaver_prefs file is created. Anyway, I killed the process and restarted, and since I got the above crash when trying to create a disk image, I copied one created in SheepShaver on OS X and added its path manually to .sheepshaver_prefs (disk /home/dan/MyDisk.dsk). Started SheepShaver again. Now I get to the welcome screen, but it freezes most of the time when the extensions are loading. A couple of times I disabled extensions and got to a desktop, but it froze whenever I clicked on a menu.

Here are some error messages I got when it froze during extensions loading:

SheepShaver: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
SIGSEGV
pc 0ef6eaec lr 0ef6ea44 ctr 0ef6eb30 msr 0000d032
xer 20000000 cr 22008422
r0 1001ccf4 r1 1079c120 r2 48057db0 r3 00112ffc
r4 4cd7c000 r5 00000040 r6 4cd7c020 r7 00000000
r8 0063639c r9 fff3ea6c r10 0063639c r11 0ef6e940
r12 0ef6ea44 r13 10078240 r14 00000001 r15 10070000
r16 1073cc7c r17 000f0000 r18 00000040 r19 00000000
r20 00000001 r21 00000a00 r22 00000a00 r23 000001c0
r24 00000100 r25 10078694 r26 4cc4e008 r27 00000100
r28 00113000 r29 00113000 r30 0f061ff4 r31 4cd7c000

and:

ERROR: Your Mac program made an illegal halfword read access to address 0x61ba61c2.
(pc 0x485143f0, 68k pc 0x44, sp 0x4fd7f460)
Illegal instruction

and:

WARNING: RmvTime(485b4390): Descriptor not found

So close yet so far. I never did see your error, "Cannot map usable RAM area. Try to decrease the MacOS RAM size."

@tlosm
Copy link

tlosm commented Apr 8, 2016

Hi Christian wonderful is use your program because make me remember the wonderful Amiga time Shapeshifter rulez.
So: On PowerPc 5020 im facing issue with Shapeshever
Cannot map usable RAM area. Try to decrease the MacOS RAM size.
i been try many configure and nothing change.
I think this issue is becasue the ram mapping, i can test with direct but i dont find any info how to configure it.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants