Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I just managed to test it today and was able to successfully install QMPlay2 on my Powerbook G4 with your changes. Thank you!

The only thing that I'm running into now is that the video doesn't show up when I try to play it from a Youtube search result but at least I can hear the audio though. Also, the same issue happens when I try to download a video from the Youtube search results to try to play it back. What I have done so far is change the video quality to 480p and left the codec as VP9 but even that did not work during playback.

Picture 11.png


I cannot remember if there was a way to fix it and I maybe wrong but I think someone else brought this up but I cannot recall.
 
I just managed to test it today and was able to successfully install QMPlay2 on my Powerbook G4 with your changes. Thank you!

The only thing that I'm running into now is that the video doesn't show up when I try to play it from a Youtube search result but at least I can hear the audio though. Also, the same issue happens when I try to download a video from the Youtube search results to try to play it back. What I have done so far is change the video quality to 480p and left the codec as VP9 but even that did not work during playback.

View attachment 2611618

I cannot remember if there was a way to fix it and I maybe wrong but I think someone else brought this up but I cannot recall.

What happens if you download and play the same video locally? If that works, there is no issue with ffmpeg and GL, and likely the problem is with too-weak hardware. (On my G5s everything works, AFAICT.)

You may try setting default format to something less CPU-intensive. Turning off video to audio sync in playback settings also helps to make it easier.
 
What happens if you download and play the same video locally? If that works, there is no issue with ffmpeg and GL, and likely the problem is with too-weak hardware. (On my G5s everything works, AFAICT.)

You may try setting default format to something less CPU-intensive. Turning off video to audio sync in playback settings also helps to make it easier.
When I download and play the video locally, it works but it depends on the video itself. Because I used VLC to test it out, sometimes it'll play fine while other times it will fail to load it since it does not know the codec (usually the logs will mention 'undef' during playback).

For now, I will use your suggestions to see if it will improve the playback.
 
When I download and play the video locally, it works but it depends on the video itself. Because I used VLC to test it out, sometimes it'll play fine while other times it will fail to load it since it does not know the codec (usually the logs will mention 'undef' during playback).

What I am interested to know if the same video which fails to stream plays normally in QMPlay2 on the same machine. Comparing to VLC is a different question. If QMPlay does not play local videos (reasonable ones given hardware; it won’t play 4k AV1 on a G4, and no player will), we got a bug to address. If hardware is just too slow to handle streaming and decoding of certain formats, there is nothing to fix about it, it is an expected behavior.
 
I'm building my fork of dingusppc in Mac OS X 10.5.8 ppc 32-bit. I'm using gcc14 since gcc15 doesn't build.

How do I debug my executable?

I created an Xcode project using "external build system" in the build folder that contains the makefile created by cmake since cmake can't create an Xcode project for Xcode 3.1.4.

I've added all the source files. Xcode will use make to make the executable and it will startup the debugger.

The Xcode debugger doesn't seem to like the debug symbols even though -gdwarf-2 is being used according to my changes made to CMakeLists.txt

I am looking for a bug that appears to be in CLI11 in this line of main in my fork of dingusppc:
Code:
    auto emu = app.add_subcommand("", "Emulation");
I think all the code for CLI11 is in a single .hpp file? No external library.

I'm using the version of gdb that came with Xcode 3.1.4.
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:15:14 UTC 2009)
 
I'm building my fork of dingusppc in Mac OS X 10.5.8 ppc 32-bit. I'm using gcc14 since gcc15 doesn't build.

How do I debug my executable?

I created an Xcode project using "external build system" in the build folder that contains the makefile created by cmake since cmake can't create an Xcode project for Xcode 3.1.4.

I've added all the source files. Xcode will use make to make the executable and it will startup the debugger.

The Xcode debugger doesn't seem to like the debug symbols even though -gdwarf-2 is being used according to my changes made to CMakeLists.txt

I am looking for a bug that appears to be in CLI11 in this line of main in my fork of dingusppc:
Code:
    auto emu = app.add_subcommand("", "Emulation");
I think all the code for CLI11 is in a single .hpp file? No external library.

I'm using the version of gdb that came with Xcode 3.1.4.
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:15:14 UTC 2009)

I don’t really understand what is happenning here, but if the current problem is GDB not being able to read something, try `gdb-apple` port, it is newer.
 
I don’t really understand what is happenning here, but if the current problem is GDB not being able to read something, try `gdb-apple` port, it is newer.
That gdb is newer but I can't start my executable with it.

