Git Product home page Git Product logo

Comments (3)

chchenl avatar chchenl commented on July 20, 2024

Hi Ahmed,
I also run into the same issue recently. Have you already found a solution to this issue?
Thanks for any info.

from lm-riscv-dv.

AhmedAmrAbdellatif1 avatar AhmedAmrAbdellatif1 commented on July 20, 2024

Hi Ahmed, I also run into the same issue recently. Have you already found a solution to this issue? Thanks for any info.

Hello Mr. Unfortunately no.

from lm-riscv-dv.

chchenl avatar chchenl commented on July 20, 2024

Hi Ahmed, I also run into the same issue recently. Have you already found a solution to this issue? Thanks for any info.

Hello Mr. Unfortunately no.

Hi,
I think I solved this issue. You can search for 'gcc_compile' in the Makefile, and then you can see a '-o' option in the command 'riscv64-unknown-elf-gcc'. But this is wrong, 'cause you should issue '-c -o' to generate an object file, otherwise an executable is generated instead of an object file.

That's where the error message '/home/juba/riscv-demo/bin/riscv64-unknown-elf-ld: cannot use executable file 'out/seed-14431/instr_gen/asm_tests/riscv_arithmetic_basic_test_0.o' as input to a link' comes from--this previously generated '.o' file is already an executable, and cannot be 'linked' again.

I am wondering if the author/contributor has tested the as-is code/repo before submitting to the github.
Anyway, some debugging info for your reference.

BTW, when executing SPIKE ISS in the steps that follow, remember to modify the executable to '.exe' instead of '.o' files. Otherwise, SPIKE may dump a bunch of strange info instead of successful executions.

from lm-riscv-dv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.