Hi Parth -

I've heard from a few of the other developers and they'd
prefer to just always use '/' instead of '.' as the path
separator. Could you try doing that?

E.g.

linux64/gnu/arch-native/loc-flat/comm-gasnet/udp/everything/tasks-qthreads/
tmr-generic/mem-cstdlib/atomics-intrinsics/none/gmp/hwloc/re2/wide-struct/f
s-none




Thanks,

-michael

On 3/7/16, 11:32 AM, "Parth Thakkar" <[email protected]> wrote:

>Hello
>
>
>I had encountered an error while building the chapel compiler from
>source. On setting CHPL_COMM=gasnet and
>CHPL_TARGET_PLATFORM=native, the folder where the chpl-env-gen.h file was
>being stored ended up being too long for my OS. Following is the exact
>error message (relevant to the issue) I got:
>
>
>
>make[2]: stat: 
>/home/parth/chapel/chapel-1.12.0/runtime/src/gen/linux64.gnu.arch-native.l
>oc-flat.comm-gasnet.udp.everything.tasks-qthreads.tmr-generic.mem-cstdlib.
>atomics-intrinsics.none.gmp.hwloc.re2.wide-struct.fs-none/chpl-env-gen.h:
> File name too long
>
>
>
>The folder 
>linux64.gnu.arch-native.loc-flat.comm-gasnet.udp.everything.tasks-qthreads
>.tmr-generic.mem-cstdlib.atomics-intrinsics.none.gmp.hwloc.re2.wide-struct
>.fs-none is
> 171 characters long while on my OS (Ubuntu 14.04) NAME_MAX is 143
>because of ecryptfs.
>
>
>To fix this, I modified the printchplenv file (which was generating the
>name of folder). Summary of the change:
>
>
>
>I added an optional argument - `separator` to the print_var function in
>the printchplenv file. The default value of `separator` is '.'. In line
>202, I print the separator instead of the dot. So, when calling the
>print_var function from the print_mode function,
> at two places, I specify the separator as "/" and that solves the issue.
>I wasn't very particular about where I placed the "/", and added it at
>two locations:
>
>
> 
>
>
>1. before specifying the locale model
>2. before specifying the atomics
>
>
> 
>
>
>So the path looks like this:
>linux64.gnu.arch-native/loc-flat.comm-gasnet.udp.everything.tasks-qthreads
>.tmr-generic.mem-cstdlib/atomics-intrinsics.none.gmp.hwloc.re2.wide-struct
>.fs-none
>
>
> 
>This seems fine because the longest foldername in this is 74 bytes long.
>Maybe to be on a safer side we can add one more slash.
>
>
>It'd be nice if you could comment on this fix and let me know if there is
>a better way.
>
>
>
>Thanks
>Parth
>


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to