Skip to content

Conversation

dreamos82
Copy link
Member

Minor fixes

@dreamos82 dreamos82 requested a review from DeanoBurrito July 1, 2025 11:39
The process for building GCC is very similar to binutils. Note that we need to have a version of binutils for our target triplet before trying to build GCC. These binaries must also be in the path, which we did before. Let's create a new folder for the build files (`build_gcc`) and move into it.

Now we can use the configure script like before:
Now we can use the configure:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what was the issue with this one? "the configure" sounds odd like there is a word missing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i probably deleted too much! :)

- `--enable-languages=c,c++`: select which language frontends to enable, these two are the default. We can disable c++ but if we plan to cross compile more things than our kernel this can be nice to have.
- `--without-headers`: tells the compiler not to rely on any headers from the host and instead generate its own.

It will download the missing dependencies for us. Now is possible to relaunch the `configure` command.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think about "re-run" instead of "relaunch" here?

Changes requested.
@DeanoBurrito DeanoBurrito merged commit c97ae7c into master Jul 4, 2025
@dreamos82 dreamos82 deleted the cross_compiler_fixes branch July 4, 2025 22:49
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.

2 participants