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

Reply via email to