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

CMake 3.30.1 Illegal instruction #3946

Open
otreblan opened this issue Aug 4, 2024 · 2 comments
Open

CMake 3.30.1 Illegal instruction #3946

otreblan opened this issue Aug 4, 2024 · 2 comments

Comments

@otreblan
Copy link

otreblan commented Aug 4, 2024

I installed Arch Linux into a Milk-V duo 256m using this guide: https://xyzdims.com/3d-printers/misc-hardware-notes/iot-milk-v-duo-risc-v-esbc-running-linux/

Every time I try to use CMake it segfaults.

$ fastfetch
                  -`                     aru@archlinux
                 .o+`                    -------------
                `ooo/                    OS: Arch Linux riscv64
               `+oooo:                   Host: Cvitek. CV181X ASIC. C906.
              `+oooooo:                  Kernel: Linux 5.10.4-tag-
              -+oooooo+:                 Uptime: 47 mins
            `/:-:++oooo+:                Packages: 223 (pacman)
           `/++++/+++++++:               Shell: bash 5.2.26
          `/++++++++++++++:              Terminal: dropbear
         `/+++ooooooooooooo/`            CPU: rv64gvcsu
        ./ooosssso++osssssso+`           Memory: 34.25 MiB / 240.61 MiB (14%)
       .oossssso-````/ossssss+`          Swap: Disabled
      -osssssso.      :ssssssso.         Disk (/): 2.16 GiB / 14.26 GiB (15%) - ext4
     :osssssss/        osssso+++.        Local IP (usb0): 192.168.42.1/24 *
    /ossssssss/        +ssssooo/-        Locale: C.UTF-8
  `/ossssso+/:-        -:/+osssso+-
 `+sso+:-`                 `.-/+oso:     ████████████████████████
`++:.                           `-/+/    ████████████████████████
.`                                 `/

$ cmake --version
cmake version 3.30.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
Illegal instruction (core dumped)
@otreblan
Copy link
Author

otreblan commented Aug 4, 2024

npm also segfaults

@RevySR
Copy link

RevySR commented Sep 4, 2024

The opensbi in the SDK version is too old.

The following patch is needed.
riscv-software-src/opensbi@cb8271c
riscv-software-src/opensbi@111afc1

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

2 participants