<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Eric, adding those flags worked. Thanks!
<div class="">Rob, yes, bug report from libressl matched with what I was getting. </div>
<div class=""><br class="">
</div>
<div class="">Can you please explain what was wrong? I installed the GNU compilers using Homebrew. I realize I should have used “brew link gcc5” or something, but instead, I went to /usr/local/bin and manually created the symlinks (gcc, gfortran, g++, etc)
 pointing to gcc-5, gfortran-5, etc. Did I miss something?</div>
<div class=""><br class="">
</div>
<div class="">I did not face this issue when I did the same thing (Homebrew gcc + compile MPICH + manual symlinks) on a Macbook. The only difference I see there is that the build is apple-darwin14.4.0.<br class="">
<div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Oct 30, 2015, at 8:57 AM, Eric A. Borisch <<a href="mailto:eborisch@gmail.com" class="">eborisch@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">You will need to add '-Wa,-q' for CFLAGS and CXXFLAGS for gcc* on<br class="">
Yosemite and above. This will use the clang assembler. (See man as)<br class="">
<br class="">
<plug>The MacPorts mpich package does this automatically when needed.</plug><br class="">
<br class="">
- Eric<br class="">
<br class="">
On Fri, Oct 30, 2015 at 10:13 AM, Rob Latham <<a href="mailto:robl@mcs.anl.gov" class="">robl@mcs.anl.gov</a>> wrote:<br class="">
<blockquote type="cite" class=""><br class="">
<br class="">
On 10/28/2015 12:46 PM, Ghosh, Debojyoti wrote:<br class="">
<blockquote type="cite" class=""><br class="">
Hi,<br class="">
<br class="">
I am getting a compilation error while trying to compile MPICH on my Mac<br class="">
desktop. I installed the latest GNU compilers using Homebrew.<br class="">
<br class="">
<blockquote type="cite" class="">gcc -v<br class="">
</blockquote>
Using built-in specs.<br class="">
COLLECT_GCC=gcc<br class="">
<br class="">
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/5.2.0/libexec/gcc/x86_64-apple-darwin14.5.0/5.2.0/lto-wrapper<br class="">
Target: x86_64-apple-darwin14.5.0<br class="">
Configured with: ../configure --build=x86_64-apple-darwin14.5.0<br class="">
--prefix=/usr/local/Cellar/gcc/5.2.0<br class="">
--libdir=/usr/local/Cellar/gcc/5.2.0/lib/gcc/5<br class="">
--enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5<br class="">
--with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr<br class="">
--with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl<br class="">
--with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking<br class="">
--enable-checking=release --enable-lto<br class="">
--with-build-config=bootstrap-debug --disable-werror<br class="">
--with-pkgversion='Homebrew gcc 5.2.0'<br class="">
--with-bugurl=<a href="https://github.com/Homebrew/homebrew/issues" class="">https://github.com/Homebrew/homebrew/issues</a><br class="">
--enable-plugin --disable-nls --enable-multilib<br class="">
Thread model: posix<br class="">
gcc version 5.2.0 (Homebrew gcc 5.2.0)<br class="">
</blockquote>
<br class="">
<br class="">
We test with gcc-5.2 on our mac build bots, so it's definitely possible.<br class="">
<br class="">
<blockquote type="cite" class="">I am getting the following error while compiling MPICH:<br class="">
  CC       src/mpltrmem.lo<br class="">
/var/folders/qf/q3tp7kgn0gz6qj5_c2nr4qqm001qq3/T//ccyirdXM.s:491:suffix<br class="">
or operands invalid for `movq'<br class="">
/var/folders/qf/q3tp7kgn0gz6qj5_c2nr4qqm001qq3/T//ccyirdXM.s:495:suffix<br class="">
or operands invalid for `movq'<br class="">
make[2]: *** [src/mpltrmem.lo] Error 1<br class="">
make[1]: *** [all-recursive] Error 1<br class="">
make: *** [all] Error 2<br class="">
</blockquote>
<br class="">
<br class="">
When the assembler is suspicous ('movq') then it sure seems like there's a<br class="">
toolchain mismatch.<br class="">
<br class="">
Does this bug report from libressl sound like your environment?<br class="">
<a href="https://github.com/libressl-portable/portable/issues/121" class="">https://github.com/libressl-portable/portable/issues/121</a><br class="">
<br class="">
==rob<br class="">
<br class="">
<br class="">
--<br class="">
Rob Latham<br class="">
Mathematics and Computer Science Division<br class="">
Argonne National Lab, IL USA<br class="">
_______________________________________________<br class="">
discuss mailing list     discuss@mpich.org<br class="">
To manage subscription options or unsubscribe:<br class="">
https://lists.mpich.org/mailman/listinfo/discuss<br class="">
</blockquote>
_______________________________________________<br class="">
discuss mailing list     <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>