Coder Social home page Coder Social logo

Comments (4)

MarcKarasek avatar MarcKarasek commented on July 24, 2024

I tried your ripmason branch and it does compile but fails on running qemu ..

qemu-system-riscv64: GLib: g_mapped_file_unref: assertion 'file != NULL' failed

Looks like the file diosix is just 616 bytes long?

from diosix.

MarcKarasek avatar MarcKarasek commented on July 24, 2024

FYI: Version of tools I have compiled
riscv64-unknown-linux-gnu-gcc (GCC) 9.2.0
GNU objcopy (GNU Binutils) 2.32

from diosix.

diodesign avatar diodesign commented on July 24, 2024

Hi -- thanks. There is something strange going on with binutils, which may be my fault.

On a Debian testing/bullseye system with riscv64-linux-gnu-ld version 2.35.2, using the latest development branch (ripmason, commit 6b66e18), I get an assertion failure:

  = note: riscv64-linux-gnu-ld: BFD (GNU Binutils for Debian) 2.35.2 assertion fail elfnn-riscv.c:1765
          riscv64-linux-gnu-ld: BFD (GNU Binutils for Debian) 2.35.2 assertion fail elfnn-riscv.c:1798

On a Fedora 32 system with riscv64-linux-gnu-ld version 2.34-2.fc32, I get a completed, running build of Diosix. I recommend binutils version 2.34 as that seems to work at least. If you get a small Diosix executable then it's likely that an empty ELF file has been generated due to an unreported failure in the build process.

Please try the latest ripmason branch -- git pull it, just clean and then just to build and run it in Qemu, and see if that works for you. I'm working on a way to either build a minimal known-good binutils in the Diosix build tree, figure out what I'm doing that's upsetting binutils version 2.35.x, or write my own minimal linker...

from diosix.

diodesign avatar diodesign commented on July 24, 2024

I'm going to suggest moving this into one issue #17 to get the bottom of the binutils problem -- thanks

from diosix.

Related Issues (9)

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.