felixonmars / archriscv-packages

Modified Arch Linux packages for archriscv
https://archriscv.felixc.at
GNU General Public License v3.0
203 stars 75 forks source link

CMake 3.30.1 Illegal instruction #3946

Open otreblan opened 1 month ago

otreblan commented 1 month ago

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 commented 1 month ago

npm also segfaults

RevySR commented 2 weeks ago

The opensbi in the SDK version is too old.

The following patch is needed. https://github.com/riscv-software-src/opensbi/commit/cb8271c8e43e3c317436b7377c4fa0ac669f8fb5 https://github.com/riscv-software-src/opensbi/commit/111afc12306e4368fa112f97d31ea802c4561294