unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 407e17a9959a598c33feea6615da7db3aefed6ba 743 bytes (raw)
name: packages/patches/i7z-gcc-10.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;

debug log:

solving 407e17a9959a598c33feea6615da7db3aefed6ba ...
found 407e17a9959a598c33feea6615da7db3aefed6ba in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).