Hi!

On 2023-12-13T11:15:54-0800, Jerry D via Gcc <g...@gcc.gnu.org> wrote:
> I am getting this failure to build from clean trunk.

This is due to commit r14-6499-g348874f0baac0f22c98ab11abbfa65fd172f6bdd
"libgomp: basic pinned memory on Linux", which supposedly was only tested
with '--disable-multilib' or so.  As Andrew's now on vacations --
conveniently ;-P -- I'll soon push a fix.

(To restore your build, you may locally disable the 'gomp_debug' call, or
cast 'size' into '(long) size', for example.)


Grüße
 Thomas


> In file included from ../../../../trunk/libgomp/config/linux/allocator.c:31:
> ../../../../trunk/libgomp/config/linux/allocator.c: In function
> ‘linux_memspace_alloc’:
> ../../../../trunk/libgomp/config/linux/allocator.c:70:26: error: format
> ‘%ld’ expects argument of type ‘long int’, but argument 3 has type
> ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
>     70 |           gomp_debug (0, "libgomp: failed to pin %ld bytes of"
>        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     71 |                       " memory (ulimit too low?)\n", size);
>        |                                                      ~~~~
>        |                                                      |
>        |                                                      size_t
> {aka unsigned int}
> ../../../../trunk/libgomp/libgomp.h:186:29: note: in definition of macro
> ‘gomp_debug’
>    186 |       (gomp_debug) ((KIND), __VA_ARGS__); \
>        |                             ^~~~~~~~~~~
> ../../../../trunk/libgomp/config/linux/allocator.c:70:52: note: format
> string is defined here
>     70 |           gomp_debug (0, "libgomp: failed to pin %ld bytes of"
>        |                                                  ~~^
>        |                                                    |
>        |                                                    long int
>        |                                                  %d
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 
München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas 
Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht 
München, HRB 106955

Reply via email to