Code:
JoeG5:MacOS joevt$ gdb-apple /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc
GNU gdb 6.3.50.20050815-cvs (Wed Mar 11 05:11:32 UTC 2026)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=powerpc-apple-darwin9.8.0 --target="...Reading symbols for shared libraries .............. done

(gdb) run
Starting program: /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc 
Unable to find Mach task port for process-id 1480: (os/kern) failure (0x5).
(gdb)

Here's the original gdb:
Code:
JoeG5:MacOS joevt$ gdb /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:15:14 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared libraries .............. done

(gdb) run
Starting program: /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc 
Reading symbols for shared libraries +++++++++++++............................................................................... done
dingusppc(1493) malloc: *** error for object 0x136faa8: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136f110: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136f078: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136f0c4: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136efb0: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136ee88: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136eda8: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136ee18: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136ece0: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136f9e8: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136fb68: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136fb74: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136fb90: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
Requires at most 1 options be given from [-r,--realtime,-d,--debugger]
Run with --help or --help-all for more information.

Program exited with code 0152.
(gdb)

I would rather use the Xcode app to do debugging so I don't need to remember gdb commands but it doesn't work with the old or new GDB.
The new GDB won't start the app - or it crashes immeditiately?
The old GDB doesn't seem to be able to debug main. I can set a break point on malloc_error_break but the backtrace command doesn't show main.
 
Code:
JoeG5:MacOS joevt$ gdb /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:15:14 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared libraries .............. done

(gdb) run
Starting program: /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc
Reading symbols for shared libraries +++++++++++++............................................................................... done
dingusppc(1493) malloc: *** error for object 0x136faa8: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136f110: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136f078: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136f0c4: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136efb0: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136ee88: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136eda8: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136ee18: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136ece0: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136f9e8: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136fb68: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136fb74: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
dingusppc(1493) malloc: *** error for object 0x136fb90: Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
Requires at most 1 options be given from [-r,--realtime,-d,--debugger]
Run with --help or --help-all for more information.

Program exited with code 0152.
(gdb)

Those malloc errors are result of C++ runtime conflicts. Often they are more or less harmless but sometimes cause nasty breakages.
You can likely fix that by using a wrapper script that sets DYLD_LIBRARY_PATH to the right libgcc. See what legacy-support port group does for redirect_bins option.
You can also check opencv4-devel and musikcube ports, where I do the same manually.
 
That gdb is newer but I can't start my executable with it.
This problem is solved by having Xcode use sudo gdb-apple.

The following commands will set that up:
Code:
[[ -f /opt/local/bin/gdb-apple-sudo ]] && sudo rm /opt/local/bin/gdb-apple-sudo
{
cat <<- 'DONE'
    #!/bin/bash
    sudo /opt/local/bin/gdb-apple "$@"
DONE
} > /tmp/gdb-apple-sudo
sudo mv /tmp/gdb-apple-sudo /opt/local/bin/gdb-apple-sudo
sudo chmod 777 /opt/local/bin/gdb-apple-sudo
defaults write com.apple.Xcode PBXGDBPath /opt/local/bin/gdb-apple-sudo

Those malloc errors are result of C++ runtime conflicts.
I still need to solve this problem. Does this problem mean the executable cannot run on a different machine that doesn't have the same libgcc?
 
This problem is solved by having Xcode use sudo gdb-apple.

Ah, yeah, gdb needs to run with sudo. I just did not recognize your error.

I still need to solve this problem. Does this problem mean the executable cannot run on a different machine that doesn't have the same libgcc?

macOS has its libstdc++ in /usr/lib, while modern gcc has its own, in /opt/local/lib/libgcc (in case of MacPorts). That can create problems at runtime, when symbols are picked from a wrong libstdc++. Usually this problem is fixed by setting DYLIB_LIBRARY_PATH to where the modern libstdc++ resides. It is not the best solution, but a poor man’s one – but it works.
 
@Matias_ @Forest Expertise I made some changes which hopefully improve bootstrapping of curl. `brotli-bootstrap` builds with Xcode gcc, and curl now accepts it to satisfy the dependency. I have also provisionally fixed universal builds (don’t expect +universal to work reliably though LOL).
 
  • Like
Reactions: Matias_
Thanks a lot, can a sync the ports easily or do I have it to fix manually? If manually then I need your advice again how to do it.

UPD.: fixed it with Sync. Thanks.
 
Last edited:
  • Like
