Unfortunately mixing clang and GCC on macOS creates some weird linking issues that I can't solve, but GCC must be used. The only workaround I'm seeing now is starting from a clean GNU userland. So now I'm now bootstrapping Gentoo prefix on Apple M1... :woozy_baa: Wish me luck. It's a rented server, this Gentoo install is burning the CPU and my wallet at the same time... :woozy_baa:
Conversation
Notices
-
niconiconi (niconiconi@mk.absturztau.be)'s status on Sunday, 19-Feb-2023 05:59:57 JST niconiconi -
niconiconi (niconiconi@mk.absturztau.be)'s status on Sunday, 19-Feb-2023 05:59:51 JST niconiconi Yes!!! My Gentoo Prefix stage3 bootstrap on Apple M1 running macOS 13.2 Ventura has completed successfully!! :blobcatglowsticks: :blobcat_hug_genchu: :blobcatglowsticks: (I'm probably the first one to succeed in 2023, time to file bug reports and upstream patches...)
-
niconiconi (niconiconi@mk.absturztau.be)'s status on Sunday, 19-Feb-2023 05:59:52 JST niconiconi So... in contrary to the popular beliefs, "Install Gentoo" is not the solution to my problem, but "Install Asahi Linux" probably is. :woozy_baa: Still need to try fixing Gentoo Prefix as it's the only option on hardware that I don't own.
Adrian Cochrane repeated this. -
niconiconi (niconiconi@mk.absturztau.be)'s status on Sunday, 19-Feb-2023 05:59:53 JST niconiconi Gentoo stage3 bootstrap failed half-way due to a "internal fatal error" of flex failing to launch m4. I can't understand why, it needs further debugging but it can't possibly be done in the remaining hours of the server rent. Lesson learned: don't rent an expensive server unless you're 100% sure that the development environment is working, try it on something more basic... :woozy_baa:
-
niconiconi (niconiconi@mk.absturztau.be)'s status on Sunday, 19-Feb-2023 05:59:55 JST niconiconi GCC just passed Gentoo stage3 bootstrap...
-
niconiconi (niconiconi@mk.absturztau.be)'s status on Sunday, 19-Feb-2023 05:59:56 JST niconiconi The Apple M1 managed to finish Gentoo stage2 bootstrap after exploding twice. :woozy_baa: GCC 12.1 was incompatible with macOS 13 mainly because of a hardcoded max version limit and a name collision. I had to apply these two patches...
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d1201dbf55a11d391030914985ba6b443e59baa5
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=6725f186cb70d48338f69456864bf469a12ee5be
-