https://sourceware.org/bugzilla/show_bug.cgi?id=30779
Bug ID: 30779 Summary: gprofng: fails to build with musl-1.2.4 (gprofng/src/Data_window.h:56:3: error: 'off64_t' does not name a type; did you mean 'off_t'?) Product: binutils Version: 2.41 Status: NEW Severity: normal Priority: P2 Component: gprofng Assignee: vladimir.mezentsev at oracle dot com Reporter: sam at gentoo dot org Target Milestone: --- ``` /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.././gprofng/src -I.. -U_ASM -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I.. -I../../.././gprofng/src -I../../.././gprofng/src/../common -I../../.././gprofng/src/../../include -I../../.././gprofng/src/../../opcodes -I../../bfd -I../../.././gprofng/src/../../bfd -I../../.././gprofng/../zlib -Wall -pthread -Wno-switch -g -O2 -MT Dbe.lo -MD -MP -MF $depbase.Tpo -c -o Dbe.lo ../../.././gprofng/src/Dbe.cc &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.././gprofng/src -I.. -U_ASM -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I.. -I../../.././gprofng/src -I../../.././gprofng/src/../common -I../../.././gprofng/src/../../include -I../../.././gprofng/src/../../opcodes -I../../bfd -I../../.././gprofng/src/../../bfd -I../../.././gprofng/../zlib -Wall -pthread -Wno-switch -g -O2 -MT Dbe.lo -MD -MP -MF .deps/Dbe.Tpo -c ../../.././gprofng/src/Dbe.cc -o Dbe.o In file included from ../../.././gprofng/src/Exp_Layout.h:31, from ../../.././gprofng/src/MemorySpace.h:28, from ../../.././gprofng/src/DbeSession.h:50, from ../../.././gprofng/src/Dbe.cc:31: ../../.././gprofng/src/Data_window.h:56:3: error: 'off64_t' does not name a type; did you mean 'off_t'? 56 | off64_t get_fsize () { return fsize; } | ^~~~~~~ | off_t In file included from ../../.././gprofng/src/LoadObject.h:27, from ../../.././gprofng/src/Dbe.cc:40: ../../.././gprofng/src/Stabs.h:90:28: error: 'ino64_t' has not been declared 90 | Stab_status read_stabs(ino64_t srcInode, Module *module, Vector<ComC*> *comComs, bool readDwarf = false); | ^~~~~~~ ../../.././gprofng/src/LoadObject.h:194:3: error: 'ino64_t' does not name a type; did you mean 'int64_t'? 194 | ino64_t inode; // inode number of segment file | ^~~~~~~ | int64_t In file included from ../../.././gprofng/src/Function.h:28, from ../../.././gprofng/src/Dbe.cc:45: ../../.././gprofng/src/SourceFile.h:59:3: error: 'ino64_t' does not name a type; did you mean 'int64_t'? 59 | ino64_t | ^~~~~~~ | int64_t ../../.././gprofng/src/SourceFile.h:106:3: error: 'ino64_t' does not name a type; did you mean 'int64_t'? 106 | ino64_t srcInode; // Inode number of source file | ^~~~~~~ | int64_t make[5]: *** [Makefile:844: Dbe.lo] Error 1 ``` This is with musl-1.2.4 which drops the LFS types because it always has native LFS. I suggest using -D_FILE_OFFSET_BITS=64 via AC_SYS_LARGEFILE and then always using ino_t and friends, which will work on glibc too. -- You are receiving this mail because: You are on the CC list for the bug.