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

oldskooltech

macrumors newbie
Original poster
Can anyone help build Darwin 9.8 . Ive got all parts built except for relpath what fails to build stating TargetConfig not defined.
 
darwinbuild is there, but it is broken (there are two ports, and neither works, AFAIK).
I know it’s a shame. What I really need is someone to help me get relpath to build. It’s looking for targetconfig if I can set targetconfig then I think relpath will compile then I should be able to compile xnu
 
I know it’s a shame. What I really need is someone to help me get relpath to build. It’s looking for targetconfig if I can set targetconfig then I think relpath will compile then I should be able to compile xnu
I wouldn't skip or deviate from any of the steps.I haven't built darwin, but looking at the document: https://developer.apple.com/library...//apple_ref/doc/uid/TP30000905-CH221-CIHFEIFI

sudo mkdir -p /usr/local/bin
sudo mkdir -p /usr/local/lib
cd bootstrap_cmds-version/relpath.tproj
make
sudo make install

Does that makes any sense? Or I apologize if I am stating the obvious.

You may need to set an environment variable, or maybe set targetconfig with a command—I don't know. 🤷‍♂️

Its actually a problem in CF Lite, though your point that darwinbuild
should set RC_TARGET_CONFIG is also part of the fix. The Default.plist
symlink is in TargetConfig_headers, but using the env var is better
than adding 1 dependency to all of the projects using TargetConfig IMO.

Anyway, the CF Lite people are looking into it. Hopefully we'll have a
patch soon.

-Bill
I am not sure what this old posting is talking about. "CF Lite" may be totally off-topic. I am not sure.

https://lists.apple.com/archives/darwin-dev/2009/Jun/msg00058.html
 
Can anyone help build Darwin 9.8 . Ive got all parts built except for relpath what fails to build stating TargetConfig not defined.
You need to build TargetConfig from the Apple Open Source Projects, then you will have the tconf binary which will search the plist for the RC_Target_Config that you define as a build flag. You may also need to symlink the plist if it cannot be located on your system.
 
  • Like
Reactions: mmphosis
You need to build TargetConfig from the Apple Open Source Projects, then you will have the tconf binary which will search the plist for the RC_Target_Config that you define as a build flag. You may also need to symlink the plist if it cannot be located on your system.

It is really odd that it is not installed with either OS or Xcode, it seems.
 
Ah, was building with patched darwinbuild and ran into this.

fixed by doing

Code:
cp -p
BuildRoot//usr/local/share/TargetConfigs/MacOSX.plist BuildRoot//usr/local/share/TargetConfigs/Default.plist
 
Ah, was building with patched darwinbuild and ran into this.

fixed by doing

Code:
cp -p
BuildRoot//usr/local/share/TargetConfigs/MacOSX.plist BuildRoot//usr/local/share/TargetConfigs/Default.plist
Are you trying to build the kernel? G5s lack the power management code needed to boot a custom kernel.


1784668145585.png

I decompiled the platform kexts for PCI-X PowerMac G5s and implemented the missing symbols needed for platform initialization - this allows custom kernels to boot on G5.

Won't work on a Quad or a PCI-E G5 yet. My xnu fork with the platform bringup is here: https://github.com/doctashay/xnu (`g5-platform` branch)

Curious to see what plans (if any) you have for custom kernel, as my plan is to backport CVE fixes (already got about 30 or so patches) and maybe scheduler/threading improvements, and better syscall compliance (clock_gettimeofday) etc
 

Attachments

  • 1784668107456.png
    1784668107456.png
    22.7 KB · Views: 13
Are you trying to build the kernel? G5s lack the power management code needed to boot a custom kernel.


View attachment 2647120
I decompiled the platform kexts for PCI-X PowerMac G5s and implemented the missing symbols needed for platform initialization - this allows custom kernels to boot on G5.

Won't work on a Quad or a PCI-E G5 yet. My xnu fork with the platform bringup is here: https://github.com/doctashay/xnu (`g5-platform` branch)

Curious to see what plans (if any) you have for custom kernel, as my plan is to backport CVE fixes (already got about 30 or so patches) and maybe scheduler/threading improvements, and better syscall compliance (clock_gettimeofday) etc

At this point I just trying to familiarize myself with build process on MacOS X.

Unfortunately, I ran into "bus error" from

Code:
dsymutil -v                                         
@(#)PROGRAM:dsymutil  PROJECT:dwarfutils-70

and said dwarfutils not in my Leopard source downloads, so I can't try to recompile it.

I also had some ideas for testing qemu's emulation of G5 with possibly modified Mach kernel (stock does not work there), but on G5 itself it runs real slow 😉

My ceiling seems to be few one-liners, not bigger projects like you do. But I like when something started to work, even if it was just some build done previously but now failing.
 
  • Like
Reactions: barracuda156
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.