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

Support riscv64 platform #375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eschnett
Copy link
Contributor

@eschnett eschnett commented Apr 9, 2024

No description provided.

@@ -1288,7 +1290,7 @@ function platform_envs(platform::AbstractPlatform, src_name::AbstractString;
mapping["GNU_LIBC_VERSION"] = "glibc 2.12.2"
elseif arch(platform) in ("armv7l", "aarch64")
mapping["GNU_LIBC_VERSION"] = "glibc 2.19"
elseif arch(platform) === "powerpc64le"
elseif arch(platform) in ("powerpc64le", "riscv64")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really sure this makes sense: glibc 2.17 is from December 2012, RISC-V was introduced in 2014, we need to find a version of glibc which actually supports RISC-V.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record, on a RISC-V machine I have access to I have

$ hostnamectl
   Static hostname: rvc24
         Icon name: computer
        Machine ID: 6aaa2da176084fea922e451836df106f
           Boot ID: 0b21c30a3d8546d396bb347174170097
  Operating System: Fedora Linux 38 (Workstation Edition)
       CPE OS Name: cpe:/o:fedoraproject:fedora:38
    OS Support End: Tue 2024-05-14
OS Support Expired: 6month 2w                            
            Kernel: Linux 6.1.22
      Architecture: riscv64
$ /lib64/lp64d/libc.so.6
GNU C Library (GNU libc) stable release version 2.37.
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 13.2.1 20230728 (Red Hat 13.2.1-1).
libc ABIs: UNIQUE ABSOLUTE IFUNC
Minimum supported kernel: 4.15.0
For bug reporting instructions, please see:
<https://www.gnu.org/software/libc/bugs.html>.

but @maleadt targeted 2.36 in the builds he shared at JuliaLang/julia#56105, so something around 2.36-2.37 may be a good baseline

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

Successfully merging this pull request may close these issues.

2 participants