--
You received this message because you are subscribed to the Google Groups "minix3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minix3+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minix3/79bc9d2e-8862-420c-a3bc-031284e04d86n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minix3/677601fc-2f6a-4c8e-8409-438b3fd0f77cn%40googlegroups.com.
This implies that the issue is that the binutils tool set is too old and Minux 3 may not build on newer compiler systems. I think that we will have to replace binutils because patching the system could violate the Minux 3 licensing. If we patch binutils we might push the binutils version to GPL-version 3 that might also make Minux 3 also fall under GPL-v3
To view this discussion on the web visit https://groups.google.com/d/msgid/minix3/12aed806-6151-4dbe-85f4-cec57d3c9ef3n%40googlegroups.com.
If there is a pull request ready please submit one so it can be pushed in the future:
Thanks everyone for your help!
-stux
This is part of the reason the compilation takes so long: clang is built twice (cross-compiler clang and Minix native clang). Both are an older version of clang so I'm hesitant to "fix" this to run on native GCC by editing the source code. If possible, I would like to separate the built even further: could we build clang using clang using tinycc? In other words:
I'm guessing that tinyCC wouldn't be complete enough to build all of clang (or any of it, since clang is partially or fully build in C++ now that I think about it). The goal is to have a much smaller compilation core that depends on an external compiler. If clang can't be built using c in step 2, what about building an older version of gcc instead?
In any case, I beleive such a scheme would increase compilation portability and decrease cross-compilation headaches. What do you think?
-stux
Thank you very much for the update Peter!
One thing I should mention is that cross compiling on Linux with GCC performs two steps:
- A minix clang cross-compiler is built using GCC
- Minix is built using this Minix cross compiler
This is part of the reason the compilation takes so long: clang is built twice (cross-compiler clang and Minix native clang). Both are an older version of clang so I'm hesitant to "fix" this to run on native GCC by editing the source code. If possible, I would like to separate the built even further: could we build clang using clang using tinycc? In other words:
- Build TinyCC using gcc. (Actually, I just noticed TinyCC is LGPL, so we'd need to find a BSD equivalent)
- Build the core cross-compiler clang using tinyCC
- Build the full-cross compiler clang using the core clang
- Build Minix using the full cross-compiler clang
I'm guessing that tinyCC wouldn't be complete enough to build all of clang (or any of it, since clang is partially or fully build in C++ now that I think about it). The goal is to have a much smaller compilation core that depends on an external compiler. If clang can't be built using c in step 2, what about building an older version of gcc instead?
In any case, I beleive such a scheme would increase compilation portability and decrease cross-compilation headaches. What do you think?
-stux
On Wednesday, March 24, 2021 at 7:34:32 AM UTC-4 Peter Shkenev wrote:Hello,
Thanks for creating issue. I've pointed out issues I've met so far.Best regards,Peterсреда, 24 марта 2021 г. в 13:59:21 UTC+3, stux...@gmail.com:Hi everyone,
I've linked this thread to a minix build issue I created:
The reason we have the binutils patch is that at the time there was no Clang equivalent to binutils. Has that changed? Is lld its replacement? I would also agree that switch to a clang-only solution is the way forward. Now that I see this thread this minix-dev thread makes more sense (please correct me if i'm mistaken):If there is a pull request ready please submit one so it can be pushed in the future:
Thanks everyone for your help!
-stux
--
You received this message because you are subscribed to the Google Groups "minix3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minix3+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minix3/ce4c4606-316e-4345-9177-86a9d0c6ef2bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minix3/CALwZvUgB4uCbysgMniDF70%2BsTrT6wuEt1u%2B1xqxUQxojCixMjA%40mail.gmail.com.
Hello Marcelo,
--
You received this message because you are subscribed to the Google Groups "minix3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minix3+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minix3/44321c9f-ceb3-4b15-b86b-29484a233298n%40googlegroups.com.