Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

What PowerPC architecture will you be rocking?

  • Pre-G3

    Votes: 4 10.8%
  • G3

    Votes: 10 27.0%
  • G4

    Votes: 27 73.0%
  • G5

    Votes: 13 35.1%
  • 68k

    Votes: 4 10.8%

  • Total voters
    37
  • Poll closed .

Traace

macrumors regular
Jul 21, 2018
153
137
Germany
I did fiddle around yesterday evening with trying to install openconnect 8.0 from source since it might also to use our company Palo Alto Global Protect VPN on PPC but no luck, tried the 7.x version install via Macports but same error.

When I get some time free I want to compare the TigerBrew install with the Macports install so know why it works with Tigerbrew on Leopard , as described by @dbdjre0143 here #8

Also should install Macports 2.5.4 on my clean install so I can fork smtube.

Tomorrow I port that working script from tigerbrew formulae to macports for osx_10.5 + including libxml2 fix :)
 

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
Tomorrow I port that working script from tigerbrew formulae to macports for osx_10.5 + including libxml2 fix :)

Please enlighten me how because if it wasn't for this horrid work week, I would put some more time into this challenge and try to figure it out myself .

I'm meanwhile downloading SnowLeopard to try to run it via QEMU instead of Mavericks , probably on Friday because I've taken a day off from work.

I have also half a WoW server setup on my Xserve G4 ( inspired by your post on playing Wow on PPC ) that I would like to complete.
 
  • Like
Reactions: philgxxd

Traace

macrumors regular
Jul 21, 2018
153
137
Germany
Please enlighten me how because if it wasn't for this horrid work week, I would put some more time into this challenge and try to figure it out myself .
You need to know how formulae and portfiles work in their different environments, also how compilers and makefiles work in general.
take a free day and read homebrew and macports documentations. Thinker around for another few days, try and error.
Then look into source files to make a guess what deps. they could need. Try to build it, then get a error haha, fix it and hope it builds now.


I'm meanwhile downloading SnowLeopard to try to run it via QEMU instead of Mavericks , probably on Friday because I've taken a day off from work.

Oh thats awesome! :D Please report back after your tests

I have also half a WoW server setup on my Xserve G4 ( inspired by your post on playing Wow on PPC ) that I would like to complete.

Maybe my post was a bit misunderstood. You can't host on ppc that easy. Nearly all server emulators these days are written for x86.
You can try to port a more mature and up 2 date emulator like this one: https://github.com/azerothcore/azerothcore-wotlk
Older emulators usually dont worth mess with, because it would be to buggy ingame anyway.

But as a Client, ppc works very well :) You can connect to x86 hosts.
 
Last edited:

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
You need to know how formulae and portfiles work in their different environments, also how compilers and makefiles work in general.
take a free day and read homebrew and macports documentations. Thinker around for another few days, try and error.
Then look into source files to make a guess what deps. they could need. Try to build it, then get a error haha, fix it and hope it builds now.




Oh thats awesome! :D Please report back after your tests



Maybe my post was a bit misunderstood. You can't host on ppc that easy. Nearly all server emulators these days are written for x86.
You can try to port a more mature and up 2 date emulator like this one: https://github.com/azerothcore/azerothcore-wotlk
Older emulators usually dont worth mess with, because it would be to buggy ingame anyway.

But as a Client, ppc works very well :) You can connect to x86 hosts.

:) I know the debugging process that what I've been doing for a lot of broken ports , what I meant please let me know what the actual difference is what makes the Tigerbrew formula work and the Macports one fail

I get an error somewhere with libssl during make for Macports.

I got your post about WoW correctly , but since I come from the age of VGA not online gaming I was intrigued that WoW was usable on PPC so I started to read up on it , found a build somewhere of a WoW server on PPC and decided to make my life harder by trying to build it :)

I got as far as getting the necessary dependencies to build ( ACE , etc ... ) but then it failed.
Will get back on this on Friday probably.

My PPC life is pretty much trying to do the impossible aka mimick all the X86 stuff I use .
 
  • Like
Reactions: AphoticD and Traace

Traace

