Skip to content

Compiling error: conflicting declaration of C function  #3

@pluviophilee

Description

@pluviophilee

我在按顺序执行以下指令时:
git clone https://github.com/OpenXiangShan/xfuzz.git
cd xfuzz && make init && make build && cd ..

git clone https://github.com/OpenXiangShan/riscv-arch-test.git
cd riscv-arch-test/riscv-test-suite
make build_I -j2
rm build/.elf build/.txt
cd ../..

git clone https://github.com/OpenXiangShan/riscv-isa-sim.git
make -C riscv-isa-sim/difftest CPU=ROCKET_CHIP SANCOV=1 -j16

export SPIKE_HOME=$(pwd)/riscv-isa-sim
export XFUZZ_HOME=$(pwd)/xfuzz
export NOOP_HOME=$(pwd)/rocket-chip
export CORPUS=$(pwd)/riscv-arch-test/riscv-test-suite/build

git clone -b dev-difftest --single-branch https://github.com/OpenXiangShan/rocket-chip.git
cd rocket-chip && make init && make bootrom
make emu XFUZZ=1 REF=$SPIKE_HOME/difftest/build/riscv64-spike-so LLVM_COVER=1 -j16

./build/fuzzer -f --max-runs 100 --corpus-input $CORPUS -- --max-cycles 10000

当执行到make emu XFUZZ=1 REF=$SPIKE_HOME/difftest/build/riscv64-spike-so LLVM_COVER=1 -j16时,编译报错error: conflicting declaration of C function ‘void v_difftest_ArchIntDelayedUpdate(uint8_t, uint64_t, uint8_t, uint8_t, uint8_t)’,请问您之前遇到类似问题吗?编译过程对编译器的版本有要求吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions