Arch Linux compile error

Rick Altherr raltherr at google.com
Fri Sep 22 00:51:13 AEST 2017


Looks like an error building the localedef package for the host system.  I
suspect you have a newer glibc installed than the localedef package in
OpenBMC's Yocto is expecting.  Check upstream Yocto to see if they have an
updated localedef recipe.  If so, we can cherry pick it.

Rick

On Thu, Sep 21, 2017 at 5:04 AM, Anton Novikov <a.novikov at yadro.com> wrote:

> | /usr/include/bits/types/__locale_t.h:28:8: note: originally defined here
> |  struct __locale_struct
> |         ^~~~~~~~~~~~~~~
> | In file included from glibc/locale/locale.h:145:0,
> |                  from ../git/localedef/include/locale.h:1,
> |                  from glibc/locale/programs/localedef.h:24,
> |                  from glibc/locale/programs/ld-collate.c:29:
> | glibc/locale/xlocale.h:39:4: error: conflicting types for ‘__locale_t’
> |  } *__locale_t;
> |     ^~~~~~~~~~
> | In file included from /usr/include/bits/types/locale_t.h:22:0,
> |                  from /usr/include/stdlib.h:199,
> |                  from glibc/locale/programs/ld-collate.c:24:
> | /usr/include/bits/types/__locale_t.h:42:33: note: previous declaration
> of ‘__locale_t’ was here
> |  typedef struct __locale_struct *__locale_t;
> |                                  ^~~~~~~~~~
> | In file included from glibc/locale/locale.h:145:0,
> |                  from ../git/localedef/include/locale.h:1,
> |                  from glibc/locale/programs/localedef.h:24,
> |                  from glibc/locale/programs/ld-collate.c:29:
> | glibc/locale/xlocale.h:42:20: error: conflicting types for ‘locale_t’
> |  typedef __locale_t locale_t;
> |                     ^~~~~~~~
> | In file included from /usr/include/stdlib.h:199:0,
> |                  from glibc/locale/programs/ld-collate.c:24:
> | /usr/include/bits/types/locale_t.h:24:20: note: previous declaration of
> ‘locale_t’ was here
> |  typedef __locale_t locale_t;
> |                     ^~~~~~~~
> | glibc/locale/programs/charmap.c: In function ‘charmap_read’:
> | glibc/locale/programs/charmap.c:202:39: warning: passing argument 1 of
> ‘__xpg_basename’ discards ‘const’ qualifier from pointer target type
> [-Wdiscarded-qualifiers]
> |      result->code_set_name = basename (filename);
> |                                        ^~~~~~~~
> | In file included from ../git/localedef/include/string.h:4:0,
> |                  from glibc/locale/programs/charmap.c:28:
> | /usr/include/libgen.h:34:14: note: expected ‘char *’ but argument is of
> type ‘const char *’
> |  extern char *__xpg_basename (char *__path) __THROW;
> |               ^~~~~~~~~~~~~~
> | make: *** [Makefile:66: charmap-dir.o] Error 1
> | make: *** Waiting for unfinished jobs....
> | make: *** [Makefile:66: charmap.o] Error 1
> | make: *** [Makefile:66: ld-address.o] Error 1
> | make: *** [Makefile:66: ld-collate.o] Error 1
> | WARNING: /home/openbmc/openbmc/build/tmp/work/x86_64-linux/cross-loca
> ledef-native/2.24-r0/temp/run.do_compile.3987:1 exit 1 from 'exit 1'
> | ERROR: Function failed: do_compile (log file is located at
> /home/openbmc/openbmc/build/tmp/work/x86_64-linux/cross-loca
> ledef-native/2.24-r0/temp/log.do_compile.3987)
> ERROR: Task (/home/openbmc/openbmc/meta/recipes-core/glibc/cross-localed
> ef-native_2.24.bb:do_compile) failed with exit code '1'
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20170921/e96e13ad/attachment.html>


More information about the openbmc mailing list