This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
powerpc build failure with GCC mainline -fno-common change
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: <tuliom at linux dot ibm dot com>
- Date: Thu, 21 Nov 2019 01:19:08 +0000
- Subject: powerpc build failure with GCC mainline -fno-common change
- Ironport-sdr: RjgP9zcjO9PtJiHoK1DYNCfnEARl95tkhcyOSmpxx+gsmidq6Vudh6GYrs6ssoM/ilVB7kQyl3 nXz74wLA+ZcF6otzvpq0vf6fN1u705NK4JvUFF95eqBZHBsH6i4W94g8z0rYRnLbzpaN5mP7eI KVkeRrXnw3+EGBxmA7ZQcGxWbVymkH45B9WXLMMgCwwErH2TMCaNmhVczrU6+nGbTSomN3DHeX 72wIEM5OgC9kx/eYkoaPGW6Xiyh4imHQ43iW7DVxOsN+Z99msQr+7lCC06EAJQid58AQp9teNh Vdc=
- Ironport-sdr: 2ovZNYBCCG8u1tu6ij/xGXyKhq+bUIqqrXQNJ1jMB/MW87lNLlgJyled+jgkBylC3qnSyXh2sk KZqHKDkWiBIbONwnL4Xrs2cww/lzjEU/dFFAlrDZsJ81jWV4C5QQ1Li3Tje188zpj3GYLxvjXd VvFN9leh59DCBJ3t5Cn6KEfPk8wH2mfdoyCm5mrM2pP5gKGj5UOWdWpDCRAzt+/MF79PImzoWu fbkmrKXhw6fKiZcW7Fk8PnhK34FdCrGSCayDbwzZypCkyBFE+2gxyd9h2/7ixqDAV4HiMhJ+Y8 t+Q=
glibc for powerpc configurations is failing to build with GCC mainline
after the switch to -fno-common by default. The error is multiple
definitions of __cache_line_size linking sln, in dl-sysdep.c and
libc-start.c.
https://sourceware.org/ml/libc-testresults/2019-q4/msg00237.html
As I see it, there are two obvious possible fixes: either use
__attribute__ ((common)) on both definitions, or change one of them to an
extern declaration if SHARED is not defined. Any comments on what would
be the better fix?
--
Joseph S. Myers
joseph@codesourcery.com