Compiling Gforth without Gforth?

与世无争的帅哥 提交于 2019-12-05 17:48:21

During the configure, I got the message:

...
checking how to invoke m4... m4 -s
checking for gforth... echo "You need to configure with a gforth in \$PATH to build this part" && false
checking for ./arch/386/asm.fs... yes
...

I also found that when I built with plain GCC (in 64-bit mode), things went horribly wrong during the compilation (complaints about mis-specified registers in, I assume, assembler inserts). But when I reconfigured with:

CC="gcc -m32" ./configure --prefix=$HOME

I still got the warning about 'gforth' but the rest of the compilation succeeded. The install came up with a warning about 'chcon' not working, but the error was ignored.

After installation, I was able to type:

Osiris-2 JL: gforth
Gforth 0.7.0, Copyright (C) 1995-2008 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `bye' to exit
2 3 +  ok
. 5  ok

Osiris-2 JL: uname -a
Darwin Osiris-2.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
Osiris-2 JL:
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!