Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F08D1200B66 for ; Thu, 18 Aug 2016 19:32:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EF0DB160AAE; Thu, 18 Aug 2016 17:32:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3F8C2160A86 for ; Thu, 18 Aug 2016 19:32:22 +0200 (CEST) Received: (qmail 16290 invoked by uid 500); 18 Aug 2016 17:32:21 -0000 Mailing-List: contact notifications-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list notifications@groovy.apache.org Received: (qmail 16279 invoked by uid 99); 18 Aug 2016 17:32:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 17:32:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 4C0E82C02A1 for ; Thu, 18 Aug 2016 17:32:21 +0000 (UTC) Date: Thu, 18 Aug 2016 17:32:21 +0000 (UTC) From: =?utf-8?Q?Stef=C3=A1n_Freyr_Stef=C3=A1nsson_=28JIRA=29?= To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GROOVY-7166) Can't build Groovy project due to too long file name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 Aug 2016 17:32:23 -0000 [ https://issues.apache.org/jira/browse/GROOVY-7166?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D154= 26854#comment-15426854 ]=20 Stef=C3=A1n Freyr Stef=C3=A1nsson commented on GROOVY-7166: ------------------------------------------------- There is quite some time since this was reported but in case anyone stumble= s in here (as I did) I'd like to add that this may have been due to ecryptf= s. Groovyc seems to be generating filenames that are too long for the 143 c= haracter max limitation of that. For more info see: https://bugs.launchpad.net/ecryptfs/+bug/344878 I had this problem when trying to compile the IntelliJ IDEA community proje= ct. When I moved the directory out of my (encrypted) home directory, I was = able to compile it. The problem here seems to be that groovyc is not querying the filesystem fo= r the max filename lenght. As mentioned in the above ecryptfs bug report, g= roovyc should be using the statfs() syscall to query for the max filename l= ength which will be correctly reported as 143 by ecryptfs filesystems and s= hould take actions accordingly if generated files exceed that limit. > Can't build Groovy project due to too long file name > ---------------------------------------------------- > > Key: GROOVY-7166 > URL: https://issues.apache.org/jira/browse/GROOVY-7166 > Project: Groovy > Issue Type: Bug > Affects Versions: 2.3.7 > Reporter: Marcin Grzejszczak > Priority: Minor > > When I clone groovy-core and execute=20 > {noformat} > ./gradlew clean test > {noformat} > I get: > {noformat} > :compileTestGroovy > warning: [options] bootstrap class path not set in conjunction with -sour= ce 1.6 > Note: Some input files use or override a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Note: Some input files use unchecked or unsafe operations. > Note: Recompile with -Xlint:unchecked for details. > 1 warning > startup failed: > /home/marcin/repo/groovy-fork/target/test-classes/org/codehaus/groovy/ast= /builder/AstBuilderFromSpecificationTest$_testSwitchAndCaseAndBreakStatemen= ts_closure31_closure120_closure124_closure128_closure129_closure130_closure= 131.class (File name too long) > /home/marcin/repo/groovy-fork/target/test-classes/org/codehaus/groovy/ast= /builder/AstBuilderFromSpecificationTest$_testForStatementAndClosureListExp= ression_closure36_closure154_closure156_closure160_closure161_closure162.cl= ass (File name too long) > {noformat} > Executed with JDK7 and JDK8. On Linux Mint. > _uname -a_ execution result: > {noformat} = =20 > Linux someName 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 20= 14 x86_64 x86_64 x86_64 GNU/Linux > {noformat} > A workaround is to move the repository to another folder to shorten the p= ath. -- This message was sent by Atlassian JIRA (v6.3.4#6332)