ChezScheme
ChezScheme copied to clipboard
树莓派上编译scheme
uname -a Linux pi 4.14.50-v7+ #1122 SMP Tue Jun 19 12:26:26 BST 2018 armv7l GNU/Linux
请问什么时候能支持在树莓派3B+上编译安装chezscheme? When can I support compiling and installing chezscheme on Raspberry Pi 3B+? 我执行./configure时提示不支持树莓派,无法编译安装。 When I executed ./configure, I was prompted not to support the Raspberry Pi, and I could not compile the installation. 报以下错误代码 Report the following error code
./configure: 264: [: =: unexpected operator
./configure: 264: [: =: unexpected operator
no suitable machine type found
try rerunning as ./configure -m=
希望能尽早支持。 I hope to support as soon as possible.
@luzhiguang You can post the full output of echo $SHELL and sh -x configure to help us debug this issue.
这是我执行bash -x configure > output 2>&1命令得到的结果,如果还需要更多信息,请您告诉我具体需要执行的命令和步骤,谢谢。 This is the result of my bash -x configure > output 2>&1 command. If you need more information, please tell me the specific commands and steps that need to be executed. Thank you.
@luzhiguang
- There's no prebuilt boot file for arm32, you need cross compilation; #163 may make some help.
- A minor bug in the
configurescript, it produces a disturbing error message.
我按照您提交的信息修改了下,执行./configure后没有报错信息了,提示我输入选项
I modified it according to the information you submitted, and did not report the error after executing ./configure, prompting me to enter the option.
no suitable machine type found
try rerunning as ./configure -m=
For cross compilation, first steps should be done on a “host” machine, e.g., Linux runs on x86. Issue #163 may contain some useful information for you. I haven’t a Raspberry Pi (yet), so I can’t give more help now, sorry.
Try ./configure -m=arm32le
这是我在苹果系统下执行这个交叉编译命令输出的结果,通过大家的帮助,虽然没有编译成功,但也学会很多,明白在树莓派上还不能直接编译安装。我是才入门学习这门语言,并没有其它语言的基础,其它学习这门语言的人好像都有别的语言的编程经验。网上也并没有找到适合零基础学习这门语言很好的资料,看来我要费不少时间来摸索学习了。还是很感谢大家的帮助的!
This is the result of my cross-compilation command output under the Apple system. With the help of everyone, although it has not been compiled successfully, it has learned a lot, and I can't directly compile and install it on the Raspberry Pi. I only started to learn the language, and there is no basis for other languages. Other people who study the language seem to have programming experience in other languages. I have not found any information suitable for the language of zero-based learning on the Internet. It seems that I have to spend a lot of time to learn. Still very grateful to everyone for your help!
$ ./configure -m=armle
no suitable machine type found
try rerunning as ./configure -m=
Please read https://bbs.pku.edu.cn/v2/post-read.php?bid=13&threadid=16238467 请参考 https://bbs.pku.edu.cn/v2/post-read.php?bid=13&threadid=16238467 Please mention the difference of cp between linux and macos 请注意cp在linux与macos间的区别。 Cross compile can be solved by https://github.com/cisco/ChezScheme/issues/13, so please close this issue @dybvig
@luzhiguang 也許可以用QEMU User Mode或者其他Scheme實現來編譯。
@luzhiguang 沒有預編譯的文件,導致Racket的Chez版本也不可以在arm上正常編譯,導致我在arm設備上只能用傳統的Racket編譯https://gitlab.com/the-language/the-language
@luzhiguang 我突然看到了https://github.com/racket/racket/commit/e337c65204402ef4faf09f6a848d2d873d0e63a7 現在不需要交叉編譯了。
Closing per discussion and the switch to pb boot files (which removes the need to build arm32 boot files elsewhere).