https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90585

            Bug ID: 90585
           Summary: libgomp hsa plugin ftbfs in the x32 multilib variant
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

seen when configuring with

  --enable-offload-targets=nvptx-none,hsa
  --with-multilib-list=m32,m64,mx32

libtool: compile:  /home/packages/gcc/9/gcc-9-9.1.0/build/./gcc/xgcc
-B/home/packages/gcc/9/gcc-9-9.1.0/build/./gcc/ -B/usr/x86_64-linux
-gnu/bin/ -B/usr/x86_64-linux-gnu/lib/ -isystem /usr/x86_64-linux-gnu/include
-isystem /usr/x86_64-linux-gnu/sys-include -isystem /home/
packages/gcc/9/gcc-9-9.1.0/build/sys-include -DHAVE_CONFIG_H -I.
-I../../../../src/libgomp -I../../../../src/libgomp/config/linux/x86 -I
../../../../src/libgomp/config/linux -I../../../../src/libgomp/config/posix
-I../../../../src/libgomp -I../../../../src/libgomp/../inclu
de -D_GNU_SOURCE -Wall -Werror -ftls-model=initial-exec -pthread
-DUSING_INITIAL_EXEC_TLS -g -O2 -mx32 -MT libgomp_plugin_hsa_la-plugin-
hsa.lo -MD -MP -MF .deps/libgomp_plugin_hsa_la-plugin-hsa.Tpo -c
../../../../src/libgomp/plugin/plugin-hsa.c  -fPIC -DPIC -o .libs/libgo
mp_plugin_hsa_la-plugin-hsa.o
../../../../src/libgomp/plugin/plugin-hsa.c: In function
'release_kernel_dispatch':
../../../../src/libgomp/plugin/plugin-hsa.c:1158:22: error: cast to pointer
from integer of different size [-Werror=int-to-pointer-cast]
 1158 |       shadow->debug, (void *) shadow->debug);
      |                      ^
../../../../src/libgomp/plugin/plugin-hsa.c:261:19: note: in definition of
macro 'HSA_LOG'
  261 |  fprintf (stderr, __VA_ARGS__); \
      |                   ^~~~~~~~~~~
../../../../src/libgomp/plugin/plugin-hsa.c:1157:3: note: in expansion of macro
'HSA_DEBUG'
 1157 |   HSA_DEBUG ("Released kernel dispatch: %p has value: %lu (%p)\n",
shadow,
      |   ^~~~~~~~~
../../../../src/libgomp/plugin/plugin-hsa.c:1157:14: error: format '%lu'
expects argument of type 'long unsigned int', but argument 4 has type
'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
 1157 |   HSA_DEBUG ("Released kernel dispatch: %p has value: %lu (%p)\n",
shadow,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1158 |       shadow->debug, (void *) shadow->debug);
      |       ~~~~~~~~~~~~~
      |             |
      |             uint64_t {aka long long unsigned int}
../../../../src/libgomp/plugin/plugin-hsa.c:261:19: note: in definition of
macro 'HSA_LOG'
  261 |  fprintf (stderr, __VA_ARGS__); \
      |                   ^~~~~~~~~~~
../../../../src/libgomp/plugin/plugin-hsa.c:1157:3: note: in expansion of macro
'HSA_DEBUG'
 1157 |   HSA_DEBUG ("Released kernel dispatch: %p has value: %lu (%p)\n",
shadow,
      |   ^~~~~~~~~
../../../../src/libgomp/plugin/plugin-hsa.c:1157:57: note: format string is
defined here
 1157 |   HSA_DEBUG ("Released kernel dispatch: %p has value: %lu (%p)\n",
shadow,
      |                                                       ~~^
      |                                                         |
      |                                                         long unsigned
int
      |                                                       %llu
../../../../src/libgomp/plugin/plugin-hsa.c: In function
'print_kernel_dispatch':
../../../../src/libgomp/plugin/plugin-hsa.c:1279:31: error: format '%lu'
expects argument of type 'long unsigned int', but argument 3 ha
s type 'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
 1279 |   fprintf (stderr, "object: %lu\n", dispatch->object);
      |                             ~~^     ~~~~~~~~~~~~~~~~
      |                               |             |
      |                               |             uint64_t {aka long long
unsigned int}
      |                               long unsigned int
      |                             %llu
../../../../src/libgomp/plugin/plugin-hsa.c:1281:31: error: format '%lu'
expects argument of type 'long unsigned int', but argument 3 has type
'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
 1281 |   fprintf (stderr, "signal: %lu\n", dispatch->signal);
      |                             ~~^     ~~~~~~~~~~~~~~~~
      |                               |             |
      |                               |             uint64_t {aka long long
unsigned int}
      |                               long unsigned int
      |                             %llu
../../../../src/libgomp/plugin/plugin-hsa.c:1289:44: error: format '%lu'
expects argument of type 'long unsigned int', but argument 3 has type
'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
 1289 |   fprintf (stderr, "children dispatches: %lu\n",
      |                                          ~~^
      |                                            |
      |                                            long unsigned int
      |                                          %llu
 1290 |     dispatch->kernel_dispatch_count);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~         
      |             |
      |             uint64_t {aka long long unsigned int}
../../../../src/libgomp/plugin/plugin-hsa.c: In function 'run_kernel':
../../../../src/libgomp/plugin/plugin-hsa.c:1597:13: error: format '%lu'
expects argument of type 'long unsigned int', but argument 3 has type
'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
 1597 |  HSA_DEBUG ("Waiting for children completion signal: %lu\n",
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1598 |      shadow->children_dispatches[i]->signal);
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                    |
      |                                    uint64_t {aka long long unsigned
int}
../../../../src/libgomp/plugin/plugin-hsa.c:261:19: note: in definition of
macro 'HSA_LOG'
  261 |  fprintf (stderr, __VA_ARGS__); \
      |                   ^~~~~~~~~~~
../../../../src/libgomp/plugin/plugin-hsa.c:1597:2: note: in expansion of macro
'HSA_DEBUG'
 1597 |  HSA_DEBUG ("Waiting for children completion signal: %lu\n",
      |  ^~~~~~~~~
../../../../src/libgomp/plugin/plugin-hsa.c:1597:56: note: format string is
defined here
 1597 |  HSA_DEBUG ("Waiting for children completion signal: %lu\n",
      |                                                      ~~^
      |                                                        |
      |                                                        long unsigned
int
      |                                                      %llu
cc1: all warnings being treated as errors
make[10]: *** [Makefile:794: libgomp_plugin_hsa_la-plugin-hsa.lo] Error 1
make[10]: Leaving directory
'/home/packages/gcc/9/gcc-9-9.1.0/build/x86_64-linux-gnu/x32/libgomp'

Reply via email to