build breakage scripts/kconfig/conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux