龙芯2f一体机(9s2a-LM9002)安装openbsd7.8,笔记
openbsd吧
全部回复
仅看楼主
level 3
1、之前7.6、7.7一直无法自动编译aspell,就没办法自动编译php,现在找到了办法,更改/usr/prots/textproc/aspell/core/Makefile文件,注释掉
.if ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
USE_LLD = Yes
.endif
就可以了,维护者回复在不更改文件的情况下可以make USE_LLD=No,我还没试,有空了试下
2、编译php时还会以来iodbc,因为iodbc有很多依赖,一直依赖道gcc8.4,而gcc8.4也有错误无法编译,所以我就取消了iodbc对gtk+2的依赖,使用env FLAVOR=no_admin make install,编译完成
3、在编译htop中依赖libsodium-1.0.20,编译错误遇到:
/usr/ports/pobj/libsodium-1.0.20/libsodium-1.0.20/src/libsodium/sodium/utils.c:104:34: error: use of undeclared identifier 'PAGE_SHIFT' 104 | static size_t page_size = DEFAULT_PAGE_SIZE; | ^/usr/ports/pobj/libsodium-1.0.20/libsodium-1.0.20/src/libsodium/sodium/utils.c:98:29: note: expanded from macro 'DEFAULT_PAGE_SIZE' 98 | # define DEFAULT_PAGE_SIZE PAGE_SIZE | ^/usr/include/mips64/param.h:44:25: note: expanded from macro 'PAGE_SIZE' 44 | #define PAGE_SIZE (1 << PAGE_SHIFT) | ^1 error generated.Error while executing cc -DPACKAGE_NAME="libsodium" -
更改/usr/ports/pobj/libsodium-1.0.20/libsodium-1.0.20/src/libsodium/sodium/utils.c,修改
#ifndef DEFAULT_PAGE_SIZE
# ifdef PAGE_SIZE
# define DEFAULT_PAGE_SIZE PAGE_SIZE
# else
# define DEFAULT_PAGE_SIZE 0x10000
# endif
#endif
改为:
#ifndef DEFAULT_PAGE_SIZE
# ifdef PAGE_SIZE
# if defined(__OpenBSD__) && defined(__mips64__)
# define DEFAULT_PAGE_SIZE 16384 /* 16KB for mips64/loongson */
# else
# define DEFAULT_PAGE_SIZE PAGE_SIZE
# endif
# else
# define DEFAULT_PAGE_SIZE 0x10000
# endif
#endif
在继续编译就可以了,这个我提交了bug,回复说以及修复了。
4、编译ffmpeg时,也会遇到错误,汇编优化的问题,在Makefile里增加一条--disable-asm,才可以
2025年12月18日 08点12分 1
level 1
龙芯指令集都换了
2025年12月23日 03点12分 2
自己折腾这玩[吐舌]
2025年12月26日 04点12分
1