Re: gcc12 will not build with multiple jobs

Scott Hannahs via Fink-devel <[email protected]> Mon, 12 Dec 2022 15:58:46 -0500
Newsgroups gmane.os.apple.fink.devel
Message-ID <[email protected]>
--===============4637629670343152519==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_DE1FF5CB-AD35-4308-ACAB-5F12893F00F8"


--Apple-Mail=_DE1FF5CB-AD35-4308-ACAB-5F12893F00F8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Ok, weirdness.  I could not get it to reproduce on my home machine after =
building with single job, and it has build correctly with multiple jobs =
enabled about 3 times after that.  I have a similar machine at work (ie =
Monterey 12.6.1)  and I tried to install gcc12 on that system.  This =
gave a different error.  My Xcode and command line versions agree.

checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC =
0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.
### execution of /tmp/fink.SqDfX failed, exit code 1
### execution of /tmp/fink.3lPCk failed, exit code 1
...
Also include the following system information:
Package manager version: 0.45.99.git
Distribution version: selfupdate-git Mon Dec 12 10:03:17 2022, 12.0, =
x86_64
Trees: local/injected local/main stable/main
Xcode.app: 14.1
Xcode command-line tools: 14.1.0.0.1.1666437224
Max. Fink build jobs:  12

Which seems to imply that my version of MPC < 0.8 or completely missing.
BUT, fink reports that I have libmpc3 installed.  Should it be libmpc2?? =
 Is the dependency in gcc12 wrong?  It claims dependency on libmpc3 >=3D =
1.0.3 which should be satisfied.

% fink list libmpc2 libmpc3
Information about 13595 packages read in 1 seconds.
     libmpc2                                         0.9-2               =
                Multi-precision complex lib
     libmpc2-shlibs                                  0.9-2               =
                Multi-precision complex lib
 i   libmpc3                                         1.3.0-1             =
                Multi-precision complex lib
 i   libmpc3-shlibs                                  1.3.0-1             =
                Multi-precision complex lib

The reference file has the correct version in it as expected: =
"/opt/sw/include/mpc.h"
/* Define MPC version number */
#define MPC_VERSION_MAJOR 1
#define MPC_VERSION_MINOR 3
#define MPC_VERSION_PATCHLEVEL 0
#define MPC_VERSION_STRING "1.3.0"

I haven=E2=80=99t tried building with a single process since that seems =
to permanently fix things for some bizarre reason.

-Scott


> On Dec 8, 2022, at 5:18 AM, [email protected] =
<mailto:[email protected]> wrote:
>=20
> Can you post the actual error you're getting? A gcc build should not =
be doing anything with `/opt/sw/bin/gawk` except running it for some =
string processing. And that should be thread independent.


--Apple-Mail=_DE1FF5CB-AD35-4308-ACAB-5F12893F00F8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><meta=
 http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D""><div class=3D"">Ok, =
weirdness. &nbsp;I could not get it to reproduce on my home machine =
after building with single job, and it has build correctly with multiple =
jobs enabled about 3 times after that. &nbsp;I have a similar machine at =
work (ie Monterey 12.6.1) &nbsp;and I tried to install gcc12 on that =
system. &nbsp;This gave a different error. &nbsp;My Xcode and command =
line versions agree.</div></div><div style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D""><br class=3D""></div></div><blockquote style=3D"margin: 0 0 0 =
40px; border: none; padding: 0px;" class=3D""><div style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D""><div class=3D""><font face=3D"Consolas" class=3D"">checking =
for the correct version of gmp.h... yes<br class=3D"">checking for the =
correct version of mpfr.h... yes<br class=3D""><b style=3D"" class=3D""><u=
 class=3D"">checking for the correct version of mpc.h... no</u></b><br =
class=3D"">configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ =
and MPC 0.8.0+.<br class=3D"">Try the --with-gmp, --with-mpfr and/or =
--with-mpc options to specify<br class=3D"">their =
locations.&nbsp;&nbsp;Source code for these libraries can be found at<br =
class=3D"">their respective hosting sites as well as at<br class=3D""><a =
href=3D"https://gcc.gnu.org/pub/gcc/infrastructure/" =
class=3D"">https://gcc.gnu.org/pub/gcc/infrastructure/</a>.&nbsp;&nbsp;See=
 also<br class=3D""><a =
