<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto"><font face="PingFang SC, sans-serif" style="font-size: 18px;">Hi Ken,</font></div>
<font face="PingFang SC, sans-serif" style="font-size: 18px;"></font>
<div dir="auto"><font face="PingFang SC, sans-serif" style="font-size: 18px;"><font face="PingFang SC, sans-serif" style="font-size: 18px;"><br /></font></font></div>
<font face="PingFang SC, sans-serif" style="font-size: 18px;">Great, it works for me. Thank you so much!</font>
<div dir="auto"><font face="PingFang SC, sans-serif" style="font-size: 18px;"><br /></font></div>
<div dir="auto"><font face="PingFang SC, sans-serif" style="font-size: 18px;">Songchen</font></div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont"><span style="caret-color: rgb(39, 39, 40);">Songchen Tan 10292504</span><br style="caret-color: rgb(39, 39, 40);" />
<span style="caret-color: rgb(39, 39, 40);">College of Chemistry, University of California, Berkeley 97420, U. S. A.</span><br style="caret-color: rgb(39, 39, 40);" />
<span style="caret-color: rgb(39, 39, 40);">Email: tansongchen@berkeley.edu</span><br style="caret-color: rgb(39, 39, 40);" />
<span style="caret-color: rgb(39, 39, 40);">Cell: (+86)13501382788</span></div>
</div>
<div name="messageReplySection">在 2020年1月28日 +0800 23:43,Raffenetti, Kenneth J. via discuss <discuss@mpich.org>,写道:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">My mistake. The correct way to disable is to use an empty string.<br />
<br />
./configure pac_cv_tls=""<br />
<br />
Ken<br />
<br />
On 1/27/20 10:12 PM, Songchen Tan via discuss wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">Hi Ken,<br />
<br />
I tried this, but still getting an error:<br />
<br />
In file included from ./src/include/mpiimpl.h(214),<br />
<br />
from src/mpi/attr/attr_delete.c(8):<br />
<br />
./src/include/mpir_thread.h(77): error: identifier "none" is undefined<br />
<br />
extern MPL_TLS MPIR_Per_thread_t MPIR_Per_thread;<br />
<br />
^<br />
<br />
<br />
In file included from ./src/include/mpiimpl.h(214),<br />
<br />
from src/mpi/attr/attr_delete.c(8):<br />
<br />
./src/include/mpir_thread.h(77): error: "MPIR_Per_thread_t" has already<br />
been declared in the current scope<br />
<br />
extern MPL_TLS MPIR_Per_thread_t MPIR_Per_thread;<br />
<br />
^<br />
<br />
<br />
In file included from ./src/include/mpiimpl.h(214),<br />
<br />
from src/mpi/attr/attr_delete.c(8):<br />
<br />
./src/include/mpir_thread.h(77): error: expected a ";"<br />
<br />
extern MPL_TLS MPIR_Per_thread_t MPIR_Per_thread;<br />
<br />
<br />
It seems that “none” is not a good value of this variable.<br />
<br />
Sincerely yours,<br />
Songchen<br />
<br />
<br />
Songchen Tan 10292504<br />
College of Chemistry, University of California, Berkeley 97420, U. S. A.<br />
Email: tansongchen@berkeley.edu<br />
Cell: (+86)13501382788<br />
在 2020年1月28日 +0800 10:31,Raffenetti, Kenneth J. via discuss<br />
<discuss@mpich.org>,写道:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #3498db;">We identified this as an Intel compiler issue and added a workaround in<br />
https://github.com/pmodels/mpich/commit/59fd76de45bb4c5bfeff08883c4a37990522e66c<br />
to address it, but your report indicates it is still an issue.<br />
Unfortunately I do not have access to Intel compilers for macOS at the<br />
moment to test another fix.<br />
<br />
You can disable thread-local storage entirely in order to build with the<br />
configure option below. Note this may have negative performance<br />
implications for multi-threaded applications.<br />
<br />
./configure pac_cv_tls=none [...]<br />
<br />
Ken<br />
<br />
On 1/27/20 3:48 PM, Songchen Tan via discuss wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #d35400;">Hi Ken,<br />
<br />
No problem, it is attached.<br />
<br />
By the way, I also tried again on macOS 10.14, it failed due to the same<br />
reason, so it is unlikely that the problem is related to macOS 10.15.<br />
<br />
Sincerely yours,<br />
Songchen<br />
<br />
Songchen Tan 10292504<br />
College of Chemistry, University of California, Berkeley 97420, U. S. A.<br />
Email: tansongchen@berkeley.edu<br />
Cell: (+86)13501382788<br />
在 2020年1月28日 +0800 03:57,Raffenetti, Kenneth J. via discuss<br />
<discuss@mpich.org>,写道:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #34495e;">Can you also send along src/mpl/config.log from your build directory?<br />
<br />
Ken<br />
<br />
On 1/27/20 11:57 AM, Songchen Tan via discuss wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #2ecc71;">Dear Developers,<br />
<br />
I am Songchen Tan at UC Berkeley, recently I am trying to use MPICH on<br />
macOS 10.15. Though binaries via homebrew is available, I would like to<br />
build from source in order to configure it with Intel compilers (icc,<br />
icpc and ifort).<br />
<br />
To reproduce the problem:<br />
<br />
1. Download the source in ~/Applications/;<br />
2. Unzip with `tar -xvzf mpich-3.3.2.tar.gz`, then `cd mpich-3.3.2`;<br />
3. Run `./configure --prefix=/usr/local/Cellar/mpich/3.3.2 CC=icc<br />
CXX=icpc F77=ifort FC=ifort 2>&1 | tee c.txt`;<br />
4. Build with `make VERBOSE=1 2>&1 | tee m.txt`.<br />
5. Then I am noticed: `Undefined symbols for architecture<br />
x86_64: “__ZTHMPIR_Per_thread”`.<br />
<br />
<br />
The generated `c.txt` and `m.txt` is attached. Thank you so much for<br />
your help.<br />
<br />
Sincerely yours,<br />
Songchen<br />
<br />
Songchen Tan 10292504<br />
College of Chemistry, University of California, Berkeley 97420, U.<br />
S. A.<br />
Email: tansongchen@berkeley.edu<br />
Cell: (+86)13501382788<br />
<br />
_______________________________________________<br />
discuss mailing list discuss@mpich.org<br />
To manage subscription options or unsubscribe:<br />
https://lists.mpich.org/mailman/listinfo/discuss<br />
<br /></blockquote>
_______________________________________________<br />
discuss mailing list discuss@mpich.org<br />
To manage subscription options or unsubscribe:<br />
https://lists.mpich.org/mailman/listinfo/discuss<br /></blockquote>
<br />
_______________________________________________<br />
discuss mailing list discuss@mpich.org<br />
To manage subscription options or unsubscribe:<br />
https://lists.mpich.org/mailman/listinfo/discuss<br />
<br /></blockquote>
_______________________________________________<br />
discuss mailing list discuss@mpich.org<br />
To manage subscription options or unsubscribe:<br />
https://lists.mpich.org/mailman/listinfo/discuss<br /></blockquote>
<br />
_______________________________________________<br />
discuss mailing list discuss@mpich.org<br />
To manage subscription options or unsubscribe:<br />
https://lists.mpich.org/mailman/listinfo/discuss<br />
<br /></blockquote>
_______________________________________________<br />
discuss mailing list discuss@mpich.org<br />
To manage subscription options or unsubscribe:<br />
https://lists.mpich.org/mailman/listinfo/discuss<br /></blockquote>
</div>
</body>
</html>