Bug#1077788: clblas: autopkgtest regressions with gcc-14

Gianfranco Costamagna locutusofborg at debian.org
Fri Aug 2 14:42:36 BST 2024


Hello, I found another issue on non amd64,

 From 05afa5dd63ece9c6e43b40705f3c7dc1a9e6049e Mon Sep 17 00:00:00 2001
From: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Fri, 2 Aug 2024 15:40:39 +0200
Subject: [PATCH] Update example_csscal.c
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

with gcc-14 this warning becomes a failure

  90s /tmp/autopkgtest.g0L4Ek/autopkgtest_tmp/example_csscal.c: In function ‘main’:
  90s /tmp/autopkgtest.g0L4Ek/autopkgtest_tmp/example_csscal.c:67:26: error: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration]
  90s    67 |     int lenX = 1 + (N-1)*abs(incx);
  90s       |                          ^~~
  90s /tmp/autopkgtest.g0L4Ek/autopkgtest_tmp/example_csscal.c:26:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘abs’
  90s    25 | #include <clBLAS.h>
  90s   +++ |+#include <stdlib.h>
  90s    26 |
  90s /tmp/autopkgtest.g0L4Ek/autopkgtest_tmp/example_csscal.c:89:5: warning: ‘clCreateCommandQueue’ is deprecated [-Wdeprecated-declarations]
  90s    89 |     queue = clCreateCommandQueue(ctx, device, 0, &err);
  90s       |     ^~~~~
---
  src/samples/example_csscal.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/src/samples/example_csscal.c b/src/samples/example_csscal.c
index c78bc550..c03030f3 100644
--- a/src/samples/example_csscal.c
+++ b/src/samples/example_csscal.c
@@ -16,6 +16,7 @@
  
  #include <sys/types.h>
  #include <stdio.h>
+#include <stdint.h>
  #include <string.h>
  #include <math.h>
  


Already reported upstream.

G.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20240802/3345e204/attachment.sig>


More information about the debian-science-maintainers mailing list