Quantcast

[GHC] #5914: armhf build fails in Ubuntu (7.4.1)

classic Classic list List threaded Threaded
13 messages Options
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
#5914: armhf build fails in Ubuntu (7.4.1)
------------------------------+---------------------------------------------
 Reporter:  jani@…            |          Owner:                  
     Type:  bug               |         Status:  new            
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.1             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 The ARM code generator calls llc in the same way regardless of the ABI
 being used. When the hardfloat EABI variant is in use - armhf in
 Debian/Ubuntu, llc needs to be passed -float-abi=hard.
 This may mean the build scripts need to detect armel vs armhf and have a
 config option snippet in
 compiler/main/DriverPipeline.hs
 I made a successful build on armhf by just piggybacking it to check it
 works.

  else if (elem VFPv3D16 ext)
 -                                           then ["-mattr=+v7,+vfp3"]
 +                                           then ["-mattr=+v7,+vfp3,
 "-float-abi=hard"]

 BTW for Debian/Ubuntu we will need +d16 passed there, but it is not
 strictly related to the build failure on armhf.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
#5914: armhf build fails in Ubuntu (7.4.1)
---------------------------------+------------------------------------------
 Reporter:  jani@…               |          Owner:  dterei        
     Type:  bug                  |         Status:  new            
 Priority:  normal               |      Component:  Compiler (LLVM)
  Version:  7.4.1                |       Keywords:                
       Os:  Linux                |   Architecture:  arm            
  Failure:  Building GHC failed  |       Testcase:                
Blockedby:                       |       Blocking:                
  Related:                       |  
---------------------------------+------------------------------------------
Changes (by jani@…):

  * owner:  => dterei
  * failure:  None/Unknown => Building GHC failed
  * os:  Unknown/Multiple => Linux
  * component:  Compiler => Compiler (LLVM)
  * architecture:  Unknown/Multiple => arm


--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
---------------------------------+------------------------------------------
 Reporter:  jani@…               |          Owner:  kgardas        
     Type:  bug                  |         Status:  new            
 Priority:  normal               |      Component:  Compiler (LLVM)
  Version:  7.4.1                |       Keywords:                
       Os:  Linux                |   Architecture:  arm            
  Failure:  Building GHC failed  |       Testcase:                
Blockedby:                       |       Blocking:                
  Related:                       |  
---------------------------------+------------------------------------------
Changes (by dterei):

  * owner:  dterei => kgardas


Comment:

 Re-assigning as ARM stuff isn't handled by me.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
---------------------------------+------------------------------------------
 Reporter:  jani@…               |          Owner:  kgardas        
     Type:  bug                  |         Status:  new            
 Priority:  normal               |      Component:  Compiler (LLVM)
  Version:  7.4.1                |       Keywords:                
       Os:  Linux                |   Architecture:  arm            
  Failure:  Building GHC failed  |       Testcase:                
Blockedby:                       |       Blocking:                
  Related:                       |  
---------------------------------+------------------------------------------
Changes (by dterei):

 * cc: dterei (added)


--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
---------------------------------+------------------------------------------
 Reporter:  jani@…               |          Owner:  kgardas        
     Type:  bug                  |         Status:  new            
 Priority:  normal               |      Component:  Compiler (LLVM)
  Version:  7.4.1                |       Keywords:                
       Os:  Linux                |   Architecture:  arm            
  Failure:  Building GHC failed  |       Testcase:                
Blockedby:                       |       Blocking:                
  Related:                       |  
---------------------------------+------------------------------------------

Comment(by kgardas):

 Hello, I'll attempt to install hard-float ARM OS over the weekend and will
 give it a try.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
---------------------------------+------------------------------------------
 Reporter:  jani@…               |          Owner:  kgardas        
     Type:  bug                  |         Status:  new            
 Priority:  normal               |      Component:  Compiler (LLVM)
  Version:  7.4.1                |       Keywords:                
       Os:  Linux                |   Architecture:  arm            
  Failure:  Building GHC failed  |       Testcase:                
Blockedby:                       |       Blocking:                
  Related:                       |  
---------------------------------+------------------------------------------

Comment(by jani@…):

 Latest ghc packages in Debian sid and Ubuntu precise have the workaround
 (passing -float-abi=hard to llc on armhf)

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
---------------------------------+------------------------------------------
 Reporter:  jani@…               |          Owner:  kgardas        
     Type:  bug                  |         Status:  new            
 Priority:  normal               |      Component:  Compiler (LLVM)
  Version:  7.4.1                |       Keywords:                
       Os:  Linux                |   Architecture:  arm            
  Failure:  Building GHC failed  |       Testcase:                
Blockedby:                       |       Blocking:                
  Related:                       |  
---------------------------------+------------------------------------------

Comment(by kgardas):

 Thanks, indeed, this is needed info, but I'll first attempt to fix that on
 GHC HEAD.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
---------------------------------+------------------------------------------
 Reporter:  jani@…               |          Owner:  kgardas        
     Type:  bug                  |         Status:  new            
 Priority:  normal               |      Component:  Compiler (LLVM)
  Version:  7.4.1                |       Keywords:                
       Os:  Linux                |   Architecture:  arm            
  Failure:  Building GHC failed  |       Testcase:                
