Skip to content

fix compilation of gccApple#2896

Closed
cstrahan wants to merge 1 commit intoNixOS:masterfrom
cstrahan:gcc-apple-tweak
Closed

fix compilation of gccApple#2896
cstrahan wants to merge 1 commit intoNixOS:masterfrom
cstrahan:gcc-apple-tweak

Conversation

@cstrahan
Copy link
Copy Markdown
Contributor

While trying to add cross-building support for gccApple (via the -arch flags handling in driverdriver.c), I discovered that the gccApple fails to install under the latest clang/llvm-based native compiler (/usr/bin/gcc).

I've added some patches to fix various compilation failures, but I couldn't figure out how to resolve few when compiling libstdcxx (a bunch of problems regarding unwind.h).

As a (potentially stopgap) solution, I've added a gccAppleBootstrap package that fetches the same prebuilt binaries as used by the Homebrew project, which I then use to compile gccApple.

If someone can lend a hand with the remaining compilation errors under /usr/bin/gcc, we might be able to skip the bootstrap binaries - let me know if you'd like to work on this with me 😄.

@cstrahan
Copy link
Copy Markdown
Contributor Author

@jwiegley Fixed these compilation errors in @b24da6b15d03dc0b0a1c964902d4217ed39bc23c - closing.

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

Successfully merging this pull request may close these issues.

1 participant