Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.

pipetogrep

macrumors 6502
Original poster
Jan 27, 2021
348
499
If I understand correctly, yasm is only for x86 arch, so it shouldn't be applicable for cross-compiling to ppc, right?
I think that may be the case. You’re also running Macports PPC binaries on Intel through Rosetta. I think a whole new toolkit would have to be compiled at the very least.
 

pipetogrep

macrumors 6502
Original poster
Jan 27, 2021
348
499
@ActionRetro I wiped the macports-tiff prefix and reinstalled. I also made sure that the md5sum of what I uploaded to the garden matches my local build and it does. It is compiling on Leopard on a dual 1.8 GHz machine now. I’ll have results in about six hours.
 

ActionRetro

macrumors newbie
Dec 18, 2020
7
11
@ActionRetro I wiped the macports-tiff prefix and reinstalled. I also made sure that the md5sum of what I uploaded to the garden matches my local build and it does. It is compiling on Leopard on a dual 1.8 GHz machine now. I’ll have results in about six hours.
Thank you!

Interestingly, I tried to compile on my PowerBook 1.5ghz and it compiled just fine overnight. So, something must be funky with my MDD's setup - even though both have the same version of XCode installed and both are running 10.5.8

I wonder what could be the difference?
 

pipetogrep

macrumors 6502
Original poster
Jan 27, 2021
348
499
Thank you!

Interestingly, I tried to compile on my PowerBook 1.5ghz and it compiled just fine overnight. So, something must be funky with my MDD's setup - even though both have the same version of XCode installed and both are running 10.5.8

I wonder what could be the difference?
Could you please run "echo $PATH" and tell me the result? Do you have TigerBrew installed as well? Which version of Xcode are you using? Which options did you choose when you installed Xcode?
 

ActionRetro

macrumors newbie
Dec 18, 2020
7
11
Well, good news! I spent today hitting "y" every time the build failed to resume from the last point, and it did succeed in the end! I'm posting this from my own self-built TFF, which is awesome - thank you again for this script!

It is interesting that the build worked with no issues on my 1.5ghz 12" PowerBook, but had so many hiccups on my dual 2.0GHz MDD with 2gb RAM.

Below are the answers to your questions, in case it's helpful. Let me know if there's anything else I can provide or do to help. BTW, I'm going to talk about this in a video coming up, so hopefully if someone else sees these issues they will know there's a light at the end of the long compile time :)
  • $PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
  • Tigerbrew: Not installed on either MDD or PB 12"
  • XCode: 3.1.4 on both MDD and PB 12", both are default installs from Macintosh Garden download #10 (https://macintoshgarden.org/apps/apple-xcode) - LMK if there's any more info I can provide about my installs.

Thank you again @pipetogrep ! I hope I can provide some help from my experience here :)
 

pipetogrep

macrumors 6502
Original poster
Jan 27, 2021
348
499
Odd. That all looks normal. The MDD is maxed out in RAM and the PowerBook has less than the MDD. How many times did you have to retry?

The main reason I added the retry is I was told having less than 4GB or RAM could cause issues but it sounds like your success/failure rate is consistent depending on the machine you are using.

At this point I do not know but I’m glad that it built! Maybe @wicknix or @alex_free might more insight on it. I wouldn’t have gotten any of this together without them.

Not gonna lie, I might **** kittens if I see the toolkit in a video so I’m looking forward to that. It took two weeks to cobble everything together and even longer to get it polished. Learning how make the installer, modifying the source code to work with a different prefix, finding and fixing logic errors (infinite loops in the build retry 🤦), but you know what goes into this kind of work. Every failed attempt took at least 3 hours. The point is, that would really be appreciated.

Anyways thanks again for your content, 68knews, and Frog Find! Please let me know if you have any other issues with the toolkit or ideas on how to make it better.
 

wicknix

macrumors 68030
Jun 4, 2017
2,621
5,305
Wisconsin, USA
No idea why the dual failed. Faulty ram / ram slots maybe? The only reason a build could/would fail is if it runs out of ram, and osx by default has a very small swapfile. Otherwise i havent a clue.

Cheers
 
  • Like
Reactions: pipetogrep

reukiodo

macrumors 6502
Nov 22, 2013
420
220
Earth
or maybe a 'retry 0' for infinite auto-retry?

Is there anything special I need to do to rebuild the macports for intel and still compile for ppc?
 

reukiodo

macrumors 6502
Nov 22, 2013
420
220
Earth
just guessing here, but so far I:
cd /opt/macports-tff/bin ./port selfupdate upgrade outdated

...and that's what it's been doing now for a while, so I guess I'll go to sleep and check on it in the morning.
 

reukiodo

macrumors 6502
Nov 22, 2013
420
220
Earth
ah, it's still compiling all ppc... or at least using all the ppc tools, so still using Rosetta...
 

Attachments

  • Screen Shot 2021-10-27 at 23.42.50.png
    Screen Shot 2021-10-27 at 23.42.50.png
    868.5 KB · Views: 127
  • Like
Reactions: Amethyst1

reukiodo

macrumors 6502
Nov 22, 2013
420
220
Earth
Ok, so I ran it on a Mac Mini G4 (1.5GHz w/ 1GB RAM) after setting the
Code:
yn_prompt
to always
Code:
return 0
, and then ran
Code:
time /opt/macports-tff/bin/build_tenfourfox '/Users/reukiodo/TFF-build'
for the 7450 and got:
Code:
Exported to ~/Desktop/tenfourfox.app
/opt/macports-tff/bin

real    921m27.070s
user    521m54.379s
sys    65m0.441s
sh-3.2#
 
  • Like
Reactions: pipetogrep

reukiodo

macrumors 6502
Nov 22, 2013
420
220
Earth
Though it runs, I am quite curious why the final app is only 23.1MB vs the official's 180.5MB... seems something would be missing... no?
 

Attachments

  • Picture 1.png
    Picture 1.png
    289.1 KB · Views: 95
  • Like
Reactions: Amethyst1

pipetogrep

macrumors 6502
Original poster
Jan 27, 2021
348
499
Though it runs, I am quite curious why the final app is only 23.1MB vs the official's 180.5MB... seems something would be missing... no?
That is strange. I haven’t noticed that. It builds per the instructions on the TFF GitHub wiki so In not sure what would be different.
 

reukiodo

macrumors 6502
Nov 22, 2013
420
220
Earth
I've deleted all the build data and am starting over with the automator script (as opposed to the command line) to see if that makes any difference. I dunno, but I guess I'll find out in another 15hrs.
 
  • Like
Reactions: pipetogrep

reukiodo

macrumors 6502
Nov 22, 2013
420
220
Earth
Not sure how long it took (since run without the timer) and since I have kids I can't check constantly. From running the automator script, it seems to produce a much more appropriate .app size.
 

Attachments

  • Screen Sharing Picture November 2, 2021 at 10.12.03 PM PDT.png
    Screen Sharing Picture November 2, 2021 at 10.12.03 PM PDT.png
    834.3 KB · Views: 120

pipetogrep

macrumors 6502
Original poster
Jan 27, 2021
348
499
Not sure how long it took (since run without the timer) and since I have kids I can't check constantly. From running the automator script, it seems to produce a much more appropriate .app size.
Very strange. I wonder what happened.
 

ervus

macrumors 6502
Apr 3, 2020
412
310
I'm typing this on a TFF build I did on my powerbook overnight. Thanks to everyone who has contributed to this effort!

I guess my small contribution is to recommend that people turn off spotlight for the build folder. This seems to save a lot a CPU time.

Does anyone know if using newer versions of gcc to get LTO and PGO builds is a possibility?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.