Reactions: barracuda156
Thanks a lot, can a sync the ports easily or do I have it to fix manually? If manually then I need your advice again how to do it.

One the matter: if you just want to pick a new portfile with patches as-they-are, you can use `sip` for port directory, then copy it into a local overlay and run `portindex` over it. If it is something trivial like few lines replaced, copy-paste works )
 
The following commands will set that up:
The sudo in that script only works if sudo was performed recently in Terminal.app since Xcode's debugger doesn't show a prompt for sudo.

macOS has its libstdc++ in /usr/lib, while modern gcc has its own, in /opt/local/lib/libgcc (in case of MacPorts). That can create problems at runtime, when symbols are picked from a wrong libstdc++. Usually this problem is fixed by setting DYLIB_LIBRARY_PATH to where the modern libstdc++ resides. It is not the best solution, but a poor man’s one – but it works.
What is the best solution?

The name of the variable is DYLD_LIBRARY_PATH (which you had correct in a previous post). Setting it does remove the "Non-aligned pointer being freed" error messages but doesn't fix the CLI11 error message "Requires at most 1 options be given from".

I added DYLD_PRINT_LIBRARIES=1 to list the libraries that get loaded.
Code:
JoeG5:~ joevt$ DYLD_LIBRARY_PATH=/private/opt/local/lib/libgcc DYLD_PRINT_LIBRARIES=1 /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc list machines
dyld: loaded: /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc
dyld: loaded: /private/opt/local/lib/libgcc/libatomic.1.dylib
dyld: loaded: /private/opt/local/lib/libSDL2-2.0.0.dylib
dyld: loaded: /private/opt/local/lib/libspeexdsp.1.dylib
dyld: loaded: /private/opt/local/lib/libgcc/libstdc++.6.dylib
dyld: loaded: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
dyld: loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
dyld: loaded: /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
dyld: loaded: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
dyld: loaded: /private/opt/local/lib/libgcc/libgcc_s.1.1.dylib
dyld: loaded: /private/opt/local/lib/libgcc/libgcc_s.1.dylib
dyld: loaded: /usr/lib/libSystem.B.dylib
dyld: loaded: /usr/lib/libobjc.A.dylib
dyld: loaded: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
dyld: loaded: /usr/lib/system/libmathCommon.A.dylib
dyld: loaded: /System/Library/Frameworks/ForceFeedback.framework/Versions/A/ForceFeedback
dyld: loaded: /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
dyld: loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
dyld: loaded: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
dyld: loaded: /usr/lib/libauto.dylib
dyld: loaded: /private/opt/local/lib/libiconv.2.dylib
dyld: loaded: /private/opt/local/lib/libgcc/libgcc_ehs.1.1.dylib
dyld: loaded: /usr/lib/libicucore.A.dylib
dyld: loaded: /usr/lib/libz.1.dylib
dyld: loaded: /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
dyld: loaded: /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
dyld: loaded: /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
dyld: loaded: /usr/lib/libbsm.dylib
dyld: loaded: /System/Library/Frameworks/Security.framework/Versions/A/Security
dyld: loaded: /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
dyld: loaded: /usr/lib/libsqlite3.0.dylib
dyld: loaded: /usr/lib/libresolv.9.dylib
dyld: loaded: /usr/lib/libxml2.2.dylib
dyld: loaded: /usr/lib/libxslt.1.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
dyld: loaded: /usr/lib/libcrypto.0.9.7.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
dyld: loaded: /usr/lib/libcups.2.dylib
dyld: loaded: /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
dyld: loaded: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
dyld: loaded: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
dyld: loaded: /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
dyld: loaded: /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
dyld: loaded: /System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/InstallServer
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
dyld: loaded: /usr/lib/libffi.dylib
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
Requires at most 1 options be given from [-r,--realtime,-d,--debugger]
Run with --help or --help-all for more information.

Updating CLI11.hpp to the latest release v2.6.2 does solve the "Requires at most 1 options be given from" problem, but there's some strange output in the --help-all output that differs from modern macOS. Specifically, flag options should not indicate a default of [0]. This is either a compiler bug or incompatibility or a library issue.
Code:
JoeG5:~ joevt$ DYLD_LIBRARY_PATH=/private/opt/local/lib/libgcc /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc --help-all

...

/Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc [OPTIONS] [SUBCOMMANDS]


OPTIONS:
  -h,     --help              Print this help message and exit
          --help-all          Print this help message, help for subcommands, and exit
          --setenv TEXT ...   Set Open Firmware variables at startup
[Option Group: SUBCOMMANDS]
  Emulation
  
  
OPTIONS:
  -h,     --help              Print this help message and exit
          --help-all          Print this help message, help for subcommands, and exit
  -k,     --keyboard TEXT     Specify keyboard ID
  -w,     --workingdir TEXT:DIR [.]  
                              Specifies working directory
  -b,     --bootrom TEXT:FILE [bootrom.bin]  
                              Specifies BootROM path
          --deterministic [0]  
                              Make execution deterministic
          --log-to-stderr [0]  
                              Send internal logging to stderr (instead of dingusppc.log)
          --log-verbosity :NUMBER [0]  
                              Adjust logging verbosity (default is 0 a.k.a. INFO)
          --log-no-uptime [0]  
                              Disable the uptime preamble of logged messages
          --log-thread [0]    Show thread name in logged messages
  -m,     --machine TEXT      Specify machine ID
  -s,     --symbols TEXT:FILE Specifies symbols path
[Option Group: execution mode]
  
  [At most 1 of the following options are allowed]
  
  
OPTIONS:
          --help-all          Print this help message, help for subcommands, and exit
  -r,     --realtime [0]      Run the emulator in real-time
  -d,     --debugger [0]      Enter the built-in debugger

SUBCOMMANDS:
list
  Display available machine configurations and exit
  
  
SUBCOMMANDS:
  machines                    List supported machines
  properties                  List available properties
 
The sudo in that script only works if sudo was performed recently in Terminal.app since Xcode's debugger doesn't show a prompt for sudo.


What is the best solution?

The name of the variable is DYLD_LIBRARY_PATH (which you had correct in a previous post). Setting it does remove the "Non-aligned pointer being freed" error messages but doesn't fix the CLI11 error message "Requires at most 1 options be given from".

I added DYLD_PRINT_LIBRARIES=1 to list the libraries that get loaded.
Code:
JoeG5:~ joevt$ DYLD_LIBRARY_PATH=/private/opt/local/lib/libgcc DYLD_PRINT_LIBRARIES=1 /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc list machines
dyld: loaded: /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc
dyld: loaded: /private/opt/local/lib/libgcc/libatomic.1.dylib
dyld: loaded: /private/opt/local/lib/libSDL2-2.0.0.dylib
dyld: loaded: /private/opt/local/lib/libspeexdsp.1.dylib
dyld: loaded: /private/opt/local/lib/libgcc/libstdc++.6.dylib
dyld: loaded: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
dyld: loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
dyld: loaded: /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
dyld: loaded: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
dyld: loaded: /private/opt/local/lib/libgcc/libgcc_s.1.1.dylib
dyld: loaded: /private/opt/local/lib/libgcc/libgcc_s.1.dylib
dyld: loaded: /usr/lib/libSystem.B.dylib
dyld: loaded: /usr/lib/libobjc.A.dylib
dyld: loaded: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
dyld: loaded: /usr/lib/system/libmathCommon.A.dylib
dyld: loaded: /System/Library/Frameworks/ForceFeedback.framework/Versions/A/ForceFeedback
dyld: loaded: /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
dyld: loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
dyld: loaded: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
dyld: loaded: /usr/lib/libauto.dylib
dyld: loaded: /private/opt/local/lib/libiconv.2.dylib
dyld: loaded: /private/opt/local/lib/libgcc/libgcc_ehs.1.1.dylib
dyld: loaded: /usr/lib/libicucore.A.dylib
dyld: loaded: /usr/lib/libz.1.dylib
dyld: loaded: /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
dyld: loaded: /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
dyld: loaded: /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
dyld: loaded: /usr/lib/libbsm.dylib
dyld: loaded: /System/Library/Frameworks/Security.framework/Versions/A/Security
dyld: loaded: /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
dyld: loaded: /usr/lib/libsqlite3.0.dylib
dyld: loaded: /usr/lib/libresolv.9.dylib
dyld: loaded: /usr/lib/libxml2.2.dylib
dyld: loaded: /usr/lib/libxslt.1.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
dyld: loaded: /usr/lib/libcrypto.0.9.7.dylib
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
dyld: loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
dyld: loaded: /usr/lib/libcups.2.dylib
dyld: loaded: /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
dyld: loaded: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
dyld: loaded: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
dyld: loaded: /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
dyld: loaded: /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
dyld: loaded: /System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/InstallServer
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
dyld: loaded: /usr/lib/libffi.dylib
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
Requires at most 1 options be given from [-r,--realtime,-d,--debugger]
Run with --help or --help-all for more information.

