bug-datamash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error when compiling code on armv7hl


From: Jiri Hladky
Subject: Error when compiling code on armv7hl
Date: Fri, 7 Jan 2022 12:37:19 +0100

Hello Assaf,

I'm a datamash package maintainer for Fedora. I have tried to compile version 1.7, but I'm getting an error when compiling decorate.c for armv7hl architectures (all other arches compile just fine).

Could you please have a look? It seems to be an integer type mismatch.

Thanks a lot
Jirka


https://kojipkgs.fedoraproject.org//work/tasks/2285/80842285/build.log
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I.  -Ilib -I./lib -Isrc -I./src -DKEY_COMPARE_DECORATION -DKEY_COMPARE_HUMAN_NUMERIC -DKEY_COMPARE_NONPRINTING -DKEY_COMPARE_MONTH -DKEY_COMPARE_RANDOM -DKEY_COMPARE_REVERSE -DKEY_COMPARE_VERSION  -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure   -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong   -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -c -o src/decorate-decorate.o `test -f 'src/decorate.c' || echo './'`src/decorate.c
In file included from src/die.h:24,
                 from src/decorate.c:28:
src/decorate.c: In function 'decorate_file':
src/decorate.c:445:37: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'intmax_t' {aka 'long long int'} [-Wformat=]
  445 |         die (SORT_FAILURE, errno, _("conversion failed in line %zu"), linenum);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/verify.h:265:60: note: in definition of macro 'verify_expr'
  265 |    (_GL_VERIFY_TRUE (R, "verify_expr (" #R ", " #E ")") ? (E) : (E))
      |                                                            ^
src/decorate.c:445:9: note: in expansion of macro 'die'
  445 |         die (SORT_FAILURE, errno, _("conversion failed in line %zu"), linenum);
      |         ^~~
src/decorate.c:445:35: note: in expansion of macro '_'
  445 |         die (SORT_FAILURE, errno, _("conversion failed in line %zu"), linenum);
      |                                   ^
src/decorate.c:445:66: note: format string is defined here
  445 |         die (SORT_FAILURE, errno, _("conversion failed in line %zu"), linenum);
      |                                                                ~~^
      |                                                                  |
      |                                                                  unsigned int
      |                                                                %llu
In file included from src/die.h:24,
                 from src/decorate.c:28:
src/decorate.c:445:37: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'intmax_t' {aka 'long long int'} [-Wformat=]
  445 |         die (SORT_FAILURE, errno, _("conversion failed in line %zu"), linenum);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/verify.h:265:66: note: in definition of macro 'verify_expr'
  265 |    (_GL_VERIFY_TRUE (R, "verify_expr (" #R ", " #E ")") ? (E) : (E))
      |                                                                  ^
src/decorate.c:445:9: note: in expansion of macro 'die'
  445 |         die (SORT_FAILURE, errno, _("conversion failed in line %zu"), linenum);
      |         ^~~
src/decorate.c:445:35: note: in expansion of macro '_'
  445 |         die (SORT_FAILURE, errno, _("conversion failed in line %zu"), linenum);
      |                                   ^
src/decorate.c:445:66: note: format string is defined here
  445 |         die (SORT_FAILURE, errno, _("conversion failed in line %zu"), linenum);
      |                                                                ~~^
      |                                                                  |
      |                                                                  unsigned int
      |                                                                %llu
make[2]: Leaving directory '/builddir/build/BUILD/datamash-1.7'
make[2]: Entering directory '/builddir/build/BUILD/datamash-1.7'

reply via email to

[Prev in Thread] Current Thread [Next in Thread]