long int error when building Bareos

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

long int error when building Bareos

Postby rafaelcastellar » Mon Jun 13, 2022 2:56 pm

Hi!

I use bareos in my raspiberry pi 4 (archlinuxARM - aarch64). There is an bareos update that is generating the following error during building process:

$this->bbcode_second_pass_code('', '
/home/myuser/.cache/yay/bareos/src/bareos/core/src/droplet/libdroplet/src/backend/posix/backend.c: In function ‘dpl_posix_head_raw’:
/home/myuser/.cache/yay/bareos/src/bareos/core/src/droplet/libdroplet/src/backend/posix/backend.c:147:33: error: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘__nlink_t’ {aka ‘unsigned int’} [-Werror=format=]
147 | snprintf(buf, sizeof(buf), "%ld", st.st_nlink);
| ~~^ ~~~~~~~~~~~
| | |
| | __nlink_t {aka unsigned int}
| long int
| %d
/home/myuser/.cache/yay/bareos/src/bareos/core/src/droplet/libdroplet/src/backend/posix/backend.c:182:33: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘__blksize_t’ {aka ‘int’} [-Werror=format=]
182 | snprintf(buf, sizeof(buf), "%lu", st.st_blksize);
| ~~^ ~~~~~~~~~~~~~
| | |
| | __blksize_t {aka int}
| long unsigned int
| %u
cc1: all warnings being treated as errors
make[2]: *** [core/src/droplet/libdroplet/CMakeFiles/droplet.dir/build.make:1070: core/src/droplet/libdroplet/CMakeFiles/droplet.dir/src/backend/posix/backend.c.o] Erro 1
make[1]: *** [CMakeFiles/Makefile2:2538: core/src/droplet/libdroplet/CMakeFiles/droplet.dir/all] Erro 2
make: *** [Makefile:146: all] Erro 2
==> ERRO: Uma falha ocorreu em build().
Abortando...
-> erro ao construir: bareos (bareos-common bareos-bconsole bareos-database-common bareos-database-postgresql bareos-database-tools bareos-director bareos-filedaemon bareos-storage bareos-tools bareos-webui)
')

This is my system:
$this->bbcode_second_pass_code('', '
Linux myPi4 5.18.1-1-aarch64-ARCH #1 SMP PREEMPT Wed Jun 1 19:34:45 MDT 2022 aarch64 GNU/Linux
')

It seems to be related to the architecture, I'm not sure. Is there any tip about how to deal with it?

Let me know what additional information should I have to provide.

Thanks!

Rafael
rafaelcastellar
 
Posts: 27
Joined: Fri May 12, 2017 12:42 am

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 58 guests

cron