-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to build Linux toolchain with custom set of multilibs? #1445
Comments
It used to be possible to alter the set of multilibs built by a Linux toolchain by editing I could only build the Linux toolchain with the default set of multilibs. |
Also - this error may not be related to the multilib issues:
I've seen it happen when |
So is there anyway I can compile Linux gcc with that much extensions? @TommyMurphyTM1234 |
What do you mean by "that much extensions"? |
Just to summarise - I have been unable to identify any way to customise the set of multilibs built by the Linux toolchain build. I tried the following but none of them work and the toolchain simply gets built with the default set of multilibs:
I don't know of any other options for building a custom set of multilibs for the Linux toolchain unfortunately. |
Thanks for the quick and helpful reponse. @TommyMurphyTM1234. I did tried with |
Did you actually mean:
Did use this Are you sure that you're doing a clean build as I mentioned here: For example if you do If that doesn't help then please detail all steps from start to finish that are needed to reproduce your error. I have run the following many times without any such error:
|
|
FWIW I just did this and it worked fine (I just used
So if that fails for you then it is most likely due to a previous build or something else in your environment. |
@TommyMurphyTM1234 Why is it not possible to build using this configuration?
Do you have any list showing the possible configurations for --with-arch and --with-abi?? and also Is there any way I can build linux with this configuration -march=rv32imafc -mabi=ilp32 and also all the other available combinations? Since Linux Toolchain only support the --enable-multilib and not the --with-multilib tags |
The error message is literally telling you why!
Glibc requires the RISC-V |
Not a Linux/Glibc toolchain anyway for the reason mentioned above.
What specifically do you mean by "all other available combinations"? As far as I can see if you can't build separate toolchains for each |
I configured the toolchain with
./configure --prefix=/home/user/Riscv_most_combinations --with-multilib-generator="rv32i-ilp32--;rv32ic-ilp32--;rv32iac-ilp32--;rv32im-ilp32--;rv32imc-ilp32--;rv32imac-ilp32--;rv32imafc-ilp32f--;rv32imafdc-ilp32f--;rv32ima-ilp32--;rv32imaf-ilp32--;rv32imafd-ilp32d--;rv32imafdc-ilp32--;rv32imafd-ilp32d--;rv32imafdc-ilp32d--;rv64ima-lp64--;rv64imac-lp64--;rv64imaf-lp64--;rv64imafc-lp64--;rv64imafd-lp64--;rv64imafdc-lp64--;rv64imafd-lp64d--;rv64imafdc-lp64d--;" --with-cmodel=medany
I was able compile newlib successfully with this configuration. I double checked it.
But when I am building linux gcc with
make linux
it is not able to compile properly showing this error:I think this error occured when compiling for
-march=rv32imac -mabi=ilp32
Then I checked the linux gcc
The text was updated successfully, but these errors were encountered: