[PATCH] opal: fix build error on Ubuntu 12.04 i386 with gcc 4.6.3

Colin Ian King colin.king at canonical.com
Fri Jul 14 07:49:28 UTC 2017


On 14/06/17 07:36, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> For some reason we need to also include inttypes.h for 32 bit
> builds with gcc 4.6.3 on Ubuntu 12.04 to build correctly.
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/opal/reserv_mem.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/opal/reserv_mem.c b/src/opal/reserv_mem.c
> index 4199448c..60f8c212 100644
> --- a/src/opal/reserv_mem.c
> +++ b/src/opal/reserv_mem.c
> @@ -21,6 +21,7 @@
>  #include <fcntl.h>
>  #include <stdlib.h>
>  #include <sys/ioctl.h>
> +#include <inttypes.h>
>  
>  #include "fwts.h"
>  
> 

I know we don't support 12.04, but I'd like to have this change added as
we do have users who build fwts on other (older) systems and this
breakage is biting them.

Plus it fixes the recipe build failures:
https://launchpadlibrarian.net/328735518/buildlog_ubuntu-precise-armhf.fwts_17.07.00-0ubuntu1+201707140646~ubuntu12.04.1_BUILDING.txt.gz

Colin



More information about the fwts-devel mailing list