<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Modifying --export-dynamic to -export_dynamic in turbine/Makefile.in fixed the issue. Now turbine builds.
<div><br>
<div>
<div>On Sep 8, 2014, at 1:58 PM, Ozik, Jonathan <<a href="mailto:jozik@anl.gov">jozik@anl.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Thanks Tim,
<div><br>
</div>
<div>The build now progresses farther, but fails with:</div>
<div>...</div>
<div>ld: unknown option: --export-dynamic<br>
clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
make: *** [src/executables/turbine_sh] Error 1<br>
exm-setup.zsh: turbine: build FAILED</div>
<div><br>
</div>
<div>Jonathan</div>
<div><br>
<div>
<div>On Sep 8, 2014, at 1:48 PM, Tim Armstrong <<a href="mailto:tim.g.armstrong@gmail.com">tim.g.armstrong@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Ah right, there was another OS X compatibility change that didn't make it into release 0.6.2.<br>
<br>
In turbine/scripts/mkstatic/files2arrays_mkhdr.sh :<br>
<br>
filenames=()<br>
<div> for file in "$@"<br>
 do<br>
+  sed_pattern='^.*\/\*FILE2ARRAY:\([a-zA-Z_0-9]*\):\(.*\)\*\/.*$'<br>
+<br>
   # Extract array name from FILE2ARRAY comment<br>
-  arrname=$(sed -rn 's/^.*\/\*FILE2ARRAY:([a-zA-Z_0-9]*):(.*)\*\/.*$/\1/p' $file)<br>
+  arrname=$(sed -n "s/${sed_pattern}/\1/p" $file)<br>
   if [ -z "$arrname" ]; then<br>
     echo "Could not extract array name from $file" >&2<br>
     exit 1<br>
   fi<br>
   arrnames=( "${arrnames[@]}" "${arrname}" )<br>
-  filename=$(sed -rn 's/^.*\/\*FILE2ARRAY:([a-zA-Z_0-9]*):(.*)\*\/.*$/\2/p' $file)<br>
+  filename=$(sed -n "s/${sed_pattern}/\2/p" $file)<br>
   if [ -z "$filename" ]; then<br>
     echo "Could not extract file name from $file"  >&2<br>
     exit 1<br>
<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Sep 8, 2014 at 1:11 PM, Ozik, Jonathan <span dir="ltr">
<<a href="mailto:jozik@anl.gov" target="_blank">jozik@anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Tim,
<div><br>
</div>
<div>Here’s the output of the command:</div>
<div>csi345650:exm-0.6.1 jozik$ ./turbine/scripts/mkstatic/file2array.sh -v var -m "static const"  /usr/local/Cellar/tcl-tk/8.6.1/lib/tcl8.6/init.tcl<br>
/*FILE2ARRAY:var:/usr/local/Cellar/tcl-tk/8.6.1/lib/tcl8.6/init.tcl*/<br>
#include <stddef.h><br>
<br>
static const char var[] = {<br>
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...<br>
       mktemp [-d] [-q] [-u] -t prefix </div>
<div><br>
</div>
<div>After the modification it looks like the array is generated.</div>
<div>Trying to build with that modification results with the original errors not appearing but the build fails:</div>
<div>...</div>
<div>sed: illegal option -- r<br>
usage: sed script [-Ealn] [-i extension] [file ...]<br>
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]<br>
exm-setup.zsh: turbine: build FAILED</div>
<span class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div>Jonathan</div>
</font></span>
<div>
<div class="h5">
<div><br>
<div>
<div>On Sep 8, 2014, at 12:58 PM, Tim Armstrong <<a href="mailto:tim.g.armstrong@gmail.com" target="_blank">tim.g.armstrong@gmail.com</a>> wrote:</div>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>If you have a chance, could you try running this command from the unpacked tarball directory and seeing what the output is:<br>
<br>
  ./turbine/scripts/mkstatic/file2array.sh -v var -m "static const"  /usr/local/Cellar/tcl-tk/8.6.1/lib/tcl8.6/init.tcl<br>
<br>
</div>
<div>If you get something about "mktemp", you could try making this change to ./turbine/scripts/mkstatic/file2array.sh:<br>
<br>
-data=$(mktemp)<br>
+data=$(mktemp -t FILE2ARRAY)<br>
</div>
<div><br>
  <br>
</div>
Justin, it looks like the fix from -r13616 isn't in the 0.6.2 release.<br>
<br>
</div>
- Tim<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Sep 8, 2014 at 12:12 PM, Justin M Wozniak <span dir="ltr">
<<a href="mailto:wozniak@mcs.anl.gov" target="_blank">wozniak@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
    I have not seen that error.  Can you configure Turbine to build with --disable-static-pkg and try again?  (You do this by editing exm-setup.zsh .)<br>
    Justin
<div>
<div><br>
<br>
On 09/08/2014 12:05 PM, Ozik, Jonathan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
<br>
I’m trying to set up a local installation of Swift/T on Mac OS X. Following the instructions in the user guide (<a href="http://swift-lang.org/Swift-T/guide.html#_installation" target="_blank">http://swift-lang.org/Swift-<u></u>T/guide.html#_installation</a>)
 and downloading the latest stable version (<a href="http://swift-lang.org/Swift-T/downloads/exm-0.6.1.tar.gz" target="_blank">http://swift-lang.org/Swift-<u></u>T/downloads/exm-0.6.1.tar.gz</a>) I’ve gotten the c-utils and lb building with only the EXM_PREFIX
 line modified in exm-settings.sh but I’m getting a build failed error on the turbine build. The only errors that are showing up are 2 instances of:<br>
mkstatic: error: could not convert tcl file /usr/local/Cellar/tcl-tk/8.6.<u></u>1/lib/tcl8.6/init.tcl to C array<br>
<br>
If you have any insight as to what is causing the build fail or can suggest some things to try I’d appreciate it.<br>
<br>
Jonathan<br>
<br>
<br>
______________________________<u></u>_________________<br>
ExM-user mailing list<br>
<a href="mailto:ExM-user@lists.mcs.anl.gov" target="_blank">ExM-user@lists.mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/exm-user</a><br>
</blockquote>
<br>
<br>
</div>
</div>
<span><font color="#888888">-- <br>
Justin M Wozniak</font></span>
<div>
<div><br>
<br>
______________________________<u></u>_________________<br>
ExM-user mailing list<br>
<a href="mailto:ExM-user@lists.mcs.anl.gov" target="_blank">ExM-user@lists.mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/exm-user</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
ExM-user mailing list<br>
<a href="mailto:ExM-user@lists.mcs.anl.gov">ExM-user@lists.mcs.anl.gov</a><br>
https://lists.mcs.anl.gov/mailman/listinfo/exm-user<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>