[ExM Users] Turbine build failed

Tim Armstrong tim.g.armstrong at gmail.com
Mon Sep 8 14:50:06 CDT 2014


Thanks, looks like we need to improve our clang compatibilty.

- Tim

On Mon, Sep 8, 2014 at 2:33 PM, Ozik, Jonathan <jozik at anl.gov> wrote:

>  Modifying --export-dynamic to -export_dynamic in turbine/Makefile.in
> fixed the issue. Now turbine builds.
>
>  On Sep 8, 2014, at 1:58 PM, Ozik, Jonathan <jozik at anl.gov> wrote:
>
>  Thanks Tim,
>
>  The build now progresses farther, but fails with:
> ...
> ld: unknown option: --export-dynamic
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make: *** [src/executables/turbine_sh] Error 1
> exm-setup.zsh: turbine: build FAILED
>
>  Jonathan
>
>  On Sep 8, 2014, at 1:48 PM, Tim Armstrong <tim.g.armstrong at gmail.com>
> wrote:
>
>  Ah right, there was another OS X compatibility change that didn't make
> it into release 0.6.2.
>
> In turbine/scripts/mkstatic/files2arrays_mkhdr.sh :
>
> filenames=()
>  for file in "$@"
>  do
> +  sed_pattern='^.*\/\*FILE2ARRAY:\([a-zA-Z_0-9]*\):\(.*\)\*\/.*$'
> +
>    # Extract array name from FILE2ARRAY comment
> -  arrname=$(sed -rn
> 's/^.*\/\*FILE2ARRAY:([a-zA-Z_0-9]*):(.*)\*\/.*$/\1/p' $file)
> +  arrname=$(sed -n "s/${sed_pattern}/\1/p" $file)
>    if [ -z "$arrname" ]; then
>      echo "Could not extract array name from $file" >&2
>      exit 1
>    fi
>    arrnames=( "${arrnames[@]}" "${arrname}" )
> -  filename=$(sed -rn
> 's/^.*\/\*FILE2ARRAY:([a-zA-Z_0-9]*):(.*)\*\/.*$/\2/p' $file)
> +  filename=$(sed -n "s/${sed_pattern}/\2/p" $file)
>    if [ -z "$filename" ]; then
>      echo "Could not extract file name from $file"  >&2
>      exit 1
>
>
> On Mon, Sep 8, 2014 at 1:11 PM, Ozik, Jonathan <jozik at anl.gov> wrote:
>
>> Tim,
>>
>>  Here’s the output of the command:
>> 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
>> /*FILE2ARRAY:var:/usr/local/Cellar/tcl-tk/8.6.1/lib/tcl8.6/init.tcl*/
>> #include <stddef.h>
>>
>> static const char var[] = {
>> usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
>>        mktemp [-d] [-q] [-u] -t prefix
>>
>>  After the modification it looks like the array is generated.
>> Trying to build with that modification results with the original errors
>> not appearing but the build fails:
>> ...
>> sed: illegal option -- r
>> usage: sed script [-Ealn] [-i extension] [file ...]
>>        sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...
>> [file ...]
>> exm-setup.zsh: turbine: build FAILED
>>
>>  Jonathan
>>
>>  On Sep 8, 2014, at 12:58 PM, Tim Armstrong <tim.g.armstrong at gmail.com>
>> wrote:
>>
>>   If you have a chance, could you try running this command from the
>> unpacked tarball directory and seeing what the output is:
>>
>>   ./turbine/scripts/mkstatic/file2array.sh -v var -m "static const"
>> /usr/local/Cellar/tcl-tk/8.6.1/lib/tcl8.6/init.tcl
>>
>>  If you get something about "mktemp", you could try making this change
>> to ./turbine/scripts/mkstatic/file2array.sh:
>>
>> -data=$(mktemp)
>> +data=$(mktemp -t FILE2ARRAY)
>>
>>
>>  Justin, it looks like the fix from -r13616 isn't in the 0.6.2 release.
>>
>>  - Tim
>>
>> On Mon, Sep 8, 2014 at 12:12 PM, Justin M Wozniak <wozniak at mcs.anl.gov>
>> wrote:
>>
>>> Hi
>>>     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
>>> .)
>>>     Justin
>>>
>>>
>>> On 09/08/2014 12:05 PM, Ozik, Jonathan wrote:
>>>
>>>> Hello all,
>>>>
>>>> I’m trying to set up a local installation of Swift/T on Mac OS X.
>>>> Following the instructions in the user guide (
>>>> http://swift-lang.org/Swift-T/guide.html#_installation) and
>>>> downloading the latest stable version (http://swift-lang.org/Swift-
>>>> T/downloads/exm-0.6.1.tar.gz) 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:
>>>> mkstatic: error: could not convert tcl file
>>>> /usr/local/Cellar/tcl-tk/8.6.1/lib/tcl8.6/init.tcl to C array
>>>>
>>>> If you have any insight as to what is causing the build fail or can
>>>> suggest some things to try I’d appreciate it.
>>>>
>>>> Jonathan
>>>>
>>>>
>>>> _______________________________________________
>>>> ExM-user mailing list
>>>> ExM-user at lists.mcs.anl.gov
>>>> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>>>>
>>>
>>>
>>>  --
>>> Justin M Wozniak
>>>
>>>
>>> _______________________________________________
>>> ExM-user mailing list
>>> ExM-user at lists.mcs.anl.gov
>>> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>>>
>>
>>
>>
>
>  _______________________________________________
> ExM-user mailing list
> ExM-user at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140908/f4162a79/attachment-0001.html>


More information about the ExM-user mailing list