macrumors regular
Jul 21, 2018
153
137
Germany
:) I know the debugging process that what I've been doing for a lot of broken ports , what I meant please let me know what the actual difference is what makes the Tigerbrew formula work and the Macports one fail

I get an error somewhere with libssl during make for Macports.

Then the first steps are already done :D , I'll report back whats changed as soon I tried that port.

Edit: Okay got it working. But that older version 7.0X had a bug inside ssl.c as you said. So I upgraded the build to current version 8.02. It should work fine, but I cant test much, dont have such a vpn provider.

Builded with GCC 6 & gnutls, I could also provide a build with openssl. However gnutls is recommended by openconnect dev team.

You can try my updated portfile: https://github.com/Traace/macports_fixes/blob/master/Ports/net/openconnect/Portfile
Fork it to your local repo :)

Or just grab the binary from wiki: https://wiki.fopnu.pw/index.php?title=Mac_PowerPC

I got your post about WoW correctly , but since I come from the age of VGA not online gaming I was intrigued that WoW was usable on PPC so I started to read up on it , found a build somewhere of a WoW server on PPC and decided to make my life harder by trying to build it :)

I got as far as getting the necessary dependencies to build ( ACE , etc ... ) but then it failed.
Will get back on this on Friday probably.

My PPC life is pretty much trying to do the impossible aka mimick all the X86 stuff I use .
It would be awesome to see a ppc based build, also may try that serverfiles from above. Network byte order is BIG.Endian too. It might just work?! Who knows ^^
They using cmake and as it seems only a few dependenies needed.
mysql ( or mariadb?)
readline
openssl
libcrypto
ace



Count me in as a tester for your server :)
 
Last edited:
  • Like
Reactions: AphoticD and Lastic

kasuja00

macrumors regular
Jun 3, 2018
101
64
Italy
Days 3 - 4
Although I did not have much time to work on my computer in this days, my Powerbook is becoming a companion of many little daily actions: reading of the emails, writing letters and listening of music with iTunes and FLAC files with Songbird.


Thanks to eyoungren now i can print my DVD Covers i realized with old Corel Draw 11.
 
  • Like
Reactions: AphoticD and Traace

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
Day 5

After another 10 hour madness filled working day I'm now creating a Snow Leopard custom iso on my G5 to try and boot
it .

Will update this post once I go along.

@Traace thanks for the explanation on openconnect , when I have my day off on Friday, I will finally use my clean install
to setup Macports and Github and give it a go.
Which version of Macports are you using ?

The Xserve G4 build for a WoW server was already done a while ago but then I got stuck and left it, will post it's progress also on Friday.

Unrelated but still need to setup Debian again on my Powerbook G4 after the mSATA SSD upgrade, might go for Ubuntu Mate as I did in the past now that I have more diskspace.
 
  • Like
Reactions: Traace

Traace

macrumors regular
Jul 21, 2018
153
137
Germany
@Traace thanks for the explanation on openconnect , when I have my day off on Friday, I will finally use my clean install
to setup Macports and Github and give it a go.
Which version of Macports are you using ?
U welcome.
I always try to use newest macports. Currently 2.5.4, build from source.

Have fun testing it :)
 

Slix

macrumors 68000
Mar 24, 2010
1,591
2,369
Day 3 and 4:

I spent a lot of these days doing other things off the computer, but I enjoyed some more music over the network on my PowerBook G4 15", and I worked on my website a bunch, using the web interface for my server as I normally do, and this Mac held up really well switching between ~10 tabs and refreshing pages to test things. :) I also checked my email using the regular Mail app for my iCloud account.

I'm planning to use some older Macs today, running Tiger, and trying out some different web browsers and play some games with them. :)
 
  • Like
Reactions: AphoticD

mmphosis

macrumors regular
Jan 3, 2017
219
298
What day is it?

