[PATCH v5] build: update DPDK to use C11 standard
Ali Alnubani
alialnu at nvidia.com
Thu Aug 3 14:38:52 CEST 2023
> -----Original Message-----
> From: Bruce Richardson <bruce.richardson at intel.com>
> Sent: Wednesday, August 2, 2023 3:32 PM
> To: dev at dpdk.org
> Cc: Bruce Richardson <bruce.richardson at intel.com>; Morten Brørup
> <mb at smartsharesystems.com>; Tyler Retzlaff
> <roretzla at linux.microsoft.com>
> Subject: [PATCH v5] build: update DPDK to use C11 standard
>
> As previously announced, DPDK 23.11 will require a C11 supporting
> compiler and will use the C11 standard in all builds.
>
> Forcing use of the C standard, rather than the standard with
> GNU extensions, means that some posix definitions which are not in
> the C standard are unavailable by default. We fix this by ensuring
> the correct defines or cflags are passed to the components that
> need them.
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
> Acked-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> ---
> V5:
> * Fix build issues with bool type in altivec code, due to bool type
> being in C11. Use __bool for altivec-specific version instead.
>
> V4:
> * pass cflags to the structure and definition checks in mlx* drivers
> to ensure posix definitions - as well as C-standard ones - are
> available.
>
> V3:
> * remove (now unneeded) use of -std=gnu99 in failsafe net driver.
>
> V2:
> * Resubmit now that 23.11-rc0 patch applied
> * Add _POSIX_C_SOURCE macro to eal_common_errno.c to get POSIX
> definition of strerror_r() with c11 standard.
>
> ---
Tested-by: Ali Alnubani <alialnu at nvidia.com>
Thanks,
Ali
More information about the dev
mailing list