首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AIX6.1中的Ocaml编译错误

AIX6.1中的Ocaml编译错误
EN

Unix & Linux用户
提问于 2011-07-28 08:01:33
回答 2查看 1.5K关注 0票数 1

在运行AIX6.1的服务器上编译Ocaml时,遇到以下错误:

代码语言:javascript
复制
"../Makefile.shared", line 39: make: 1254-055 Dependency line needs colon or double colon operator.
"../Makefile.shared", line 40: make: 1254-055 Dependency line needs colon or double colon operator.
"../Makefile.shared", line 41: make: 1254-055 Dependency line needs colon or double colon operator.
make: 1254-058 Fatal errors encountered -- cannot continue.
make: 1254-004 The error code from the last command is 2.

这将在我执行make world时出现。这是./configure的最终输出:

代码语言:javascript
复制
Directories where Objective Caml will be installed:
        binaries.................. /usr/local/bin
        standard library.......... /usr/local/lib/ocaml
        manual pages.............. /usr/local/man (with extension .1)
Configuration for the bytecode compiler:
        C compiler used........... gcc
        options for compiling..... -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
        options for linking.......   -lm  -lcurses -lpthread
        shared libraries not supported
Configuration for the native-code compiler:
        (not supported on this platform)
Source-level replay debugger: supported
Additional libraries supported:
        unix str num dynlink bigarray systhreads threads graph dbm
Configuration for the "num" library:
        target architecture ...... generic (asm level 0)
Configuration for the "graph" library:
        options for compiling .... -I/usr/X11R7/include
        options for linking ...... -L/usr/X11R7/lib -lX11
The "labltk" library: not supported
** Objective Caml configuration completed successfully **
EN

回答 2

Unix & Linux用户

发布于 2011-07-28 11:25:21

AIX不再是官方支持的平台。有一个OCaml非官方港口3.11.2

您可以使用GNU修复您的即时生成错误。或者,您可以尝试调整makefile。otherlibs/Makefile.shared使用的是非标准构造?=;将这三行更改为使用=,即CMIFILES = $(CAMLOBJS:.cmo=.cmi)等等。您还需要更改otherlibs/num/Makefile以将CMIFILES的定义移动到include ../Makefile以下,同样地,在otherlibs/dbm/Makefileotherlibs/str/Makefile中,CLIBNAME的定义将移动到include ../Makefile以下。

我建议在卡米尔-名单上搜索或张贴。这是与仍在AIX上使用Ocaml的其他人联系的最佳地点。

票数 1
EN

Unix & Linux用户

发布于 2011-07-28 11:25:52

你应该把完整的日志(在巴斯托或其他地方),而不是切割出任意的部分!还显示了make --version的输出(GNU应该工作)。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/17547

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档