* build breakage scripts/kconfig/conf
@ 2006-02-08 5:13 carbonated beverage
0 siblings, 0 replies; only message in thread
From: carbonated beverage @ 2006-02-08 5:13 UTC (permalink / raw)
To: linux-kernel
barbeque/zarathustra:linux-2.6: SHELL=/bin/bash make oldconfig
HOSTLD scripts/kconfig/conf
/usr/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/conf] Error 1
make: *** [oldconfig] Error 2
by:
5e375bc7d586e0df971734a5a5f1f080ffd89b68
[PATCH] kconfig: detect if -lintl is needed when linking conf,mconf
KBUILD_NEED_LINTL := $(shell \
if echo -e "\#include <libintl.h>\nint main(int a, char** b) { gettext(\"\"); return 0; }\n" | \
$(HOSTCC) $(HOSTCFLAGS) -x c - -o /dev/null> /dev/null 2>&1 ; \
then echo no ; \
else echo yes ; fi)
ifeq ($(KBUILD_NEED_LINTL),yes)
HOSTLOADLIBES_conf += -lintl
HOSTLOADLIBES_mconf += -lintl
endif
Running the commands manually, it returns the correct values.
Running it via make, it pukes.
Tried adding SHELL=/bin/bash to the Makefile fragment, and also tried:
SHELL=/bin/bash
KBUILD_NEED_LINTL := $(shell \
bash -c 'if echo -e "\#include <libintl.h>\nint main(int a, char** b) { gettext(\"\") ; return 0; }\n" | \
$(HOSTCC) $(HOSTCFLAGS) -x c - -o /dev/null> /dev/null 2>&1 ; \
then echo no ; \
else echo yes ; fi')
ifeq ($(KBUILD_NEED_LINTL),yes)
HOSTLOADLIBES_conf += -lintl
HOSTLOADLIBES_mconf += -lintl
endif
foo:
echo ${HOSTLOADLIBES_mconf}
echo ${HOSTLOADLIBES_conf}
Still bombs out.
However:
barbeque/zarathustra:linux-2.6: if echo -e '#include <libintl.h>
int main(int a, char** b)
{
gettext("");
return 0;
}
' | cc -x c - -o /dev/null > /dev/null 2>&1 ; then
> echo no
> else
> echo yes
> fi
no
So... anyone have an idea what's going on?
The shell output was under bash, with SHELL set to /bin/bash.
Debian amd64 port, using the stable tree:
barbeque/zarathustra:linux-2.6: make --version|head -1 ; gcc --version|head -1
GNU Make 3.80
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
-- DN
Daniel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-08 5:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-08 5:13 build breakage scripts/kconfig/conf carbonated beverage
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®