Hi - For others reading, Parth gathered the following information:
* system is Ubuntu 14.04 LTS * has admin access * PATH_MAX is 4096 * NAME_MAX is 143 Note that the length of the folder name is 143. Oddly, cd'ing to the directory containing the folder allows a stat to work. Parth, here are my thoughts on this matter. I think this is a "feature" of eCryptfs. Assuming you are using eCryptfs. See https://bugs.launchpad.net/ecryptfs/+bug/1018050 I think it would be possible to adjust our Makefiles to split directories like 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 into multiple subdirectories, for the sole purpose of being < 143 characters. I'm not sure if we should do this differently on systems with this lower NAME_MAX or not. The long name in question is generated by a Python script: ./util/printchplenv --runtime One idea would be to adjust printchplenv to sometimes use '/' instead of '.' to separate these components (although I don't think we want a zillion tiny directories... so perhaps only replacing 1 or 2 . with / is appropriate). I'd bet that there will be a few places where Makefiles need to call mkdir -p instead of just mkdir, but other than that, it would probably work. Are you up for trying such a fix? Thanks, -michael On 3/3/16, 9:41 AM, "Michael Ferguson" <[email protected]> wrote: >Hi Parth - > >This does sound like a frustrating problem. Could you tell >us more about the system on which your are trying to build Chapel? >I can see that it was detected as linux64 - but which distribution? >Is it a system that you have admin access to? What filesystem >is /home/parth/chapel using? > >I haven't ever heard of a filesystem with a maximum path >length less than 255, and the path giving you an error is >about 220 characters long. (Except for very old filesystems, >the max file/dir name can usually be up to 255 bytes long). > >There is a command that should report these limits. Try: > > getconf NAME_MAX /home/parth/chapel > getconf PATH_MAX /home/parth/chapel > >Thanks, > >-michael > >On 3/3/16, 9:28 AM, "Parth Thakkar" <[email protected]> wrote: > >>I tried building the chapel compiler on my local machine as per the >>instructions given >>here <http://chapel.cray.com/docs/1.12/usingchapel/building.html>. The >>build worked fine, but I discovered later that to use multiple locales, >>we've to set CHPL_COMM to gasnet. On doing that, (along with setting >>CHPL_TARGET_ARCH=native), the build >> fails. The relevant error message is shown below: >> >> >> >>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 >>mkdir: cannot create directory >>Œ/home/parth/chapel/chapel-1.12.0/runtime/src/gen/linux64.gnu.arch-native >>. >>loc-flat.comm-gasnet.udp.everything.tasks-qthreads.tmr-generic.mem-cstdli >>b >>.atomics-intrinsics.none.gmp.hwloc.re2.wide-struct.fs-none¹: File name >>too long >>make[2]: *** >>[/home/parth/chapel/chapel-1.12.0/runtime/src/gen/linux64.gnu.arch-native >>. >>loc-flat.comm-gasnet.udp.everything.tasks-qthreads.tmr-generic.mem-cstdli >>b >>.atomics-intrinsics.none.gmp.hwloc.re2.wide-struct.fs-none/chpl-env-gen.h >>] >> Error 1 >>make[1]: *** [runtime] Error 2 >>make: *** [comprt] Error 2 >> >> >> >> >>I tried changing the installation location but that didn't help - the >>pathname was still too long, and I can't reduce it further >>(/home/parth/chapel/). What can be done? >> >> >>Regards >>Parth Thakkar >> > > >-------------------------------------------------------------------------- >---- >Site24x7 APM Insight: Get Deep Visibility into Application Performance >APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >Monitor end-to-end web transactions and take corrective actions now >Troubleshoot faster and improve end-user experience. Signup Now! >http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 >_______________________________________________ >Chapel-bugs mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/chapel-bugs ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Chapel-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-bugs
