构建glibc时出错:make / confgure文件出了什么问题? [英] Errors building glibc: what is wrong with the make/confgure files?

查看:2708
本文介绍了构建glibc时出错:make / confgure文件出了什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在Clear Linux上构建glibc,此处讨论了先前的问题:
如何使用前缀将其构建到指定的目录中

I have been trying to build glibc on Clear Linux, with a previous issue discussed here: How do I build into a specified directory using the "prefix" option of configure?

现在我已经成功运行了configure,makefile文件似乎出现了问题:

Now that I have succeeded in running configure, there seems to be something wrong in the makefile:

james@clr ~/Downloads/glibc $ make
Makeconfig:42: *** missing separator.  Stop.

Makeconfig的第42行:

line 42 of Makeconfig:

objdir must be defined by the build-directory Makefile.

和nakefile直到错误点:

and the nakefile up to the point of error:

ifneq (,)
This makefile requires GNU Make.
endif

all: # Make this the default goal

ifneq "$(origin +included-Makeconfig)" "file"

+included-Makeconfig := yes

ifdef subdir
.. := ../
endif

# $(common-objdir) is the place to put objects and
# such that are not specific to a single subdir.
ifdef objdir
objpfx := $(patsubst %//,%/,$(objdir)/$(subdir)/)
common-objpfx = $(objdir)/
common-objdir = $(objdir)
else
objdir must be defined by the build-directory Makefile.
endif

我有GNU Make 4.2.1

I have GNU Make 4.2.1

推荐答案

您看到一个错误,因为此Makefile认为您的环境是错误的。您正在运行的makefile中的行是有目的的语法错误:无需过多地编辑这些行即可将其更改为正确的行,因为其整个目的是在看到无效的配置时强制make失败。

You're seeing an error because this makefile thinks your environment is wrong. The line in the makefile that you're running is purposefully a syntax error: no amount of editing these lines will change it into a correct line because its entire purpose is to force make to fail when it sees an invalid configuration.

它试图告诉您的错误就在文本中:

The error it's trying to tell you about is right there in the text:


objdir必须由构建目录的Makefile定义。

objdir must be defined by the build-directory Makefile.

makefile检查是否 变量已定义,如果没有定义,它就属于这种无效的语法。

The makefile checks to see if the objdir variable is defined and if not, it falls through to this invalid syntax.

我已经有一段时间没有尝试自己构建glibc了,所以我可以不能确切地说出这是什么意思,但是我敢肯定,如果您在Google上看到该错误消息,您会找到一些可以让您继续前进的信息。

I haven't tried to build glibc myself in quite a while so I can't say exactly what that means but I'm sure if you Google that error message you'll find some information that will let you move forward.

makefile不使用更易读的方式指定错误,例如 $(error ...)函数(在1999年发布的GNU make 3.78中添加)。

It's too bad that this makefile doesn't use more readable ways of specifying errors such as the $(error ...) function (added in GNU make 3.78, released in 1999).

这篇关于构建glibc时出错:make / confgure文件出了什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