加载论坛时出错,请强制刷新页面重试。

mldonkey & streamlit

MaxHeadroom

Hello, sorry, I do not speak Chinese(Mandarin nor Cantonese), I will try to translate it later:

I live in Spain and I bought a Loongson 3A6000 from china.

I managed to install Loongarch Linux on it, it works fine

But I have issues compiling mldonkey app https://github.com/ygrek/mldonkey

and installing streamlit app with pip. https://streamlit.io/

I would like to ask to create a package, AUR?, for mldonkey, and if possible, other package for streamlit.

Thanks!


你好,对不起,我不会说中文(普通话或广东话),我稍后会试着翻译:

我住在西班牙,从中国买了一台 Loongson 3A6000。

我设法在上面安装了 Loongarch Linux,它工作得很好。

但我在编译 mldonkey 应用程序 https://github.com/ygrek/mldonkey

https://streamlit.io/

我想请求为 mldonkey 创建一个软件包(AUR?

谢谢!


driver1998

First of all, what Linux distro did you install on your LoongArch box? That will make a big difference in what you need to do next (related to new-old vs old-world differences).


杜比

Hi
Suggest providing information of neofetch & fastfetch


淡炒番茄

杜比 I think need to pin a thread for non-native-Chinese speaker how to post for asking help.


MaxHeadroom

Hi again and thanks!

I'm using Archlinux for loongarch64

neofetch  
                  -`                    loongson@loongson01  
                 .o+`                   -------------------  
                `ooo/                   OS: Arch Linux loongarch64  
               `+oooo:                  Host: Loongson-3A6000-HV-7A2000-1w-V0.1-EVB  
              `+oooooo:                 Kernel: 6.10.0-2  
              -+oooooo+:                Uptime: 1 min  
            `/:-:++oooo+:               Packages: 611 (pacman)  
           `/++++/+++++++:              Shell: bash 5.2.26  
          `/++++++++++++++:             Resolution: 1920x1080  
         `/+++ooooooooooooo/`           Terminal: /dev/pts/0  
        ./ooosssso++osssssso+`          CPU: Loongson-3A6000-HV (8)  
       .oossssso-````/ossssss+`         GPU: 00:06.1 Loongson Technology LLC Display Controller  
      -osssssso.      :ssssssso.        Memory: 249MiB / 15970MiB  
     :osssssss/        osssso+++.
    /ossssssss/        +ssssooo/-                                
  `/ossssso+/:-        -:/+osssso+-                              
 `+sso+:-`                 `.-/+oso:
`++:.                           `-/+/
.`                                 `/

                 -`                     loongson@loongson01
                .o+`                    -------------------
               `ooo/                    OS: Arch Linux loongarch64
              `+oooo:                   Host: Loongson-3A6000-HV-7A2000-1w-V0.1-EVB
             `+oooooo:                  Kernel: 6.10.0-2
             -+oooooo+:                 Uptime: 17 mins
           `/:-:++oooo+:                Packages: 613 (pacman)
          `/++++/+++++++:               Shell: bash 5.2.26
         `/++++++++++++++:              Display (E2211): 1920x1080 @ 60Hz [External]
        `/+++ooooooooooooo/`            Cursor: Adwaita
       ./ooosssso++osssssso+`           Terminal: su
      .oossssso-````/ossssss+`          CPU: Loongson-3A6000-HV + Loongson-3A6000-HV Not Specified (8)
     -osssssso.      :ssssssso.         GPU: Loongson Technology LLC Display Controller
    :osssssss/        osssso+++.        Memory: 496.02 MiB / 15.60 GiB (3%)
   /ossssssss/        +ssssooo/-        Swap: 0 B / 8.08 GiB (0%)
 `/ossssso+/:-        -:/+osssso+-      Disk (/): 6.70 GiB / 220.03 GiB (3%) - ext4
`+sso+:-`                 `.-/+oso:     Local IP (wlp0s4f1u4): 192.168.1.149/24 *
`++:.                           `-/+/    Locale: en_US.UTF-8
.`                                 `/
                                        ████████████████████████
                                        ████████████████████████


MaxHeadroom

Here there is more information about the errors:

For mldonkey:

Compilers:
- OCaml version     5.1.1  
- gcc version       14.1.1
- g++ version       14.1.1

Now execute 'make' to start compiling. Good luck!
make
/usr/bin/ocamlc.opt -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60-70   -I src/utils/extlib  -I src/utils/cdk  -I src/utils/bitstring  -I src/utils/lib  -I src/utils/ocamlrss  -I src/utils/xm
l-light  -I src/utils/net  -I tools  -I src/daemon/common  -I src/daemon/driver  -I src/utils/mp3tagui  -I src/config/unix  -I src/networks/direct_connect  -I src/networks/fasttrack  -I
src/networks/fileTP  -I src/networks/donkey -I +camlp4  -c tools/ocamlpp.ml
File "none", line 1:
Alert ocaml_deprecated_auto_include:  
OCaml's lib directory layout changed in 5.0. The str subdirectory has been
automatically added to the search path, but you should add -I +str to the
command-line to silence this alert (e.g. by adding str to the list of
libraries in your dune file, or adding use_str to your _tags file for
ocamlbuild, or using -package str for ocamlfind).

File "tools/ocamlpp.ml", line 125, characters 5-11:
125 | open Genlex
          ^^^^^^
Error: Unbound module Genlex
make: *** [Makefile:5396: tools/ocamlpp.cmo] Error 2

and I upload the error in a txt file:

mldonkey-error.txt
[loongson@loongson01 mldonkey]$ make -j16
/usr/bin/ocamlc.opt -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60-70   -I src/utils/extlib  -I src/utils/cdk  -I src/utils/bitstring  -I src/utils/lib  -I src/utils/ocamlrss  -I src/utils/xml-light  -I src/utils/net  -I tools  -I src/daemon/common  -I src/daemon/driver  -I src/utils/mp3tagui  -I src/config/unix  -I src/networks/direct_connect  -I src/networks/fasttrack  -I src/networks/fileTP  -I src/networks/donkey -I +camlp4  -c tools/ocamlpp.ml
/usr/bin/ocamlopt.opt -inline 10 -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60-70    -I src/utils/extlib  -I src/utils/cdk  -I src/utils/bitstring  -I src/utils/lib  -I src/utils/ocamlrss  -I src/utils/xml-light  -I src/utils/net  -I tools  -I src/daemon/common  -I src/daemon/driver  -I src/utils/mp3tagui  -I src/config/unix  -I src/networks/direct_connect  -I src/networks/fasttrack  -I src/networks/fileTP  -I src/networks/donkey -I +camlp4  -c src/daemon/common/commonMain.ml
/usr/bin/ocamlopt.opt -inline 10 -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60-70    -I src/utils/extlib  -I src/utils/cdk  -I src/utils/bitstring  -I src/utils/lib  -I src/utils/ocamlrss  -I src/utils/xml-light  -I src/utils/net  -I tools  -I src/daemon/common  -I src/daemon/driver  -I src/utils/mp3tagui  -I src/config/unix  -I src/networks/direct_connect  -I src/networks/fasttrack  -I src/networks/fileTP  -I src/networks/donkey -I +camlp4  -c src/utils/extlib/IO.ml
/usr/bin/ocamlc.opt -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60-70  -verbose -ccopt "-I /byterun -o src/utils/cdk/zlibstubs.o" -ccopt "-g -O2     -pthread" -ccopt " " -cclib "-lz  " -cclib -lbz2 -ccopt "-pthread" -cclib "-lpthread" -c src/utils/cdk/zlibstubs.c

Error previewing file. It may have been deleted, or the provided file ID is invalid.


MaxHeadroom

I could install streamlit using an old version of pyarrow.

pip install pyarrow==16.1.0

So, the only issue now is mldonkey compilation


MaxHeadroom

淡炒番茄 Yes, that would be nice. 🙂


seeseesee

I checked the website of mldonkey: https://github.com/ygrek/mldonkey

In "Build" section it states specifically that "Supported OCaml versions are >= 4.03 and < 5.0, see mldonkey.opam for canonical information." So I believe it could not be compiled on ArchLinux which has ocaml 5.1.1. On Debian sid which has ocaml 5.2.0 I got similar errors as yours.


MaxHeadroom

seeseesee Yes you are right, thanks:

https://github.com/ygrek/mldonkey/issues/120

We can close this thread.


MaxHeadroom

More information about the issue:

https://github.com/orgs/loongarchlinux/discussions/5

How do I close this thread?

Thanks!


知识共享许可协议
本站文章除其作者特殊声明外,一律采用CC BY-NC-SA 4.0许可协议进行授权。
进行转载或二次创作时务必以相同协议进行共享,严禁用于商业用途