I gave up on the PC. It’s a PC, I didn’t expect much. This meant having to use the PC directly (ew), whereas previously I could just connect from a PowerPC Mac. In between installing, rebooting, updating GRUB, rinse, repeat, I tried using the Power PC Mac to import pictures, a lot of pictures, using iPhoto. iPhoto crashed at some point, and seemed to have only imported about 10% of the pictures it had imported prior to crashing. I had heard iPhoto had problems. It’s actually not too bad just viewing the pictures using the Finder with Cover Flow.

Code:
uname -s
Darwin

Tonight, I have a Linux meeting and will bring my PowerBook G4. After all, at the Kernel and Device Driver layer, is Apple’s open source Darwin, a port from FreeBSD.
 
  • Like
Reactions: Traace and AphoticD

Kliee

macrumors newbie
Original poster
Jan 29, 2008
25
26
The week so far:

I haven't updated much since my week's tasks are far from being as interesting as many of you when it comes to PowerPC usage. But, not surprisingly, emails, writing and work tasks went fine on my G5. Even web browsing with some obvious exceptions.

I also used my free time to dive into server oriented distributions of Linux for my next "file sharing box for friends". I have 2 Mini G4s I use as my private cloud. One is running a Ubuntu server in CLI and the other will receive a new system soon instead of its current tiger install. It's mainly for private photo and video sharing, as well as some documents. The kind of things any sane person would do for nearly free using google or Dropbox services. I'm hesitating between a raw Debian or another Ubuntu server install.

Relaxation have been filled with "retro" gaming, though I wish there was a solution to play Age of Empires 2 in window mode as it does not go well with wide screen format.

I received some parts for upcoming PowerPC machine Restorations and improvements and that's about it.
I'll be traveling on the 8th and be out of home for the weekend. Which means I'll have to finish the challenge on my 12" PowerBook (1.5 Ghz).

Day 5
Unrelated but still need to setup Debian again on my Powerbook G4 after the mSATA SSD upgrade, might go for Ubuntu Mate as I did in the past now that I have more diskspace.

Is Ubuntu mate bearable on a G4?
I usually go with Debian/Fluxbox for weaker machines. It runs decently on almost any configuration.
 

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
@Kliee video playback on Ubuntu Mate or Youtube is unusable for my standards but all functions keys work in Mate.

Day 6

Since I technically was on way to work , I have to use my work (own Thinkpad) laptop with Fedora and decided to try
and install the QEMU Snow Leopard install there whilst on my train ride this morning.

Just a quick peek , I had to cancel it since I arrived at work.

Snow Leopard install QEMU.png


To be continued tomorrow on my day off.
 
  • Like
Reactions: AphoticD and Traace

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
Day 6 continued

So during my train commute home I was able to install Snow Leopard on my Fedora Thinkpad using qemu with kvm.
And here it is booted in 1 second ( this is not on PPC but on x86 )

SL on Fedora Thinkpad.png


qemu-system-x86_64 -m 2048 -cpu core2duo -machine q35,accel=kvm -smp 2 -usbdevice keyboard -vga cirrus -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -smbios type=2 -bios bios-mac.bin -kernel osx-kvm/chameleon_svn2360_boot -device ide-drive,bus=ide.2,drive=MacHDD -drive id=MacHDD,if=none,cache=none,file=./osx106.img -device ide-drive,bus=ide.0,drive=MacDVD -drive id=MacDVD,if=none,snapshot=on,file=./snow\ leopard\ install.iso -enable-kvm -device usb-tablet -netdev user,id=usr0 -device e1000-82545em,netdev=usr0,id=vnet0 -monitor stdio

So when I arrived home I transferred the HD image to my G5 and tried to boot it there but no luck, I get to the grey apple screen and then

it reboots continuesly so no Snow Leopard booting on PPC.

Since there are no messages nor any debugging option that I didn't use that indicates an error, I'm guessing it's either the definition of
q35 in QEMU or just my old QEMU 2.2.0 version.

Also for the install the Harddisk needs to be 16GB , after installation approx 6G has been used but when I shrink the disk, the EFI bios gets confused and fails to find the Harddisk. Will try to get it shrinked down to 6G or 8G afterwards.

I'm in the progress of uploading the QEMU 16G GZipped IMG file for those on Linux PPC who want to try it.
I will delete it on Sunday since my 15G free storage on Google Drive is full with this image.

