Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Darwinbuild for 10.6 PowerPC and Xcode 3.2 #143

Open
barracuda156 opened this issue Mar 15, 2022 · 8 comments
Open

Fixing Darwinbuild for 10.6 PowerPC and Xcode 3.2 #143

barracuda156 opened this issue Mar 15, 2022 · 8 comments

Comments

@barracuda156
Copy link

I want to build Darwinbuild for 10.6 PPC (10A190). Do anyone of developers have an idea what that would require and whether it is feasible in principle?
As of now it fails around here for me:

:info:build     setenv TARGETNAME installXcode32
:info:build     setenv TARGET_BUILD_DIR /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build/Public/opt/local/share/darwinbuild
:info:build     setenv TARGET_NAME installXcode32
:info:build     setenv TARGET_TEMP_DIR /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build/darwinbuild.build/Public/installXcode32.build
:info:build     setenv TEMP_DIR /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build/darwinbuild.build/Public/installXcode32.build
:info:build     setenv TEMP_FILES_DIR /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build/darwinbuild.build/Public/installXcode32.build
:info:build     setenv TEMP_FILE_DIR /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build/darwinbuild.build/Public/installXcode32.build
:info:build     setenv TEMP_ROOT /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build
:info:build     setenv UID 0
:info:build     setenv UNSTRIPPED_PRODUCT NO
:info:build     setenv USER root
:info:build     setenv USER_APPS_DIR /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/.home/Applications
:info:build     setenv USER_LIBRARY_DIR /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/.home/Library
:info:build     setenv USE_DYNAMIC_NO_PIC YES
:info:build     setenv USE_HEADERMAP YES
:info:build     setenv USE_HEADER_SYMLINKS NO
:info:build     setenv VALID_ARCHS "i386 ppc ppc64 ppc7400 ppc970 x86_64"
:info:build     setenv VERBOSE_PBXCP NO
:info:build     setenv VERSION_INFO_BUILDER root
:info:build     setenv VERSION_INFO_FILE installXcode32_vers.c
:info:build     setenv VERSION_INFO_STRING "\"@(#)PROGRAM:installXcode32  PROJECT:darwinbuild-\""
:info:build     setenv WARNING_CFLAGS -Wall
:info:build     setenv XCODE_APP_SUPPORT_DIR /Developer/Library/Xcode
:info:build     setenv XCODE_VERSION_ACTUAL 0320
:info:build     setenv XCODE_VERSION_MAJOR 0300
:info:build     setenv YACC /Developer/usr/bin/yacc
:info:build     /bin/sh -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build/darwinbuild.build/Public/installXcode32.build/Script-7227AC291098DBDF00BE33D7.sh
:info:build === BUILDING AGGREGATE TARGET darwinbuild_scripts OF PROJECT darwinbuild WITH CONFIGURATION Public ===
:info:build Checking Dependencies...
:info:build === BUILDING AGGREGATE TARGET world OF PROJECT darwinbuild WITH CONFIGURATION Public ===
:info:build Checking Dependencies...
:info:build ** BUILD FAILED **
:info:build The following build commands failed:
:info:build darwinup:
:info:build 	Ld /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build/Public/opt/local/bin/darwinup normal ppc
:info:build (1 failure)
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37" && /usr/bin/xcodebuild  -target "world" -configuration Public build   OBJROOT="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build/" SYMROOT="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_darwinbuild/darwinbuild/work/darwinbuild-37/build/" MACOSX_DEPLOYMENT_TARGET=10.6 ARCHS=ppc SDKROOT="" GCC_VERSION=4.2 CLANG_CXX_LIBRARY="libstdc++" PREFIX=/opt/local GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS=NO
:info:build Exit code: 1
:error:build Failed to build darwinbuild: command execution failed
:debug:build Error code: NONE
@barracuda156
Copy link
Author

UPD. darwinbuild itself does build for ppc on 10.6.8 Rosetta, however it fails to compile for ppc. Modifying plists is not enough, something overrides those settings.

@bhuntsman
Copy link

Can you try not building the MacPorts version?

@barracuda156
Copy link
Author

@bhuntsman In principle yes, though it won’t help anyone beyond myself, and I would like to fix the build in Macports.

However, it does not hurt to try building it outside of Macports, as long as I can use Macports tools. Building everything from scratch is also doable, but then I need a clear step-wise recipe, since I only know well how to develop in Macports environment.

@bhuntsman
Copy link

This is not MacPorts, and that sounds like it could be a problem in their environment, not with our code.

To build DarwinBuild, you should just be able to git clone it, cd into the directory, and then run

sudo xcodebuild install DSTROOT=/

You can do that from a regular Terminal window. You don't need anything from MacPorts to make it work.

@barracuda156
Copy link
Author

barracuda156 commented Oct 5, 2023

@bhuntsman I will try it, sure.

UPD. Ok, I tried, and it is broken. To begin with, it tries to build for wrong archs, and that fails, to no surprise.
darwinbuild_log.txt

@barracuda156
Copy link
Author

Given that we have 10.6.8 on PowerPC natively now, I will give this another go. It’s the time to fix this finally :)

@glebm Just in case, have you looked into darwinbuild?

@glebm
Copy link

glebm commented Dec 19, 2024

No, first time that I hear about this project!

@barracuda156
Copy link
Author

barracuda156 commented Dec 19, 2024

@glebm We finally got internet working on 10.6.8 (UDP still broken, but DNS working over TCP now), so this became relevant to rebuild OS and toolchain components with ppc slices where those are missing.
(Using it for 10a190 was less needed to begin with, and more problematic, since we do not really have much sources for that build, while for releases of 10.6 there are a lot.)

What I wanna do now is replace useless SVN links leading to nowhere with macos-powerpc.org/darwinbuild and upload sources there, add ppc into plists where needed and see if something starts working. Cross-compiling from 10.6.8 on x86_64 will likely be easier than building natively on 10.6.8 ppc, since on the latter we do not have a complete toolchain yet (Xcode 3.2.6 lacks ppc slices in a lot of tools, so those will need to be rebuilt from sources).

@barracuda156 barracuda156 changed the title Fixing Darwinbuild for 10.6 PPC (10A190) and Xcode 3.2 Fixing Darwinbuild for 10.6 PowerPC and Xcode 3.2 Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants