Compiler construction 没有Gforth编译Gforth?

Compiler construction 没有Gforth编译Gforth?,compiler-construction,macos,forth,Compiler Construction,Macos,Forth,当我尝试编译Gforth 0.7.0时,我得到以下错误: $ ./configure $ make #compiling… Undefined symbols: "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [gforth-ll] Error 1 ./preforth -p ".:~+:

当我尝试编译Gforth 0.7.0时,我得到以下错误:

$ ./configure
$ make
#compiling… 
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [gforth-ll] Error 1
./preforth -p ".:~+:." -e 's" mach16b.fs"' ./kernel/main.fs -e "save-cross kernl16b.fi- /usr/local/bin/gforth-0.7.0 bye"
You need to configure with a gforth in $PATH to build this part
make[3]: *** [kernl16b.fi-] Error 1
make[2]: *** [gforth-ll] Error 2
make[1]: *** [optgforth] Error 2
make: *** [gforth] Error 2
[22:16:01] gforth-0.7.0$ 
通过端口安装时,我也会遇到同样的错误。我想问题是Gforth写的,至少部分写在Forth中,那么我如何在不首先安装它的情况下安装它(或者问题是其他原因)


我正在使用Mac OS 10.6。

在配置过程中,我收到消息:

...
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
...
我还发现,当我使用纯GCC(64位模式)构建时,编译过程中出现了可怕的错误(我认为,汇编程序插入中错误指定了寄存器)。但当我重新配置时:

CC="gcc -m32" ./configure --prefix=$HOME
我仍然得到了关于“gforth”的警告,但其余的编译成功了。安装时出现了一个关于“chcon”不工作的警告,但错误被忽略

安装后,我能够键入:

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:

我一开始就遇到了一个运行时错误,但是在没有--prefix to
/configure
的情况下再次检查所有内容后,它就消失了,谢谢