p4ddy1 / pine_ox64

13 stars 3 forks source link

[Mac M3] Compile error #7

Open kamejoko80 opened 4 months ago

kamejoko80 commented 4 months ago

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 commented 2 months ago

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 commented 2 months ago

Hi @flyingcys

Let me try, thanks for your help.