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

oldskooltech

macrumors newbie
Original poster
Aug 29, 2023
14
0
Can anyone help build Darwin 9.8 . Ive got all parts built except for relpath what fails to build stating TargetConfig not defined.
 
Learning to build the kernel has been on my todo list for a while now. What's a good guide for getting started?
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.