{ Link deleted 11-feb-2019 }
 
Last edited:
  • Like
Reactions: AphoticD and Traace

RealSirReal

macrumors newbie
Feb 8, 2019
2
0
Hey Enrique, just wondering if you have any advice on how to get OS 9 to run on an Aluminium G4 Powerbook (similar to yours), AFAIK it could only run in Classic mode...is there some workaround that you know of to allow it to run 'natively'? I'm currently having to lay my much-loved G3 Pismo to rest (because I lent it to a friend and they broke the screen), so I need another option to run some of the OS 9 apps that I still use...and have a G4 Powerbook sitting around unused currently...

Many thanks in advance for your help :)

Just one question...


I can do everything work-related with my PowerBook (essentially email, word documents, some forums) but for media I usually cast netflix from my smartphone to my Chromecast. Is this not allowed during the challenge? Might need to get back to DVDs then...

Is it okay if I use my TiVo? The old ones existed in PowerPC era :D

Please, I would love if the Challenge's starter has an answer for these two questions.



My machine will be a 15" PowerBook G4/1.25GHz, Mac OS 9. Yes, OS 9 booting on an Aluminium PowerBook is now possible and it literally flies...
 

RealSirReal

macrumors newbie
Feb 8, 2019
2
0
Yeah cheers, I worked out that was the place to go shortly after I posted...hopefull I'll be able to get something going using their ISO...

Check out os9lives as they have a universal iso that works with more unsupported g4 models.
 

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
Day 7

Feeling a bit under the weather with a cold, I didn't have a good sleep but did install Ubuntu Mate 16.04 LTS
on my Powerbook G4.
Still need to tweak it, as in get a working battery meter and apply the fix done by @Tito910 for the brightness
keys as found here (and other usefull tips ) #28

Tried running some of my Windows QEMU images on Ubuntu Mate PPC with qemu 2.5 but gave up after 15 minutes when they were still booting .

Day 8 The Final day of the Challenge

I booted my Clean Leopard install and installed xcode 3.11 , MacPorts 2.5.4, TFF, Webkit, LittleSnitch, TextWrangler.

Currently installing Git in order to fork SMtube and OpenConnect .

Xserve G4 is also booted to check the WoW server install.
These were the instructions I wrote somewhere between Christmas and NewYear.

How to install a WoW server on PowerPC XServe G4 running OS X 10.5.8 using Macports

https://github.com/pablocrossa/trinitycore-portable