href=3D"http://gcc.gnu.org/install/prerequisites.html" =
class=3D"">http://gcc.gnu.org/install/prerequisites.html</a> for =
additional info.&nbsp;&nbsp;If<br class=3D"">you obtained GMP, MPFR =
and/or MPC from a vendor distribution package,<br class=3D"">make sure =
that you have installed both the libraries and the header<br =
class=3D"">files.&nbsp;&nbsp;They may be located in separate =
packages.<br class=3D"">### execution of /tmp/fink.SqDfX failed, exit =
code 1<br class=3D"">### execution of /tmp/fink.3lPCk failed, exit code =
1<br class=3D""></font></div><div class=3D""><font face=3D"Consolas" =
class=3D"">...</font></div><div class=3D""><font face=3D"Consolas" =
class=3D"">Also include the following system information:<br =
class=3D"">Package manager version: 0.45.99.git<br class=3D"">Distribution=
 version: selfupdate-git Mon Dec 12 10:03:17 2022, 12.0, x86_64<br =
class=3D"">Trees: local/injected local/main stable/main<br =
class=3D"">Xcode.app: 14.1<br class=3D"">Xcode command-line tools: =
14.1.0.0.1.1666437224<br class=3D"">Max. Fink build =
jobs:&nbsp;&nbsp;12</font><br class=3D""></div></div></blockquote><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; line-break: =
after-white-space;" class=3D""><div class=3D""><br class=3D""></div><div =
class=3D"">Which seems to imply that my version of MPC &lt; 0.8 or =
completely missing.</div><div class=3D"">BUT, fink reports that I have =
libmpc3 installed. &nbsp;Should it be libmpc2?? &nbsp;Is the dependency =
in gcc12 wrong? &nbsp;It claims dependency on libmpc3 &gt;=3D 1.0.3 =
which should be satisfied.</div><div class=3D""><br =
class=3D""></div></div><blockquote style=3D"margin: 0 0 0 40px; border: =
none; padding: 0px;" class=3D""><div style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D""><font face=3D"Consolas" class=3D"">% fink list libmpc2 =
libmpc3<br class=3D"">Information about 13595 packages read in 1 =
seconds.<br class=3D"">&nbsp; &nbsp; &nbsp;libmpc2&nbsp;&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;&nbsp;0.9-2&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;&nbsp;Multi-precision complex lib<br class=3D"">&nbsp; &nbsp; =
&nbsp;libmpc2-shlibs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;&nbsp;0.9-2&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;&nbsp;Multi-precision complex lib<br =
class=3D"">&nbsp;i&nbsp;&nbsp;&nbsp;libmpc3&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;&nbsp;1.3.0-1&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;&nbsp;Multi-precision complex lib<br =
class=3D"">&nbsp;i&nbsp;&nbsp;&nbsp;libmpc3-shlibs&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;1.3.0-1&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;&nbsp;Multi-precision complex lib</font><br =
class=3D""></div></div></blockquote><div style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D""><br class=3D""></div><div class=3D"">The reference file has =
the correct version in it as expected: =
"/opt/sw/include/mpc.h"</div></div><blockquote style=3D"margin: 0 0 0 =
40px; border: none; padding: 0px;" class=3D""><div style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D""><div class=3D""><font face=3D"Consolas" class=3D"">/* Define =
MPC version number */<br class=3D"">#define MPC_VERSION_MAJOR 1<br =
class=3D"">#define MPC_VERSION_MINOR 3<br class=3D"">#define =
MPC_VERSION_PATCHLEVEL 0<br class=3D"">#define MPC_VERSION_STRING =
"1.3.0"</font></div></div></blockquote><div style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D""><div class=3D""><br class=3D""></div><div class=3D"">I =
haven=E2=80=99t tried building with a single process since that seems to =
permanently fix things for some bizarre reason.</div><div class=3D""><br =
class=3D""></div><div class=3D"">-Scott</div><div class=3D""><br =
class=3D""><div class=3D""><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D"">On Dec 8, 2022, at 5:18 AM, <a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a> wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: LucidaGrande; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: 400; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">Can you post =
the actual error you're getting? A gcc build should not be doing =
anything with `/opt/sw/bin/gawk` except running it for some string =
processing. And that should be thread independent.</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: LucidaGrande; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: 400; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""></div></blockquote></div><br =
class=3D""></div></div></body></html>=

--Apple-Mail=_DE1FF5CB-AD35-4308-ACAB-5F12893F00F8--


--===============4637629670343152519==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4637629670343152519==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
--===============4637629670343152519==--