Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 912284

Summary: sys-devel/binutils-2.41-r1[gprofng] on musl - /.../iolib.c: error: off64_t undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://sourceware.org/bugzilla/show_bug.cgi?id=30779
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 903611    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.xz
logs.tar.xz
sys-devel:binutils-2.41-r1:20230814-175354.log.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-08-14 18:44:27 UTC
too long lines were shrinked:

libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.41-r1/work/binutils-2.41/gprofng/libcollector -U_ASM -I.. -I/var/tmp/portage/sys-devel/binutils-2.41-r1/work/binutils-2.41/gprofng/libcollector -I/var/tmp/portage/sys-devel/binutils-2.41-r1/wo
/var/tmp/portage/sys-devel/binutils-2.41-r1/work/binutils-2.41/gprofng/libcollector/iolib.c:112:49: error: unknown type name 'off64_t'; did you mean 'off_t'?
  112 | static int mapBuffer (char *fname, Buffer *buf, off64_t foff);
      |                                                 ^~~~~~~
      |                                                 off_t
/var/tmp/portage/sys-devel/binutils-2.41-r1/work/binutils-2.41/gprofng/libcollector/iolib.c: In function '__collector_create_handle':
/var/tmp/portage/sys-devel/binutils-2.41-r1/work/binutils-2.41/gprofng/libcollector/iolib.c:253:20: error: 'off64_t' undeclared (first use in this function); did you mean 'off_t'?
  253 |               -1, (off64_t) 0);
      |                    ^~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-20230814-144751

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-13 *
clang/llvm (if any):
Python 3.11.4
php cli (if any):

  HEAD of ::gentoo
commit b34482011cb2e401b027aba34340def03419cc3b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Aug 14 14:46:42 2023 +0000

    2023-08-14 14:46:42 UTC

emerge -qpvO sys-devel/binutils
[ebuild  NS   ] sys-devel/binutils-2.41-r1 [2.40-r5] USE="cet debuginfod%* gprofng* hardened%* multitarget* nls pgo* plugins -doc -gold -static-libs -test -vanilla -zstd"
Comment 1 Toralf Förster gentoo-dev 2023-08-14 18:44:28 UTC
Created attachment 867840 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-08-14 18:44:28 UTC
Created attachment 867841 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-08-14 18:44:30 UTC
Created attachment 867842 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-08-14 18:44:30 UTC
Created attachment 867843 [details]
etc.portage.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-08-14 18:44:31 UTC
Created attachment 867844 [details]
logs.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-08-14 18:44:32 UTC
Created attachment 867845 [details]
sys-devel:binutils-2.41-r1:20230814-175354.log.xz
Comment 7 Toralf Förster gentoo-dev 2023-08-14 18:44:33 UTC
Created attachment 867846 [details]
temp.tar.xz
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2024-03-04 21:53:15 UTC
Fixed upstream in 2.42
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2024-03-04 22:01:05 UTC
Upstream patch doesnt work (at least not for 2.41)
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2024-03-04 22:05:31 UTC
Using -D_LARGEFILE64_SOURCE leads to a different error:

/var/tmp/portage/sys-devel/binutils-2.41-r5/work/binutils-2.41/gprofng/libcollector/iotrace.c:1033:13: error: redefinition of 'open'
 1033 | DCL_OPEN64 (open64)
      |             ^~~~~~
/var/tmp/portage/sys-devel/binutils-2.41-r5/work/binutils-2.41/gprofng/libcollector/iotrace.c:1020:7: note: in definition of macro 'DCL_OPEN64'
 1020 |   int dcl_f (const char *path, int oflag, ...) \
      |       ^~~~~
...
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2024-03-04 22:09:07 UTC
(In reply to Andreas K. Hüttel from comment #9)
> Upstream patch doesnt work (at least not for 2.41)

Doesnt work for 2.42 either.
Comment 12 Larry the Git Cow gentoo-dev 2024-03-05 11:13:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2c63744e769749b3fa9a92761611f484eb0b39f

commit f2c63744e769749b3fa9a92761611f484eb0b39f
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-03-05 11:12:45 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-03-05 11:13:37 +0000

    profiles, musl: stable-mask gprofng in binutils
    
    Bug: https://bugs.gentoo.org/912284
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 profiles/features/musl/package.use.stable.mask | 6 ++++++
 1 file changed, 6 insertions(+)