neozeed / qemu-090-ns

Qemu 0.90 patched for NeXTSTEP/Rhapsody
Other
7 stars 0 forks source link

Does it require old gcc for compilation? #1

Open Randrianasulu opened 4 days ago

Randrianasulu commented 4 days ago

On 11.2.0 (Slackware 15.0) it surely dies in

/dev/shm/qemu-090-ns/target-i386/op.c:1653:14: error: frame pointer required, but reserved          1653 | void OPPROTO op_fldl_FT0_A0(void)

after chmod +x ./configure configure says it want gcc 3.4 ;)

May be adding this to readme will help

Randrianasulu commented 3 days ago

in gcc (3.4.6 core) itself

./unwind-dw2.c: In function `uw_frame_state_for':                                                  ./unwind-dw2.c:1031: error: field `info' has incomplete type                                       ./unwind-dw2.c:1031: error: field `uc' has incomplete type

just commented out line 1031 from unwind-dw2.c

installed into prefix /opt/gcc346

ln -s /opt/gcc346/bin/gcc /opt/gcc346/bin/gcc34

for qemu

I changed cc="gcc" to cc=$CC in configure so it respect CC variable

in block-raw.c

added signal.h to linux ifdef block

./configure --target-list=i386-softmmu

make -j8

now I can run qemu itself from i386-softmmu folder, but it still can't find EIDE controller for OPENSTEP 4.2

Randrianasulu commented 3 days ago
 ./i386-softmmu/qemu -hda /dev/shm/OPENSTEP_4.2.iso -L pc-bios -boot a -fda /dev/shm/FLOPPY144.img -M pc -hdb /dev/shm/verytmp2

controller type 6 (on 3rd screen - just IDEA/ATAPI, not dual EIDE!). future Boot disk on hdb, cdrom on hda, root=hd0 in installer

Randrianasulu commented 3 days ago

real strange, now it installs and boots but mouse does not work?

./i386-softmmu/qemu -L pc-bios -M pc -hda /dev/shm/verytmp2 -rhapsodymouse -hdb /dev/shm/OPENSTEP_4.2.iso

os42-qemu-090ns

I mean it does not move at all :(

so I can't even shut down machine properly

btw

"change fda path_to_floppy.img" in monitor (ctrl-alt-f2) changes floppy in this version (in mainstream it floppy0)

Randrianasulu commented 3 days ago

it works!

just need to boot with config=Default

and start qemu in fullscreen

https://github.com/user-attachments/assets/b3c82be5-5126-4ba4-b6a3-38ff738f0e6f

Randrianasulu commented 3 days ago

also, for such old qemu you need qcow, not qcow2 if you want some compression:

qemu-img convert -c -O qcow  /dev/shm/verytmp2 /dev/shm/openstep42-ide-vga.qcow

seems to work fine, I put it in ~/bin and run like

#!/bin/bash
/home/guest/bin/qemu-090-nz/usr/local/bin/qemu -k en-us  -L /home/guest/bin/qemu-090-nz/usr/local/share/qemu/ \
-M pc -hda /home/guest/QEMU/openstep42-ide-vga.qcow -full-screen
xrandr -s 4

xrandr -s 4 because my VGA cable ate edid, so native mode is not mode 0 - local thing.