Bug 15892

Summary: libfakeroot fails to compile
Product: buildroot Reporter: marc
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description marc 2023-12-14 19:56:25 UTC
In file included from libfakeroot.c:271:
wrapped.h:231:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LSTAT64_TIME64_ARG'
  231 | extern int (*NEXT_LSTAT64_TIME64_NOARG)LSTAT64_TIME64_ARG(int ver, const char *file_name, struct stat64 *buf);
      |                                        ^~~~~~~~~~~~~~~~~~
wrapped.h:232:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'STAT64_TIME64_ARG'
  232 | extern int (*NEXT_STAT64_TIME64_NOARG)STAT64_TIME64_ARG(int ver, const char *file_name, struct stat64 *buf);
      |                                       ^~~~~~~~~~~~~~~~~
wrapped.h:233:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FSTAT64_TIME64_ARG'
  233 | extern int (*NEXT_FSTAT64_TIME64_NOARG)FSTAT64_TIME64_ARG(int ver, int fd, struct stat64 *buf);
      |                                        ^~~~~~~~~~~~~~~~~~
wrapped.h:234:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FSTATAT64_TIME64_ARG'
  234 | extern int (*NEXT_FSTATAT64_TIME64_NOARG)FSTATAT64_TIME64_ARG(int ver, int dir_fd, const char *path, struct stat64 *buf, int flags);
      |                                          ^~~~~~~~~~~~~~~~~~~~
In file included from libfakeroot.c:272:
wraptmpf.h:627:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LSTAT64_TIME64_ARG'
  627 | int TMP_LSTAT64_TIME64 LSTAT64_TIME64_ARG(int ver, const char *file_name, struct stat64 *buf){
      |                        ^~~~~~~~~~~~~~~~~~
wraptmpf.h:632:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'STAT64_TIME64_ARG'
  632 | int TMP_STAT64_TIME64 STAT64_TIME64_ARG(int ver, const char *file_name, struct stat64 *buf){
      |                       ^~~~~~~~~~~~~~~~~
wraptmpf.h:637:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FSTAT64_TIME64_ARG'
  637 | int TMP_FSTAT64_TIME64 FSTAT64_TIME64_ARG(int ver, int fd, struct stat64 *buf){
      |                        ^~~~~~~~~~~~~~~~~~
wraptmpf.h:642:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FSTATAT64_TIME64_ARG'
  642 | int TMP_FSTATAT64_TIME64 FSTATAT64_TIME64_ARG(int ver, int dir_fd, const char *path, struct stat64 *buf, int flags){
      |                          ^~~~~~~~~~~~~~~~~~~~
In file included from libfakeroot.c:273:
wrapdef.h:231:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LSTAT64_TIME64_ARG'
  231 | int (*NEXT_LSTAT64_TIME64_NOARG)LSTAT64_TIME64_ARG(int ver, const char *file_name, struct stat64 *buf)=TMP_LSTAT64_TIME64;
      |                                 ^~~~~~~~~~~~~~~~~~
wrapdef.h:232:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'STAT64_TIME64_ARG'
  232 | int (*NEXT_STAT64_TIME64_NOARG)STAT64_TIME64_ARG(int ver, const char *file_name, struct stat64 *buf)=TMP_STAT64_TIME64;
      |                                ^~~~~~~~~~~~~~~~~
wrapdef.h:233:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FSTAT64_TIME64_ARG'
  233 | int (*NEXT_FSTAT64_TIME64_NOARG)FSTAT64_TIME64_ARG(int ver, int fd, struct stat64 *buf)=TMP_FSTAT64_TIME64;
      |                                 ^~~~~~~~~~~~~~~~~~
wrapdef.h:234:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FSTATAT64_TIME64_ARG'
  234 | int (*NEXT_FSTATAT64_TIME64_NOARG)FSTATAT64_TIME64_ARG(int ver, int dir_fd, const char *path, struct stat64 *buf, int flags)=TMP_FSTATAT64_TIME64;
      |                                   ^~~~~~~~~~~~~~~~~~~~
In file included from communicate.h:19,
                 from libfakeroot.c:65:
config.h:367:36: error: 'next___astat64_time64' undeclared here (not in a function)
  367 | #define NEXT_LSTAT64_TIME64_NOARG  next___astat64_time64
      |                                    ^~~~~~~~~~~~~~~~~~~~~
wrapstruct.h:232:14: note: in expansion of macro 'NEXT_LSTAT64_TIME64_NOARG'
  232 |   {(void(*))&NEXT_LSTAT64_TIME64_NOARG, WRAP_LSTAT64_TIME64_QUOTE},
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
config.h:363:36: error: '__astat64_time64' undeclared here (not in a function)
  363 | #define WRAP_LSTAT64_TIME64_QUOTE  __astat64_time64
      |                                    ^~~~~~~~~~~~~~~~
wrapstruct.h:232:41: note: in expansion of macro 'WRAP_LSTAT64_TIME64_QUOTE'
  232 |   {(void(*))&NEXT_LSTAT64_TIME64_NOARG, WRAP_LSTAT64_TIME64_QUOTE},
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
config.h:375:38: error: '__astatat64_time64' undeclared here (not in a function)
  375 | #define WRAP_FSTATAT64_TIME64_QUOTE  __astatat64_time64
      |                                      ^~~~~~~~~~~~~~~~~~
wrapstruct.h:235:43: note: in expansion of macro 'WRAP_FSTATAT64_TIME64_QUOTE'
  235 |   {(void(*))&NEXT_FSTATAT64_TIME64_NOARG, WRAP_FSTATAT64_TIME64_QUOTE},
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
libtool: link: /usr/bin/gcc -O2 -I/home/pi/buildroot/buildroot-2023.02.8/output/host/include -Wl,-rpath -Wl,/home/pi/buildroot/buildroot-2023.02.8/output/host/lib -o faked faked.o  -L/home/pi/buildroot/buildroot-2023.02.8/output/host/lib ./.libs/libcommunicate.a -ldl
libfakeroot.c:2610:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LSTAT64_TIME64_ARG'
 2610 | int WRAP_LSTAT64_TIME64 LSTAT64_TIME64_ARG(int ver,
      |                         ^~~~~~~~~~~~~~~~~~
libfakeroot.c:2629:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'STAT64_TIME64_ARG'
 2629 | int WRAP_STAT64_TIME64 STAT64_TIME64_ARG(int ver,
      |                        ^~~~~~~~~~~~~~~~~
libfakeroot.c:2647:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FSTAT64_TIME64_ARG'
 2647 | int WRAP_FSTAT64_TIME64 FSTAT64_TIME64_ARG(int ver,
      |                         ^~~~~~~~~~~~~~~~~~
libfakeroot.c:2665:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FSTATAT64_TIME64_ARG'
 2665 | int WRAP_FSTATAT64_TIME64 FSTATAT64_TIME64_ARG(int ver,
      |                           ^~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:673: libfakeroot.lo] Error 1
Comment 1 marc 2023-12-14 21:53:19 UTC
This is on a Raspberry from 2021.

Targeting Risc-V.
Comment 2 Thomas Petazzoni 2023-12-15 09:06:27 UTC
Which distribution/OS are you running?
Comment 3 marc 2023-12-15 18:06:21 UTC
RaspiOS Lite from 2021.
Comment 4 Yann E. MORIN 2024-06-15 15:25:10 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!