[GHC] #5730: unicode characters in cabal path leads to package installation failure

GHC cvs-ghc at haskell.org
Sat Dec 31 17:35:52 CET 2011


#5730: unicode characters in cabal path leads to package installation failure
---------------------------------+------------------------------------------
    Reporter:  guest             |       Owner:                    
        Type:  bug               |      Status:  new               
    Priority:  normal            |   Milestone:                    
   Component:  Build System      |     Version:  7.0.4             
    Keywords:                    |          Os:  Windows           
Architecture:  Unknown/Multiple  |     Failure:  Compile-time crash
  Difficulty:  Unknown           |    Testcase:                    
   Blockedby:                    |    Blocking:                    
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown


Old description:

> on windows xp/7/8 when path to local cabal packages contains russian
> unicode characters, some of packages with dependencies fail to link.
>
> local cabal install path is in user directory on windows,
> like C:\Documents and Settings\леново\Application Data\cabal\
> and ghc fails like this:
> loadObj "C:\\Documents and Settings\\\1083\1077\1085\1086\1074\1086\\App
> lication
> Data\\cabal\\primitive-0.4.0.1\\ghc-7.0.4\\HSprimitive-0.4.0.1.o": fail
> ed
>
> some of packages that fail:
> vector
> alex
>
> not works on haskell platform 2011.4.0.0, 2011.2.0.1
>
> log:
> C:\Documents and Settings\леново>cabal install vector
> Resolving dependencies...
> ...
> Installing library in C:\Documents and Settings\леново\Application
> Data\cabal\primitive-0.4.0.1\ghc-7.0.4
> Registering primitive-0.4.0.1...
> Downloading vector-0.9...
> Configuring vector-0.9...
> Preprocessing library vector-0.9...
> Building vector-0.9...
> ...
> Loading package ghc-prim ... linking ... done.
> Loading package integer-gmp ... linking ... done.
> Loading package base ... linking ... done.
> Loading package primitive-0.4.0.1 ... ghc.exe: panic! (the 'impossible'
> happened
> )
>   (GHC version 7.0.4 for i386-unknown-mingw32):
>         loadObj "C:\\Documents and
> Settings\\\1083\1077\1085\1086\1074\1086\\App
> lication
> Data\\cabal\\primitive-0.4.0.1\\ghc-7.0.4\\HSprimitive-0.4.0.1.o": fail
> ed

New description:

 on windows xp/7/8 when path to local cabal packages contains russian
 unicode characters, some of packages with dependencies fail to link.

 local cabal install path is in user directory on windows,
 like C:\Documents and Settings\леново\Application Data\cabal\
 and ghc fails like this:
 {{{
 loadObj "C:\\Documents and
 Settings\\\1083\1077\1085\1086\1074\1086\\Application
 Data\\cabal\\primitive-0.4.0.1\\ghc-7.0.4\\HSprimitive-0.4.0.1.o": failed
 }}}
 some of packages that fail:
 vector
 alex

 not works on haskell platform 2011.4.0.0, 2011.2.0.1

 log:
 {{{
 C:\Documents and Settings\леново>cabal install vector
 Resolving dependencies...
 ...
 Installing library in C:\Documents and Settings\леново\Application
 Data\cabal\primitive-0.4.0.1\ghc-7.0.4
 Registering primitive-0.4.0.1...
 Downloading vector-0.9...
 Configuring vector-0.9...
 Preprocessing library vector-0.9...
 Building vector-0.9...
 ...
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package primitive-0.4.0.1 ... ghc.exe: panic! (the 'impossible'
 happened
 )
   (GHC version 7.0.4 for i386-unknown-mingw32):
         loadObj "C:\\Documents and
 Settings\\\1083\1077\1085\1086\1074\1086\\Application
 Data\\cabal\\primitive-0.4.0.1\\ghc-7.0.4\\HSprimitive-0.4.0.1.o": failed
 }}}

--

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



More information about the Glasgow-haskell-bugs mailing list