Debian Bug report logs - #1094851
gcc-bpf: nondeterministic builds with -g option enabled

version graph

Package: gcc-bpf; Maintainer for gcc-bpf is Debian GCC Maintainers <[email protected]>; Source for gcc-bpf is src:gcc-bpf (PTS, buildd, popcon).

Reported by: mc36 <[email protected]>

Date: Fri, 31 Jan 2025 18:45:01 UTC

Severity: normal

Found in version gcc-bpf/16

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian GCC Maintainers <[email protected]>:
Bug#1094851; Package gcc-bpf. (Fri, 31 Jan 2025 18:45:02 GMT) (full text, mbox, link).


Acknowledgement sent to mc36 <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <[email protected]>. (Fri, 31 Jan 2025 18:45:02 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: mc36 <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: gcc-bpf: nondeterministic builds with -g option enabled
Date: Fri, 31 Jan 2025 19:43:05 +0100
Package: gcc-bpf
Version: 14.2.0-1+1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
i noticed that as soon as i enable the -g option to bpf-gcc the builds are non-
deterministic.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

running repeatedly

bpf-gcc -g -I /usr/include/ -I /usr/include/x86_64-linux-gnu/ zzz.c ; md5sum
a.out

productes different hash every time. replacing 'gcc-bpf' with 'clang -target
bpf'

stabilizes the output. also commenting out the bpf-helpers have positive
effect...

here comes the the simplest zzz.c file that shows the issue:

#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
void main(){}


   * What was the outcome of this action?

different hash every time

   * What outcome did you expect instead?

constant hash every time

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.11-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gcc-bpf depends on:
ii  binutils-bpf  2.43-1+1
ii  libc6         2.40-6
ii  libgmp10      2:6.3.0+dfsg-3
ii  libmpc3       1.3.1-1+b3
ii  libmpfr6      4.2.1-1+b2
ii  libzstd1      1.5.6+dfsg-2
ii  zlib1g        1:1.3.dfsg+really1.3.1-1+b1

gcc-bpf recommends no packages.

gcc-bpf suggests no packages.

-- no debconf information



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 13:14:57 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.