Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937334 - sys-fs/avfs-1.1.5 passing argument 1 of 'localtime_r' from incompatible pointer type, on ARM MUSL
Summary: sys-fs/avfs-1.1.5 passing argument 1 of 'localtime_r' from incompatible point...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-04 20:07 UTC by Marius Dinu
Modified: 2024-08-04 21:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,7.14 KB, text/plain)
2024-08-04 20:08 UTC, Marius Dinu
Details
build log (avfs.log,17.43 KB, text/plain)
2024-08-04 20:08 UTC, Marius Dinu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Dinu 2024-08-04 20:07:47 UTC
emerge fails with this error:

libtool: compile:  armv7a-unknown-linux-musleabihf-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -DBZ_NO_STDIO -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -O2 -pipe -fomit-frame-pointer -march=armv7ve+neon-vfpv3 -mcpu=cortex-a17 -mfpu=neon-vfpv3 -mfloat-abi=hard -O2 -pipe -fomit-frame-pointer -march=armv7ve+neon-vfpv3 -mcpu=cortex-a17 -mfpu=neon-vfpv3 -mfloat-abi=hard -c sysdeps.c  -fPIC -DPIC -o .libs/sysdeps.o
sysdeps.c: In function 'av_localtime':
sysdeps.c:325:17: error: passing argument 1 of 'localtime_r' from incompatible pointer type [-Wincompatible-pointer-types]
  325 |     localtime_r(&t, &tms);
      |                 ^~
      |                 |
      |                 avtime_t * {aka long int *}
In file included from /usr/include/pthread.h:31,
                 from ../include/avfs.h:15,
                 from ../include/internal.h:9,
                 from sysdeps.c:9:
/usr/include/time.h:76:25: note: expected 'const time_t * restrict' {aka 'const long long int * restrict'} but argument is of type 'avtime_t *' {aka 'long int *'}
   76 | struct tm *localtime_r (const time_t *__restrict, struct tm *__restrict);
      |                         ^
make[2]: *** [Makefile:501: sysdeps.lo] Error 1

Thank you.
Comment 1 Marius Dinu 2024-08-04 20:08:01 UTC
Created attachment 899044 [details]
emerge --info
Comment 2 Marius Dinu 2024-08-04 20:08:18 UTC
Created attachment 899045 [details]
build log
Comment 3 Mike Gilbert gentoo-dev 2024-08-04 21:57:04 UTC
It looks like it thinks time_t is (long long)... but that should only be the case if _TIME_BITS=64. We haven't enabled that for 32-bit arches yet.

libtool: compile:  armv7a-unknown-linux-musleabihf-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -DB
Z_NO_STDIO -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -O2 -pipe -fomit-frame-pointer -march=armv7ve+neon-vfpv3 -mcpu=cortex-a17 -mfpu=neon-vfpv3 -m
float-abi=hard -O2 -pipe -fomit-frame-pointer -march
=armv7ve+neon-vfpv3 -mcpu=cortex-a17 -mfpu=neon-vfpv3 -mfloat-abi=hard -c sysdeps.c  -fPIC -DPIC -o .libs/sysdeps.o
sysdeps.c: In function 'av_localtime':
sysdeps.c:325:17: error: passing argument 1 of 'localtime_r' from incompatible pointer type [-Wincompatible-pointer-types]
  325 |     localtime_r(&t, &tms);
      |                 ^~
      |                 |
      |                 avtime_t * {aka long int *}
In file included from /usr/include/pthread.h:31,
                 from ../include/avfs.h:15,
                 from ../include/internal.h:9,
                 from sysdeps.c:9:
/usr/include/time.h:76:25: note: expected 'const time_t * restrict' {aka 'const long long int * restrict'} but argument is of type 'avtime_t *' {aka 'long int *'}
   76 | struct tm *localtime_r (const time_t *__restrict, struct tm *__restrict);
      |                         ^
make[2]: *** [Makefile:501: sysdeps.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/sys-fs/avfs-1.1.5/work/avfs-1.1.5/src'
make[1]: *** [Makefile:386: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-fs/avfs-1.1.5/work/avfs-1.1.5/src'
make: *** [Makefile:432: all-recursive] Error 1
Comment 4 Mike Gilbert gentoo-dev 2024-08-04 21:58:06 UTC
Oh, this is musl, which doesn't have _TIME_BITS.