[coreboot] coreboot-libpayload 'size_t' conflicting type error

Paul Menzel paulepanter at users.sourceforge.net
Wed Mar 27 10:32:05 CET 2013

Dear Pradish,

in my last message I asked you *not* to send any HTML messages!

Additionally you did not reply to the list. Please use a decent mail
client which has the option to reply to the list. (As a workaround you
might use the reply to all feature.

Am Mittwoch, den 27.03.2013, 13:08 +0530 schrieb Pradish MP:


> but i get new errors
> pradish at pradish-VirtualBox:~/coreboot/payloads/libpayload$ make install
> build/libpayload-config.h build/config.h differ: byte 93, line 4
>     CC         libpci/libpci.libpci.o
>     AR         build/libpci.a
>     CC         arch/x86/main.libc.o
>     CC         arch/x86/sysinfo.libc.o
>     CC         arch/x86/timer.libc.o
>     CC         arch/x86/coreboot.libc.o
>     CC         arch/x86/util.libc.o
>     CC         arch/x86/exec.libc.o
>     CC         arch/x86/virtual.libc.o
>     CC         arch/x86/string.libc.o
>     CC         arch/x86/multiboot.libc.o
>     CC         crypto/sha1.libc.o
>     CC         libc/malloc.libc.o
>     CC         libc/printf.libc.o
>     CC         libc/console.libc.o
>     CC         libc/string.libc.o
> In file included from libc/string.c:35:0:
> include/inttypes.h:250:2: error: unknown type name 'intmax_t'
> include/inttypes.h:251:2: error: unknown type name 'intmax_t'
> include/inttypes.h:255:1: error: unknown type name 'intmax_t'
> include/inttypes.h:255:1: warning: parameter names (without types) in function declaration [enabled by default]
> include/inttypes.h:256:1: warning: parameter names (without types) in function declaration [enabled by default]
> include/inttypes.h:257:1: error: unknown type name 'intmax_t'
> include/inttypes.h:258:1: error: unknown type name 'uintmax_t'
> libc/string.c: In function 'strtoul':
> libc/string.c:542:12: error: 'UINT32_MAX' undeclared (first use in this function)
> libc/string.c:542:12: note: each undeclared identifier is reported only once for each function it appears in
> make: *** [build/libc/string.libc.o] Error 1
> how to resolve this one?

Thanks to Stefan Reinauer these errors should be fixed with the
following commit.

        commit c7b6d7db092cfd925f1fb6333e166a54663310e7
        Author: Stefan Reinauer <reinauer at chromium.org>
        Date:   Mon Mar 25 15:03:41 2013 -0700

            libpayload: Fix type issues

            There were a number of type issues in libpayload that
        sneaked in
            with 903f8e0.

            - size_t and ssize_t were conflicting with gcc builtins
            - some stdint types were used in libpayload but not defined
              in our stdint.h


            Reviewed-on: http://review.coreboot.org/2903

Please do `git remote update` and `git rebase origin/master` to get the
latest revision and everything should be fine.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20130327/2c6f55fb/attachment.sig>

More information about the coreboot mailing list