Updating CLI11.hpp to the latest release v2.6.2 does solve the "Requires at most 1 options be given from" problem, but there's some strange output in the --help-all output that differs from modern macOS. Specifically, flag options should not indicate a default of [0]. This is either a compiler bug or incompatibility or a library issue.
Code:
JoeG5:~ joevt$ DYLD_LIBRARY_PATH=/private/opt/local/lib/libgcc /Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc --help-all

...

/Volumes/OWC500/dingusppc/joevt-dingusppc/build-ppc-debug/bin/dingusppc.app/Contents/MacOS/dingusppc [OPTIONS] [SUBCOMMANDS]


OPTIONS:
  -h,     --help              Print this help message and exit
          --help-all          Print this help message, help for subcommands, and exit
          --setenv TEXT ...   Set Open Firmware variables at startup
[Option Group: SUBCOMMANDS]
  Emulation
 
 
OPTIONS:
  -h,     --help              Print this help message and exit
          --help-all          Print this help message, help for subcommands, and exit
  -k,     --keyboard TEXT     Specify keyboard ID
  -w,     --workingdir TEXT:DIR [.] 
                              Specifies working directory
  -b,     --bootrom TEXT:FILE [bootrom.bin] 
                              Specifies BootROM path
          --deterministic [0] 
                              Make execution deterministic
          --log-to-stderr [0] 
                              Send internal logging to stderr (instead of dingusppc.log)
          --log-verbosity :NUMBER [0] 
                              Adjust logging verbosity (default is 0 a.k.a. INFO)
          --log-no-uptime [0] 
                              Disable the uptime preamble of logged messages
          --log-thread [0]    Show thread name in logged messages
  -m,     --machine TEXT      Specify machine ID
  -s,     --symbols TEXT:FILE Specifies symbols path
[Option Group: execution mode]
 
  [At most 1 of the following options are allowed]
 
 
OPTIONS:
          --help-all          Print this help message, help for subcommands, and exit
  -r,     --realtime [0]      Run the emulator in real-time
  -d,     --debugger [0]      Enter the built-in debugger

SUBCOMMANDS:
list
  Display available machine configurations and exit
 
 
SUBCOMMANDS:
  machines                    List supported machines
  properties                  List available properties

I suggest we move this discussion into a separate topic, since there is nothing here to debug for PPCPorts, we do not have dingusppc there (at least not yet).
You can try opening a ticket with upstream: while they may not have interest or ability to fix it for powerpc, they may advise on what is likely going wrong.
 
Another LCS failure to save:
1773712755862.png


Picked up this Dual 2.7 that boots but doesn't get past the Apple logo. LCS o-rings failed, didn't spread very far so this should be salvageable. I pulled the rebuilt LCS out of my Dual 2.5 and it booted right up - passes every test in ASD and works like a charm. Will use it with the current "Frankenstein" configuration until I can get the 2.7 CPUs cleaned and the LCS rebuilt.

1773712911582.png


Glad to have an extra machine for sending long builds to. This has also helped me confirm that my Dual 2.5 no-boot condition is the logic board, not CPUs (since they work in the 2.7), and that my first LCS rebuild works as intended. These are excellent thermals!
 
  • Like
Reactions: Matias_
Does cubeb have a valid audio backend for Mac OS X 10.5.8?

Yes, in principle. No idea if something works out-of-the-box or in desired way.

1. pulseaudio is cursed, but presumably can work. I tried to get it working once, on Sonoma, failed and gave up LOL
Perhaps the issue was that I did not use it at all before – someone with Linux background may have no difficulties.

2. Jack 2.x is broken with gcc, but Jack 1.x builds fine. Presumably it can work on macOS. May need API adjustments in cubeb.

3. AudioUnit should be fixable, it has only few cases of blocks and some dispatch stuff: https://github.com/mozilla/cubeb/blob/master/src/cubeb_audiounit.cpp
But it won't compile without some fix-ups.

P. S. I can add a fix to enable AudioUnit, perhaps, but you will need to test it. I do not know how and where to use cubeb.
Upd. Fixed for 10.6 ppc.
 
Last edited:
P. S. I can add a fix to enable AudioUnit, perhaps, but you will need to test it. I do not know how and where to use cubeb.
I can do a test with DingusPPC. It's needed for the boot chime. Without an audio unit, the emulated Mac never sees the audio end.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.