Blockedby:                       |       Blocking:                
  Related:                       |  
---------------------------------+------------------------------------------
Changes (by juhpetersen):

 * cc: juhp@… (added)


--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
---------------------------------+------------------------------------------
 Reporter:  jani@…               |          Owner:  kgardas        
     Type:  bug                  |         Status:  new            
 Priority:  normal               |      Component:  Compiler (LLVM)
  Version:  7.4.1                |       Keywords:                
       Os:  Linux                |   Architecture:  arm            
  Failure:  Building GHC failed  |       Testcase:                
Blockedby:                       |       Blocking:                
  Related:                       |  
---------------------------------+------------------------------------------

Comment(by kgardas):

 Hi, attached patch adds hard-float ABI support to GHC HEAD. I've
 bootstrapped this on x86-solaris w/o any issue and also up to the ghc-
 stage2 failure (#6043) on ARM/Ubuntu with hard-float ABI. I'm not able to
 test it due to #6043 yet.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
--------------------------------+-------------------------------------------
    Reporter:  jani@…           |       Owner:  simonmar          
        Type:  bug              |      Status:  new                
    Priority:  high             |   Milestone:  7.6.1              
   Component:  Compiler (LLVM)  |     Version:  7.4.1              
    Keywords:                   |          Os:  Linux              
Architecture:  arm              |     Failure:  Building GHC failed
  Difficulty:  Unknown          |    Testcase:                    
   Blockedby:                   |    Blocking:                    
     Related:                   |  
--------------------------------+-------------------------------------------
Changes (by simonmar):

  * owner:  kgardas => simonmar
  * difficulty:  => Unknown
  * priority:  normal => high
  * milestone:  => 7.6.1


Comment:

 I'll test and apply, thanks.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
--------------------------------+-------------------------------------------
    Reporter:  jani@…           |       Owner:  simonmar          
        Type:  bug              |      Status:  new                
    Priority:  high             |   Milestone:  7.6.1              
   Component:  Compiler (LLVM)  |     Version:  7.4.1              
    Keywords:                   |          Os:  Linux              
Architecture:  arm              |     Failure:  Building GHC failed
  Difficulty:  Unknown          |    Testcase:                    
   Blockedby:                   |    Blocking:                    
     Related:                   |  
--------------------------------+-------------------------------------------

Comment(by karel.gardas@…):

 commit 3144f85661da176e3d80f28d652b42245becde09
 {{{
 Author: Karel Gardas <[hidden email]>
 Date:   Wed Apr 25 09:04:50 2012 +0200

     add support for ARM hard-float ABI (fixes #5914)

     This patch enhances Platform's ArchARM to include ARM ABI value. It
 also
     tweaks configure machinery to detect hard-float ABI and to set it
 wherever
     needed. Finally when hard-float ABI is in use, pass appropriate
 compiler
     option to the LLVM's llc. Fixes #5914.

  aclocal.m4                                         |    2 +-
  compiler/main/DriverPipeline.hs                    |   16 +-
  compiler/nativeGen/AsmCodeGen.lhs                  |    2 +-
  compiler/nativeGen/RegAlloc/Graph/TrivColorable.hs |   56 ++--
  compiler/nativeGen/RegAlloc/Linear/FreeRegs.hs     |   14 +-
  compiler/nativeGen/RegAlloc/Linear/Main.hs         |   14 +-
  compiler/nativeGen/TargetReg.hs                    |   70 ++--
  compiler/utils/Platform.hs                         |   12 +-
  config.guess                                       |  482
 ++++++++++----------
  configure.ac                                       |   14 +
  10 files changed, 345 insertions(+), 337 deletions(-)
 }}}

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
----------------------------------+-----------------------------------------
  Reporter:  jani@…               |          Owner:  simonmar
      Type:  bug                  |         Status:  closed  
  Priority:  high                 |      Milestone:  7.6.1  
 Component:  Compiler (LLVM)      |        Version:  7.4.1  
Resolution:  fixed                |       Keywords:          
        Os:  Linux                |   Architecture:  arm    
   Failure:  Building GHC failed  |     Difficulty:  Unknown
  Testcase:                       |      Blockedby:          
  Blocking:                       |        Related:          
----------------------------------+-----------------------------------------
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Optimistically closing the ticket, please re-open if there's still a
 problem.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #5914: armhf build fails in Ubuntu (7.4.1)

GHC
In reply to this post by GHC
#5914: armhf build fails in Ubuntu (7.4.1)
----------------------------------+-----------------------------------------
  Reporter:  jani@…               |          Owner:  simonmar
      Type:  bug                  |         Status:  closed  
  Priority:  high                 |      Milestone:  7.6.1  
 Component:  Compiler (LLVM)      |        Version:  7.4.1  
Resolution:  fixed                |       Keywords:          
        Os:  Linux                |   Architecture:  arm    
   Failure:  Building GHC failed  |     Difficulty:  Unknown
  Testcase:                       |      Blockedby:          
  Blocking:                       |        Related:          
----------------------------------+-----------------------------------------

Comment(by juhpetersen):

 Thanks, I tested the patch on ghc-7.4.2 RC2 on Fedora:

  http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=839158 (test
 build)

 and it built successfully. So probably will move to this patch for
 Fedora's ghc-7.4.2.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5914#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Loading...