[GHC] #9697: ./configure fails due to obselete usage of 'find -perm' in aclocal.m4

#9697: ./configure fails due to obselete usage of 'find -perm' in aclocal.m4 -------------------------------------+------------------------------------- Reporter: nich | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.3 Keywords: aclocal.m4 find | Operating System: perm | Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: Building Difficulty: Easy (less than 1 | GHC failed hour) | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- ./configure produces error message when building on current Fedora (20). According to find ver 4.5.11 the usage '-perm +XXX' has been deprecated since 2005 (use '-perm \XXX' instead). The message '/usr/bin/find: invalid mode '+111' ' is seen several times as a result. Whether this has any material impact I am not qualified to judge. I am actually trying to build HaLVM (from Galois) and first noticed the issue in their fork of GHC. However, this behaviour is also present in git HEAD (commit d7867810d5ffd08c77c30e928bb3dca21beae0b9). Making the obvious one line change in aclocal.m4 resolves the issue, and produces a clean build, for me at least. Patch attached -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9697 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9697: ./configure fails due to obselete usage of 'find -perm' in aclocal.m4 -------------------------------------+------------------------------------- Reporter: nich | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build | Version: 7.8.3 System | Keywords: aclocal.m4 find Resolution: | perm Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Easy (less than 1 Type of failure: Building | hour) GHC failed | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by thomie): The patch changes `\111` to `+111`, which is opposite of what the description says should happen. Can you verify it works for `ghc master`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9697#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9697: ./configure fails due to obselete usage of 'find -perm' in aclocal.m4 -------------------------------------+------------------------------------- Reporter: nich | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build | Version: 7.8.3 System | Keywords: aclocal.m4 find Resolution: | perm Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Easy (less than 1 Type of failure: Building | hour) GHC failed | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by nich): Apologies, I diff'ed two commits in the wrong a/b order. I confirm it works for 'ghc master', though as the change is specific to LLVM targets which I don't use, it obviously needs a little more validation. I'll attach the correct diff. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9697#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9697: ./configure fails due to obselete usage of 'find -perm' in aclocal.m4 -------------------------------------+------------------------------------- Reporter: nich | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Build | Version: 7.8.3 System | Keywords: aclocal.m4 find Resolution: | perm Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Easy (less than 1 Type of failure: Building | hour) GHC failed | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9697#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9697: ./configure fails due to obselete usage of 'find -perm' in aclocal.m4
-------------------------------------+-------------------------------------
Reporter: nich | Owner:
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Build | Version: 7.8.3
System | Keywords: aclocal.m4 find
Resolution: | perm
Operating System: | Architecture: Unknown/Multiple
Unknown/Multiple | Difficulty: Easy (less than 1
Type of failure: Building | hour)
GHC failed | Blocked By:
Test Case: | Related Tickets:
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#9697: ./configure fails due to obselete usage of 'find -perm' in aclocal.m4 -------------------------------------+------------------------------------- Reporter: nich | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.3 System | Keywords: aclocal.m4 find Resolution: fixed | perm Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Easy (less than 1 Type of failure: Building | hour) GHC failed | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed * milestone: => 7.10.1 Comment: Merged, thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9697#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9697: ./configure fails due to obselete usage of 'find -perm' in aclocal.m4
-------------------------------------+-------------------------------------
Reporter: nich | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.10.1
Component: Build System | Version: 7.8.3
Resolution: fixed | Keywords: aclocal.m4
Operating System: Unknown/Multiple | find perm
Type of failure: Building GHC | Architecture:
failed | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by Austin Seipp
participants (1)
-
GHC