You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 23.11 release of NixOS has caused GCC to mangle __FILE__ names withing the
nix-store. See <NixOS/nixpkgs#255192>. This causes
gcov to fail with file-not-found errors:
(DEBUG) Running gcov: 'gcov /build/source/rsort.gcda --branch-counts --branch-probabilities --demangled-names --hash-filenames --object-directory /build/source' in '/build/source'
(ERROR) GCOV produced the following errors processing /build/source/rsort.gcda:
Cannot open source file /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-glibc-2.38-27-dev/include/bits/string_fortified.h
To work around this issue we add the --relative-only flag to gcov instucting it
to not consider files with absoulte paths, thus excluding header files in the nix-store.
Note: these files were already filtered out by gcovr, so the resulting
documentation hasn't really changed.
0 commit comments