Received: from out.migadu.com (out.migadu.com [91.121.223.63]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 0EA357819D4 for <~alpine/devel@lists.alpinelinux.org>; Tue, 25 Feb 2020 22:09:52 +0000 (UTC) Received: (Migadu outbound); Tue, 25 Feb 2020 22:09:51 +0000 Authentication-Results: out.migadu.com; auth=pass (plain) Received: from wms0-eu-central.migadu.com (wms0-eu-central.migadu.com [139.162.159.86]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id EACFD649-A717-4721-8741-5DC6BAA1D520.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Tue, 25 Feb 2020 22:09:51 +0000 MIME-Version: 1.0 Date: Tue, 25 Feb 2020 22:09:51 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.12.1 From: "Ariadne Conill" Message-ID: Subject: planned mass bug file: -fno-common To: ~alpine/devel@lists.alpinelinux.org DKIM-Signature: v=1;a=rsa-sha256;bh=dI2Er05EP6JNI4dVG+JRTz9s9v1tcUxMQrPvsf3/nSY=;c=relaxed/simple;d=dereferenced.org;h=from:subject:date:to;s=default;b=QyYO6fpnSpjIcK5YWfQ31g3z8/ZuUarucEavEI0c/7JWEL0l1KU3/RwUWa+e6OqHV5rCu0jE8BD5Z55lkUNuGvWpgwYMexPAnaFtUO/6ov6A9jC4ZaH2MoGA0+6JVzolyUmUhBl5+XebavHj8zwpzAgg3Z///zGtTJZkPFJVn6s= Hello,=0A=0AGCC 10 and Clang 11 will enable the -fno-common CFLAG by defa= ult.=0A=0AAccordingly, I plan to run a mock rebuild of the distribution w= ith=0A-fno-common in $CFLAGS.=0A=0AAny package which fails to build with = -fno-common will have a bug=0Afiled against it, as we need to fix these b= efore we update to GCC=0A10, which will likely happen shortly after 3.12 = release.=0A=0A-fno-common disallows situations where the same symbol is d= eclared=0Awith non-extern linkage in two or more source files. For exampl= e,=0Aif a.c and b.c both have print_variable() as a local function not=0A= explicitly marked static, then the -fno-common binary will fail to=0Alink= . This can also commonly happen where two source files=0Adeclare a variab= le, either failing to declare it with static linkage=0Aor with extern lin= kage to resolve the ambiguity in dependent files.=0A=0AGentoo has a nice = wiki page about this:=0Ahttps://wiki.gentoo.org/wiki/Gcc_10_porting_notes= /fno_common=0A=0AThe mass rebuild will likely run this weekend, and any f= ailures will=0Abe reported over the next week.=0A=0AAriadne