bebbo / amiga-gcc

The GNU C-Compiler with Binutils and other useful tools for cross development for Amiga
GNU General Public License v2.0
312 stars 66 forks source link

Error: amiga-gcc 13.1 - unknown type name 'off_t' #349

Closed isoriano1968 closed 1 year ago

isoriano1968 commented 1 year ago

Hi,

was trying out the latest 13.1 branch and during make min receiving the following error:

bgcc/../gcc -I/home/isoriano/Sources/amiga-gcc/projects/gcc/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _gcov_merge_add.o -MT _gcov_merge_add.o -MD -MP -MF _gcov_merge_add.dep -DL_gcov_merge_add -c /home/isoriano/Sources/amiga-gcc/projects/gcc/libgcc/libgcov-merge.c In file included from /home/isoriano/Sources/amiga-gcc/projects/gcc/libgcc/libgcov.h:49, from /home/isoriano/Sources/amiga-gcc/projects/gcc/libgcc/libgcov-merge.c:26: /opt/amiga/m68k-amigaos/sys-include/sys/mman.h:34:68: error: unknown type name 'off_t' 34 | void mmap(void addr, size_t length, int prot, int flags, int fd, off_t offset); | ^~~~~ make[4]: [Makefile:924: _gcov_merge_add.o] Error 1 make libgcc...failed use less "log/make libgcc.log" to view the full log and search for make: *** [Makefile:866: /home/isoriano/Sources/amiga-gcc/build-Linux-m68k-amigaos/gcc/_libgcc_done] Error 2

I just added #include <sys/types.h> to amiga-gcc/projects/gcc/libgcc/libgcov.h which fixed it.

bebbo commented 1 year ago

the reference build is ok: https://ci.appveyor.com/project/bebbo/amiga-gcc-13-1

isoriano1968 commented 1 year ago

And your are right once again, when I did the update-gcc no missing <sys/types.h> anymore ..

isoriano1968 commented 1 year ago

Non existent anymore ..