diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-12-14 00:57:55 +0100 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-12-14 19:35:23 +0100 |
commit | a0fd9a35321438cba2f380c339d1c11f4e4750d7 (patch) | |
tree | 217db243e5b75cdd3d1984b320a65e4d35870a18 /gnu/packages/patches | |
parent | 5ee8589c867030bed4405b8a9724be5ca40eb29e (diff) | |
download | guix-a0fd9a35321438cba2f380c339d1c11f4e4750d7.tar.gz guix-a0fd9a35321438cba2f380c339d1c11f4e4750d7.zip |
gnu: i7z: Fix building with GCC >= 10.
* gnu/packages/hardware.scm (i7z)[source]: Add patch.
* gnu/packages/patches/i7z-gcc-10.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/i7z-gcc-10.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/patches/i7z-gcc-10.patch b/gnu/packages/patches/i7z-gcc-10.patch new file mode 100644 index 0000000000..407e17a995 --- /dev/null +++ b/gnu/packages/patches/i7z-gcc-10.patch @@ -0,0 +1,23 @@ +From: Tobias Geerinckx-Rice <me@tobias.gr> +Date: Sat, 11 Dec 2021 19:22:49 +0100 +Subject: [PATCH] gnu: i7z: Build with GCC 10. + +Patch from Debian, modified to apply to our i7z sources in src/. + +Author: Andreas Beckmann <anbe@debian.org> +Description: fix FTBFS with gcc-10 + gcc-10 defaults to -fno-common + see https://gcc.gnu.org/gcc-10/porting_to.html +Bug-Debian: https://bugs.debian.org/957351 + +--- a/src/i7z_Dual_Socket.c ++++ b/src/i7z_Dual_Socket.c +@@ -37,7 +37,7 @@ float Read_Voltage_CPU(int cpu_num); + extern struct program_options prog_options; + FILE *fp_log_file; + +-struct timespec global_ts; ++extern struct timespec global_ts; + extern FILE *fp_log_file_freq_1, *fp_log_file_freq_2; + + extern char* CPU_FREQUENCY_LOGGING_FILE_single; |