Requirements :
  • Processor with SSE2 support (Unless you compile with cmake option "SKIP_SSE2")
  • ACE ≥ 5.8.3 (included for Windows)
  • MySQL ≥ 5.1.0 (included for Windows)
  • CMake ≥ 2.8.0
  • OpenSSL ≥ 1.0.0
  • GCC ≥ 4.7.2 (Linux only)
  • Installed via Macports Macports 2.4.2
  • mysql51-server (later versions dont' compile)
cd ~
mkdir TCP
cd TCP
git clone https://github.com/pablocrossa/trinitycore-portable.git
mkdir build
mkdir server
cd build

Install the dependencies , mostly via MacPorts

cmake
openssl
mp-gcc6

Install ACE

ACE via Macports cannot get around the -Wno-long-double parameter
Solution install ACE from sources, need complete install for Makefile templates

I used version ACE-6.5.3.tar.gz from here , No Makefile , look for explanation here :

http://bluelove1968.pixnet.net/blog/post/222277717-full-build-ace/μmanager-on-macos-x-snow-leopard

cd ACE_wrappers
export ACE_ROOT=`pwd`
export CFLAGS="-g -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk"

cd $ACE_ROOT/ace
nano config.h
#include "ace/config-macosx-leopard.h"
#define _XOPEN_SOURCE

Save the file

nano ${ACE_ROOT}/include/makeinclude/platform_macros.GNU
debug=1
shared_libs=0
static_libs=1
include ${ACE_ROOT}/include/makeinclude/platform_macosx_leopard.GNU

Save the file

nano ${ACE_ROOT}/include/makeinclude/platform_macosx_tiger.GNU

Comment the CFLAGS line containing -Wno-long-double ( sounds familiar ? ) by placing a # at the begin of this line

Save this file

To avoid later when you start make , that you can't get around the -fdelayed-template-parsing error
nano ${ACE_ROOT}/include/makeinclude/platform_clang_common.GNU

Comment the following line by placing a # before it

CCFLAGS += -fdelayed-template-parsing

Save this file

cd $ACE_ROOT/include/makeinclude

Now generate the Makefile

$ACE_ROOT/bin/mwc.pl -type gnuace $ACE_ROOT/ACE.mwc

In order to not have an error immediately during your compilation like I did

ACE_wrappers/ace/config-macosx-leopard.h:232:2: error: #error "Compiler must be upgraded, see http://developer.apple.com"

make[1]: *** [.obj/ACE.o] Error 1

make: *** [ACE] Error 2

I found some info here https://github.com/jeremymeile/jeremymeile/blob/master/ACElibtool.sh on line 292
and patched the following file

cat ${ACE_ROOT}/ace/config-macosx-leopard.h | sed -n '/if defined(__APPLE_CC__) && (__APPLE_CC__ < 1173)/!p' | sed -n '/Compiler must be upgraded/!p' | sed -n '/ __APPLE_CC__ /!p' > /tmp/config-macosx-leopard.h

cp /tmp/config-macosx-leopard.h ${ACE_ROOT}/ace/.

And we are almost there in order to compile ACE
Use GCC 6 as your default compiler or you will get the following error using an older GCC

ACE_wrappers/ace/Barrier.cpp:170:1: internal compiler error: in output_die, at dwarf2out.c:

sudo port select --set gcc mp-gcc6

I decided only to compile ace since this is all I needed

cd ${ACE_ROOT}/ace
make

And then copy the files to

sudo ln -s $ACE_ROOT/ace /usr/include/ace
sudo ln -s $ACE_ROOT/ace/libACE.a /usr/lib/

And now at last compiling TrinityCore portable

but cmake 3.9.4 from Macports cannot find OpenSSL 1.0 from Macports , AARGH

-- Found OpenSSL library: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib

-- Found OpenSSL headers: /usr/include

CMake Error at cmake/macros/FindOpenSSL.cmake:223 (message):

TrinityCore needs OpenSSL version 1.0.0 but found version 0.9.7`

Oh well, then we compile OpenSSL from source

so it gets installed in the /usr directories

Download from here

https://www.openssl.org/source/openssl-1.0.2q.tar.gz

go into the directory

./config
make

Adapted the make file so the INSTALLTO goes to /usr

sudo make install

And now finally the last steps after all dependency hell :

In your /TCP/build directory
cmake ../trinitycore-portable -DSKIP_SSE2=1 -DSTANDARDIZE_ASM=1 -DPREFIX=~/TCP/server

make

protector:build uz3r$ make
Scanning dependencies of target g3dlib
[ 0%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/format.h:32: warning: 'cdecl' attribute directive ignored
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/debugPrintf.h:44: warning: 'cdecl' attribute directive ignored
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/debugPrintf.h:56: warning: 'cdecl' attribute directive ignored
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/AtomicInt32.h: In member function 'G3D::int32 G3D::AtomicInt32::add(G3D::int32)':
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/AtomicInt32.h:80: error: '__sync_fetch_and_add' was not declared in this scope
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/AtomicInt32.h: In member function 'G3D::int32 G3D::AtomicInt32::decrement()':
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/AtomicInt32.h:123: error: '__sync_sub_and_fetch' was not declared in this scope
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/AtomicInt32.h: In member function 'G3D::int32 G3D::AtomicInt32::compareAndSet(G3D::int32, G3D::int32)':
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/AtomicInt32.h:156: error: '__sync_val_compare_and_swap' was not declared in this scope
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/Array.h: At global scope:
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/Array.h:135: warning: 'cdecl' attribute directive ignored
/Volumes/data/TCP/trinitycore-portable/dep/g3dlite/include/G3D/Array.h:986: warning: 'cdecl' attribute directive ignored
make[2]: *** [dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o] Error 1
make[1]: *** [dep/g3dlite/CMakeFiles/g3dlib.dir/all] Error 2
make: *** [all] Error 2


And that's how far I got.

(make install)
 
  • Like
Reactions: AphoticD and Traace

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
Day 8 continued

So for the remainder of this day I have been completing my Clean Leopard install.

Installing Openconnect , thanks @Traace , Global Protect seems to work in accepting the request ,just need
to figure out how to process the SAML Auth via browser.
I actually had build v8.0 from source but it failed at that ssl.c thingie, maybe because I used gcc-4.7 ?

Forking, Cloning , Branching, Linting, Commiting, a remainder of the day just to add myself as co-maintainer
to smtube but I hope to be able to contribute some more usefull things to this wonderfull PPC community.

Starting from a clean install I did realise how much tweaking I've done to get a fluid working Leopard on this 12" marvel .

Stilll messing around with zsh and Oh-my-Zsh since I want more color in my Terminal (also for these older-getting eyes of mine)

If anybody knows why my arrow-keys won't select a directory when typing cd TAB in zsh , even without Oh-my-ZSH installed, please let me know

Since I will be using GitHub more than in the past, I'm going to try and make this Clean install my Developer environment .
 
Last edited:
  • Like
Reactions: Traace

Slix

macrumors 68000
Mar 24, 2010
1,591
2,369
Days 5/6/7:

I did a lot of work on my website using my MDD + Apple Studio Display (10.5) and my Graphite AGP Power Mac G4 (10.4) during these days, and played more music using my PowerBook G4s from Home Sharing. Using the G4s together was a nice change of pace, since it allowed me to use more than one "display" because I was using Teleport to use one keyboard and mouse between them. I was able to work on the MDD for the powerful tasks I needed (like more rapid tab switching, uploading files, and using Pixelmator for editing images) and the AGP G4 for website displaying and refreshing. A nice setup. :)

During this week too, I added more files to my Mac Mini OS X Server, so I have a more readily available setup for new Macs and a backup for if I need a specific game or installer.

I also played some older Mac OS X games, including Pop-Pop, Wingnuts, and Candy Crisis, all still really great games and really addictive!

All in all, this week I really was reminded of a few things:
- I like using my MacBook. A lot. I also really like using my older Macs, but the ease of use of a modern, fast computer is something I really missed during this week.
- I was tempted to, and ended up using my iPhone for a lot of tasks that were too tricky to pull off on the PowerPCs (like using Discord or uploading photos from my iPhone to Twitter).
- Playing music from anywhere on the network and having play counts updating live is really, really nice. I kind of couldn't believe how fast it was, over wifi and using AirPlay, which is also not wired, from these Leopard machines.
- I was sad I didn't get a chance to use any older Macs, for the following reasons: Most of my iMac G3s are in storage or hard to get to right now; and my Titanum PowerBook and iBook G3 Clamshell don't have AirPort cards that work with our home's newer AirPort Extreme. However, this could have been avoided had I just set up another AirPort that I have, but I didn't want to be disconnected from my Server accounts during this week's trial runs, so I avoided it entirely.

Thanks for the fun week you guys! I'm posting this from my MacBook Air, once again, but I'm sure I'll be seeing more usage of the PowerPCs in the near future, now that they have some better setups and some added use for me!
 
  • Like
Reactions: AphoticD and Traace

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
Day 8 into Day 9

Waking up with a never ending cough and a blocked nose due to a cold, I decided this early morning to further tackle the issue I had last night.

After giving up on zsh , I decided to install the next best thing fish .

On Leopard Macports 2.4.2 , fish 2.7.1 builds without any issues.
On my updated Leopard Macports 2.5.4 , fish 3.0.0 fails at building.
Both use gcc-mp6 , Portfiles are the same but there are more source-files with fish 3.0.0.

On my updates Macports 2.5.4 on OS X 10.11, fish 3.0.0 builds without issues using clang.

First issue /src/wutil.h

Code:
  CXX      obj/fish.o
/opt/local/bin/g++-mp-6 -D_UNICODE=1 -DLOCALEDIR=\"/opt/local/share/locale\" -DPREFIX=L\"/opt/local\" -DDATADIR=L\"/opt/local/share\" -DSYSCONFDIR=L\"/opt/local/etc\" -DBINDIR=L\"/opt/local/bin\" -DDOCDIR=L\"/opt/local/share/doc/fish\" -iquote. -iquote./src/ -DFISH_BUILD_VERSION=\""3.0.0"\" -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -m32 -fno-exceptions -Wextra -Wno-missing-field-initializers -I/opt/local/include  -c src/fish.cpp -o obj/fish.o
In file included from src/history.h:22:0,
                 from src/fish.cpp:48:
src/wutil.h:135:1: error: 'locale_t' does not name a type
 locale_t fish_c_locale();
 ^~~~~~~~
make: *** [obj/fish.o] Error 1

So I tried commenting it out, also the #include <locale.h> and got a bit further with the build.

Then I had an error with src/builtin_math.cpp

Code:
  CXX      obj/builtin_math.o
/opt/local/bin/g++-mp-6 -D_UNICODE=1 -DLOCALEDIR=\"/opt/local/share/locale\" -DPREFIX=L\"/opt/local\" -DDATADIR=L\"/opt/local/share\" -DSYSCONFDIR=L\"/opt/local/etc\" -DBINDIR=L\"/opt/local/bin\" -DDOCDIR=L\"/opt/local/share/doc/fish\" -iquote. -iquote./src/ -DFISH_BUILD_VERSION=\""3.0.0"\" -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -m32 -fno-exceptions -Wextra -Wno-missing-field-initializers -I/opt/local/include  -c src/builtin_math.cpp -o obj/builtin_math.o
src/builtin_math.cpp: In function 'wcstring format_double(double, const math_cmd_opts_t&)':
src/builtin_math.cpp:147:13: error: 'trunc' is not a member of 'std'
         v = std::trunc(v);
             ^~~
src/builtin_math.cpp:147:13: note: suggested alternative:
In file included from /usr/include/math.h:26:0,
                 from /opt/local/include/gcc6/c++/cmath:45,
                 from src/builtin_math.cpp:8:
/usr/include/architecture/ppc/math.h:515:15: note:   'trunc'
 extern double trunc( double );
               ^~~~~
make: *** [obj/builtin_math.o] Error 1

This one was easy to Google, replace it with v = trunc(v); but then I ran into further references to
<drumroll> locale_t and fish_c_locale .
So either I comment them out in all the sources or fix the issue.

@Traace or @AphoticD any clues , since my C++ knowledge is nil.
 

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
Day 9 into Day 10

Since I'm sick and thus bored , I'm continuing my virtualisation extravaganza.

Inspired by @AphoticD Tiger Server Universal on VirtualBox thread , I tried to boot it using Chameleon to perform an install using Qemu but no luck, just keeps rebooting.

Then only to resort to the last OS standing , Intel OS X 10.4 Tiger.

I learned about Deadmoo, found the image , tried on my G4 but that was painfully slow so I tried on my G5 with -m 1300Mb and after 9 minutes I got a slow Deadmoo Tiger purring ( more like a cat purring when it's sleeping )

G5 Deadmoo.png


9 minutes to a desktop and another 2 minutes later to open Activity Monitor

G5 Deadmoo booted after 9 minutes.png

But I also found a Hackintosh Tiger install iso which is now creating an harddisk image using Qemu on my MBp .
I know MBp but hey the Challenge ended :)

Ready in less than a minute from now, will transfer the 6GB image to both my G4 and G5 and see how long it takes.

As in the previous days, expect a Google Drive upload once done ( I just removed the SnowLeopard image )

https://drive.google.com/open?id=15huOF3L9_b7-t8ZXnmJbPDj8cCaNo6qs
 
Last edited:

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
Day 10 into Day 11

Since I'm still at home sick and thus must entertain myself, a few images of what I've done yesterday.

On a G5 with cpu core2duo ( no smp 2 or machine q35 since the image appears to be stuck then ) , 1300MB RAM,
desktop boots around 3 minutes after start , usable around 4-5 minutes and completing all my actions, Open 'About this Mac', Open Utilities, Select Activity Monitor, Sort by CPU usage, Click on System Memory, Show CPU , around 10 minutes.

Is it usable, it reacts and is snappy but for real processing tasks (browsing) I'm guessing it's a No Go.

Intel Tiger Core2Duo on G5.png
 

Amethyst1

macrumors G3
Oct 28, 2015
9,804
12,214
Day 10 into Day 11

Since I'm still at home sick and thus must entertain myself, a few images of what I've done yesterday.

On a G5 with cpu core2duo ( no smp 2 or machine q35 since the image appears to be stuck then ) , 1300MB RAM,
desktop boots around 3 minutes after start , usable around 4-5 minutes and completing all my actions, Open 'About this Mac', Open Utilities, Select Activity Monitor, Sort by CPU usage, Click on System Memory, Show CPU , around 10 minutes.

Is it usable, it reacts and is snappy but for real processing tasks (browsing) I'm guessing it's a No Go.

Likes cannot express how insanely great that screenshot is :D Three notes:

1. You're emulating a CPU that, strictly speaking, is too new for 10.4.1 – it was designed for a Pentium 4 (but that shouldn't cause problems as I've found that build to be totally CPU-agnostic; it even works on Broadwell CPUs) :)

2. If /System/Library/Extensions/AppleTPMACPI.kext is present in that 10.4.1 image, deleting it should provide a nice speed boost.

3. Since you're emulating an SSE3-capable CPU, the SSE3 emulator the 10.4.1 installation ISO includes should obviously not be used. I don't know if the preinstalled Deadmoo image has it or not.

Great stuff :D
 

Lastic

macrumors 6502a
Mar 19, 2016
879
757
North of the HellHole
Likes cannot express how insanely great that screenshot is :D Three notes:

1. You're emulating a CPU that, strictly speaking, is too new for 10.4.1 – it was designed for a Pentium 4 (but that shouldn't cause problems as I've found that build to be totally CPU-agnostic; it even works on Broadwell CPUs) :)

I know but I was too lazy to find the cpu model of a Pentium 4 in Qemu :)


2. If /System/Library/Extensions/AppleTPMACPI.kext is present in that 10.4.1 image, deleting it should provide a nice speed boost.

I tried just now

  • but using cpu core2duo it actually makes the boot time longer and sometimes the mouse is stuck now :S
  • no cpu defined it does indeed seem faster , hmm

3. Since you're emulating an SSE3-capable CPU, the SSE3 emulator the 10.4.1 installation ISO includes should obviously not be used. I don't know if the preinstalled Deadmoo image has it or not.

I'm uploading the ISO i used to build this image to my Google Drive, watch this space ...

Great stuff :D

And here is the link to the ISO i used to build the image

https://drive.google.com/open?id=1nCQPFyoNGSEWkQsj7dfJxGD3sZ4MwqOZ
 
Last edited:
  • Like
Reactions: Traace

Traace

macrumors regular
Jul 21, 2018
153
137
Germany
Someone creates own printed circuit boards? :)

Here is PCB, a *NIX printed circuit board editor, in its current Version 4.2.0. Now works on OSX ppc, too.
portfile: https://github.com/Traace/macports_fixes/blob/master/Ports/x11/pcb/Portfile
binary(mpkg): https://wiki.fopnu.pw/resources/assets/ppc_apps/own_builds/pcb-4.2.0.mpkg.zip



Another thing I ported is mksdiso. First time seen on OSX, therefore still some compiler warnings.
It creates ISO files to use with a Dreamcast SD Adapter and Dreamshell.
portfile: https://github.com/Traace/macports_fixes/blob/master/Ports/sysutils/mksdiso/Portfile
binary(mpkg): https://wiki.fopnu.pw/resources/assets/ppc_apps/own_builds/mksdiso-0.9.3.mpkg.zip


Enjoy.
 
  • Like
Reactions: Lastic
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.