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

build for riscv64 #2063

Open
stsp opened this issue Aug 3, 2023 · 8 comments
Open

build for riscv64 #2063

stsp opened this issue Aug 3, 2023 · 8 comments
Milestone

Comments

@stsp
Copy link
Member

stsp commented Aug 3, 2023

I tried to build dosemu2 for riscv64, but on
that arch ubuntu doesn't provide cross binutils
in the form of the binutils-i686-linux-gnu package.
I filled this bug report:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/2029525
But I wonder if it is an ubuntu or debian bug.

@skitt do you know if cross binutils are
provided on debian for riscv64? And if not -
what can be done about that?

@1ras
Copy link

1ras commented Sep 1, 2023

Just saw your question and here is the answer: https://packages.debian.org/sid/binutils-riscv64-linux-gnu

@stsp
Copy link
Member Author

stsp commented Sep 1, 2023

No, its not an answer.
And following the pattern of your
URL I tried here:
https://packages.debian.org/sid/binutils-i686-linux-gnu
And oops, riscv64 is not listed in an
arches of that package.

So this problem is not ubuntu-specific.
Does anyone know how to solve it on
a debian level?

@1ras
Copy link

1ras commented Sep 1, 2023

Oh, when you wrote "I tried to build dosemu2 for riscv64" I assumed your native system is x86 and you want to cross compile for riscv64. But looks like the opposite is the case and you have a native riscv64 system where you want to cross compile for x86?

@stsp
Copy link
Member Author

stsp commented Sep 1, 2023

dosemu2 always require i686 binutils
to build a few DOS binaries.

@stsp
Copy link
Member Author

stsp commented Sep 1, 2023

That said it of course also require
riscv64 binutils, but their existence
I didn't doubt. :)

@skitt
Copy link
Member

skitt commented Sep 1, 2023

As you saw, binutils-i686-linux-gnu isn’t available on riscv64 (in Debian and Ubuntu). You filed a bug asking for it, which is a good start; if things don’t move it might be worth filing a merge request to add a riscv64 section to the package. But building binutils on riscv64 is slow currently, so it would be unwise to add too many cross-building packages there (the package builds in approximately five hours on amd64 with all the cross-building packages, and takes nearly as much time on riscv64 with none).

@stsp
Copy link
Member Author

stsp commented Sep 1, 2023

You filed a bug asking for it

Yes but only in ubuntu.
They may be following debian on
such instances, eg djgpp-binutils
appeared in ubuntu only via debian.

filing a merge request to add a riscv64 section [to the package

Thanks for the link.

takes nearly as much time on riscv64 with none

I guess its under qemu. :)

@skitt
Copy link
Member

skitt commented Sep 1, 2023

You filed a bug asking for it

Yes but only in ubuntu. They may be following debian on such instances, eg djgpp-binutils appeared in ubuntu only via debian.

The binutils maintainer in Debian and Ubuntu is the same person ;-).

takes nearly as much time on riscv64 with none

I guess its under qemu. :)

Heh — but no, the riscv64 build daemons are SiFive boards.

@stsp stsp added this to the portability milestone Oct 1, 2023
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

3 participants