[U-Boot] building cross_tools, _POSIX_C_SOURCE and _XOPEN_SOURCE are redefined

Tom Rini trini at konsulko.com
Fri Mar 17 14:31:14 UTC 2017


On Wed, Mar 15, 2017 at 04:02:20AM -0400, Robert P. J. Day wrote:
> 
>   to build cross_tools, i ran:
> 
>   $ make sandbox_defconfig
>   $ make cross_tools
> 
> and while it appeared to work, i got:
> 
> ... snip ...
> 
> LDFLAGS="" python ./lib/libfdt/setup.py \
> 	"-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer    -DCONFIG_FIT_SIGNATURE -include ./include/libfdt_env.h -idirafterinclude -idirafter./arch/sandbox/include -I./lib/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE " lib/libfdt/fdt.c lib/libfdt/fdt_ro.c lib/libfdt/fdt_rw.c lib/libfdt/fdt_strerror.c lib/libfdt/fdt_wip.c lib/libfdt/fdt_region.c lib/libfdt/fdt_sw.c tools/libfdt_wrap.c
> In file included from /usr/include/python2.7/pyconfig.h:6:0,
>                  from /usr/include/python2.7/Python.h:8,
>                  from tools/libfdt_wrap.c:143:
> /usr/include/python2.7/pyconfig-64.h:1203:0: warning: "_POSIX_C_SOURCE" redefined
>  #define _POSIX_C_SOURCE 200112L
>  ^
> In file included from /usr/include/stdint.h:25:0,
>                  from /usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdint.h:9,
>                  from ././include/compiler.h:19,
>                  from ././include/libfdt_env.h:12,
>                  from <command-line>:0:
> /usr/include/features.h:225:0: note: this is the location of the previous definition
>  # define _POSIX_C_SOURCE 200809L
>  ^
> In file included from /usr/include/python2.7/pyconfig.h:6:0,
>                  from /usr/include/python2.7/Python.h:8,
>                  from tools/libfdt_wrap.c:143:
> /usr/include/python2.7/pyconfig-64.h:1225:0: warning: "_XOPEN_SOURCE" redefined
>  #define _XOPEN_SOURCE 600
>  ^
> In file included from /usr/include/stdint.h:25:0,
>                  from /usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdint.h:9,
>                  from ././include/compiler.h:19,
>                  from ././include/libfdt_env.h:12,
>                  from <command-line>:0:
> /usr/include/features.h:166:0: note: this is the location of the previous definition
>  # define _XOPEN_SOURCE 700
>  ^
> 
> 
>   not sure if that concerns anyone enough to want to tweak it.

This is the second report I've gotten about this.  But, we don't set any
of those things directly.  It's something related to the python install
you have.  Can you please dig a bit more?  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170317/0343bfbe/attachment.sig>


More information about the U-Boot mailing list