Skip to content
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

[Mac M3] Compile error #7

Open
kamejoko80 opened this issue Jun 6, 2024 · 2 comments
Open

[Mac M3] Compile error #7

kamejoko80 opened this issue Jun 6, 2024 · 2 comments

Comments

@kamejoko80
Copy link

Hello,

I got the bellow error:

In file included from ../.././riscv-gcc/gcc/config/riscv/riscv.c:7069:
In file included from ../.././riscv-gcc/gcc/config/riscv/riscv-thead.c:4:
../.././riscv-gcc/gcc/config/riscv/riscv-thead-tune.h:1:31: error: non-aggregate type 'const struct riscv_tune_param' cannot be initialized with an initializer list
const struct riscv_tune_param thead_e9_tune_info = {
                              ^                    ~
../.././riscv-gcc/gcc/config/riscv/riscv-thead-tune.h:17:31: error: non-aggregate type 'const struct riscv_tune_param' cannot be initialized with an initializer list
const struct riscv_tune_param thead_c906v_tune_info = {
                              ^                       ~
../.././riscv-gcc/gcc/config/riscv/riscv-thead-tune.h:33:31: error: non-aggregate type 'const struct riscv_tune_param' cannot be initialized with an initializer list
const struct riscv_tune_param thead_c910_tune_info = {
                              ^                      ~
../.././riscv-gcc/gcc/config/riscv/riscv-thead-tune.h:49:31: error: non-aggregate type 'const struct riscv_tune_param' cannot be initialized with an initializer list
const struct riscv_tune_param thead_c908_tune_info = {

Any ideas to solve it?

@flyingcys
Copy link

flyingcys commented Jul 14, 2024

Compiling with gcc resolves this compile error

$ brew info gcc
$ export CC=/opt/homebrew/Cellar/gcc/14.1.0_1/bin/gcc-14
$ export CXX=/opt/homebrew/Cellar/gcc/14.1.0_1/bin/g++-14

You also can download in https://github.com/flyingcys/xuantie-gnu-toolchain/releases

@kamejoko80
Copy link
Author

Hi @flyingcys

Let me try, thanks for your help.

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

No branches or pull requests

2 participants