Skip to content

Lens fails to build on Windows with Cabal install 1.20RC2 #1784

Closed

Description

@mantkiew

When building my projects and all dependencies from scratch (removed Roaming/cabal and Roaming/ghc) on (Windows 8, HP 2013.2.0.0, GHC7.6.3, Cabal install 1.20 RC2) I got this :

Failed to install lens-4.1.2
Last 10 lines of the build log ( C:\Users\mantkiew\AppData\Roaming\cabal\logs\lens-4.1.2.log ):
[77 of 85] Compiling Data.Vector.Lens ( src\Data\Vector\Lens.hs, dist\build\Data\Vector\Lens.o )
... < cut >
[85 of 85] Compiling Codec.Compression.Zlib.Lens ( src\Codec\Compression\Zlib\Lens.hs, dist\build\Codec\Compression\Zlib
\Lens.o )
c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\strip.exe: cannot create tempdir for archive copying (error: File exists)
cabal.exe: Error: some packages failed to install:
clafer-0.3.6 depends on lens-4.1.2 which failed to install.
lens-4.1.2 failed during the building phase. The exception was:
ExitFailure 1

Tried again from scratch - nothing helped.

Then I tried with Cabal 1.18.* and everything builds and installs normally.

Activity

  1. tibbe commented on Apr 18, 2014

    @tibbe
    Contributor

    Could you please paste the output of cabal install -v3 lens-4.1.2?

  2. mantkiew commented on Apr 18, 2014

    @mantkiew
    Author
    Ready to install lens-4.1.2
    Downloading lens-4.1.2...
    Waiting for install task to finish...
    Sending:
    GET /packages/archive/lens/4.1.2/lens-4.1.2.tar.gz HTTP/1.1
    Host: hackage.haskell.org
    User-Agent: cabal-install/1.20.0.0
    
    Creating new connection to hackage.haskell.org
    Received:
    HTTP/1.1 301 Moved Permanently
    Server: nginx/1.4.7
    Date: Fri, 18 Apr 2014 11:21:25 GMT
    Content-Type: text/plain; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Location: /package/lens-4.1.2/lens-4.1.2.tar.gz
    Content-Length: 0
    
    301 - redirect
    Redirecting to http://hackage.haskell.org/package/lens-4.1.2/lens-4.1.2.tar.gz
    ...
    Sending:
    GET /package/lens-4.1.2/lens-4.1.2.tar.gz HTTP/1.1
    Host: hackage.haskell.org
    User-Agent: cabal-install/1.20.0.0
    
    Recovering connection to hackage.haskell.org
    Received:
    HTTP/1.1 200 OK
    Server: nginx/1.4.7
    Date: Fri, 18 Apr 2014 11:21:26 GMT
    Content-Type: application/x-gzip
    Transfer-Encoding: chunked
    Connection: keep-alive
    Content-MD5: f67fe19670c55e27de322bfac58b231c
    ETag: "f67fe19670c55e27de322bfac58b231c"
    Last-Modified: Wed, 26 Mar 2014 05:57:13 GMT
    Content-Length: 767743
    
    Downloaded to
    C:\Users\mantkiew\AppData\Roaming\cabal\packages\hackage.haskell.org\lens\4.1.2\lens-4.1.2.tar.gz
    Extracting
    C:\Users\mantkiew\AppData\Roaming\cabal\packages\hackage.haskell.org\lens\4.1.2\lens-4.1.2.tar.gz
    to C:\Users\mantkiew\AppData\Local\Temp\lens-4.1.2-2584...
    Updating lens.cabal with the latest revision from the index.
    Configuring lens-4.1.2...
    Using external setup method with build-type Custom
    creating
    C:\Users\mantkiew\AppData\Local\Temp\lens-4.1.2-2584\lens-4.1.2\dist\setup
    creating C:\Users\mantkiew\AppData\Local\Temp\lens-4.1.2-2584\lens-4.1.2\dist
    creating
    C:\Users\mantkiew\AppData\Local\Temp\lens-4.1.2-2584\lens-4.1.2\dist\setup
    Using Cabal library version 1.20.0.0
    Setup executable needs to be updated, compiling...
    ("c:\\dev\\HaskellPlatform\\2013.2.0.0\\bin\\ghc.exe",["--make","-v","-odir","C:\\Users\\mantkiew\\AppData\\Local\\Temp\
    \lens-4.1.2-2584\\lens-4.1.2\\dist\\setup","-hidir","C:\\Users\\mantkiew\\AppData\\Local\\Temp\\lens-4.1.2-2584\\lens-4.
    1.2\\dist\\setup","-i","-iC:\\Users\\mantkiew\\AppData\\Local\\Temp\\lens-4.1.2-2584\\lens-4.1.2","-package-id","Cabal-1
    .20.0.0-c3d4a6ce5fb3f6c87d8be04b09437df8","C:\\Users\\mantkiew\\AppData\\Local\\Temp\\lens-4.1.2-2584\\lens-4.1.2\\dist\
    \setup\\setup.hs","-o","C:\\Users\\mantkiew\\AppData\\Local\\Temp\\lens-4.1.2-2584\\lens-4.1.2\\dist\\setup\\setup.exe",
    "-threaded"])
    C:\Users\mantkiew\AppData\Local\Temp\lens-4.1.2-2584\lens-4.1.2\dist\setup\setup.exe
    configure --verbose=3 --ghc --prefix=C:\Users\mantkiew\AppData\Roaming\cabal
    --bindir=C:\Users\mantkiew\AppData\Roaming\cabal\bin
    --libdir=C:\Users\mantkiew\AppData\Roaming\cabal
    --libsubdir=i386-windows-ghc-7.6.3\lens-4.1.2
    --libexecdir=C:\Users\mantkiew\AppData\Roaming\cabal\lens-4.1.2
    --datadir=C:\Users\mantkiew\AppData\Roaming\cabal
    --datasubdir=i386-windows-ghc-7.6.3\lens-4.1.2
    --docdir=C:\Users\mantkiew\AppData\Roaming\cabal\doc\i386-windows-ghc-7.6.3\lens-4.1.2
    --htmldir=C:\Users\mantkiew\AppData\Roaming\cabal\doc\i386-windows-ghc-7.6.3\lens-4.1.2\html
    --haddockdir=C:\Users\mantkiew\AppData\Roaming\cabal\doc\i386-windows-ghc-7.6.3\lens-4.1.2\html
    --sysconfdir=C:\Users\mantkiew\AppData\Roaming\cabal\etc --user
    --flags=trustworthy --flags=test-properties --flags=test-hunit
    --flags=test-hlint --flags=test-doctests --flags=-safe
    --flags=-old-inline-pragmas --flags=-lib-werror --flags=-j --flags=inlining
    --flags=-dump-splices --flags=-benchmark-uniplate
    --extra-prog-path=C:\Users\mantkiew\AppData\Roaming\cabal\bin
    --dependency=zlib=zlib-0.5.4.1-f8b2bb965704e7ec5caa162d83990faa
    --dependency=void=void-0.6.1-e6645690c13bcc6411aca1b12897afc7
    --dependency=vector=vector-0.10.0.1-de357a28bd1947d0c1ee9b730f605fb0
    --dependency=utf8-string=utf8-string-0.3.7-319b883e69a0a494238dd2ac7989eec2
    --dependency=unordered-containers=unordered-containers-0.2.3.0-07b501cac27baea854ec7338939048bb
    --dependency=transformers-compat=transformers-compat-0.1.1.1-dcef4e1eeab8de73981ca7a7147f19d8
    --dependency=transformers=transformers-0.3.0.0-df161533671a3b9bce217538864873c4
    --dependency=text=text-0.11.3.1-a8ece294fe3000125614f30af4cc5e8b
    --dependency=template-haskell=template-haskell-2.8.0.0-42f1e6e55511ef4dff7e4249580faf8f
    --dependency=tagged=tagged-0.7.1-7d1a4f738d8fae93dd37d6ba4ee1d498
    --dependency=split=split-0.2.2-da1c8aaae88e58aebda2b8c3fd552806
    --dependency=semigroups=semigroups-0.12.2-971a7c0faac7af24c430034ef0d6ea9e
    --dependency=semigroupoids=semigroupoids-4.0.1-838856d04add553166ff3ba60e528443
    --dependency=scientific=scientific-0.2.0.1-17923bb9dd5c08cb63cfa66140ea0f17
    --dependency=reflection=reflection-1.4-d3a4f7115263d5365f2e9312f6490678
    --dependency=profunctors=profunctors-4.0.3-df1fb58402406bf33db9644b698d8e3b
    --dependency=primitive=primitive-0.5.0.1-d2400b503a6d2a77eaafd019467d1fb9
    --dependency=parallel=parallel-3.2.0.3-e820b19f5a9c77af99f9f74ca067f604
    --dependency=mtl=mtl-2.1.2-678980f6077e9f83a86186556aa2a425
    --dependency=hashable=hashable-1.1.2.5-e8326d7b0c6af07b9139e791b5b3ad95
    --dependency=ghc-prim=ghc-prim-0.3.0.0-9d603ae4e062e1401099a3daa8931d0f
    --dependency=free=free-4.6.1-36963dc6cc6d9fb57c37712195bc0143
    --dependency=filepath=filepath-1.3.0.1-e1c074c9a25dc46ffe428d0c99a8124d
    --dependency=exceptions=exceptions-0.5-79c27843a408d7e1bfa5add772b0bd58
    --dependency=distributive=distributive-0.4.3.1-59b7139219d7784e2e04338d67585d4c
    --dependency=contravariant=contravariant-0.4.4-52b00634fcea5ece927e13d76be35dba
    --dependency=containers=containers-0.5.0.0-216fcd375644c41421c5f14613e6b5af
    --dependency=comonad=comonad-4.0.1-8062d98419e0b0786932fc15855d9f48
    --dependency=bytestring=bytestring-0.10.0.2-c8fbf42ac6de7e76dd9245b3f7a2fa84
    --dependency=bifunctors=bifunctors-4.1.1-a08143549c6b30c89ae7a28b52b4549d
    --dependency=base=base-4.6.0.1-f0c2cc6dcf0e12bf75312a2e7f354095
    --dependency=array=array-0.4.0.1-72eb1caf42d7f1e9e960760f41ef98d0
    --dependency=aeson=aeson-0.7.0.2-70e33abbc57b57677424771b0fa87579
    --disable-tests --exact-configuration --disable-benchmarks
    Redirecting build log to {handle:
    C:\Users\mantkiew\AppData\Roaming\cabal\logs\lens-4.1.2.log}
    Building lens-4.1.2...
    Using external setup method with build-type Custom
    creating
    C:\Users\mantkiew\AppData\Local\Temp\lens-4.1.2-2584\lens-4.1.2\dist\setup
    Using Cabal library version 1.20.0.0
    C:\Users\mantkiew\AppData\Local\Temp\lens-4.1.2-2584\lens-4.1.2\dist\setup\setup.exe
    build --verbose=3
    Redirecting build log to {handle:
    C:\Users\mantkiew\AppData\Roaming\cabal\logs\lens-4.1.2.log}
    Failed to install lens-4.1.2
    Last 10 lines of the build log ( C:\Users\mantkiew\AppData\Roaming\cabal\logs\lens-4.1.2.log ):
    a - dist\build\System\FilePath\Lens.o
    a - dist\build\System\IO\Error\Lens.o
    a - dist\build\Language\Haskell\TH\Lens.o
    a - dist\build\Numeric\Lens.o
    a - dist\build\Control\Lens\Internal\TupleIxedTH.o
    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\ar.exe: creating dist\build\libHSlens-4.1.2.a-2796\libHSlens-4.1.2.a
    Environment: [("","C:=C:\\dev\\HaskellPlatform\\2013.2.0.0\\mingw\\msys\\1.0"),("ALLUSERSPROFILE","C:\\ProgramData"),("A
    PPDATA","C:\\Users\\mantkiew\\AppData\\Roaming"),("CABAL_BIN",
    "C:\\Users\\mantkiew\\AppData\\Roaming\\cabal\\bin"),("COMMONPROGRAMFILES","C:\\Program Files (x86)\\Common Files"),("CO
    MMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files")
    ,("COMPUTERNAME","DFG46J7UG89K"),("COMSPEC","C:\\windows\\SysWOW64\\cmd.exe"),("FP_NO_HOST_CHECK","NO"),("GHC_BIN","C:\\dev\\ghc-7.8.0.20140228\\bin"),("HASKELL_BINS"
    ,"C:\\dev\\HaskellPlatform\\2013.2.0.0\\bin;C:\\Program Files (x86)\\Haskell\\bin;C:\\dev\\HaskellPlatform\\2013.2.0.0\\
    lib\\extralibs\\bin;"),("HISTFILE","C:/dev/HaskellPlatform/2013.2.0.0/mingw/msys/1.0/home/mantkiew/.bash_history"),("HOM
    E","C:/dev/HaskellPlatform/2013.2.0.0/mingw/msys/1.0/home/mantkiew"),("HOMEDRIVE","C:"),("HOMEPATH","\\"),("JAVA_HOME","
    C:\\Program Files (x86)\\Java\\jdk1.7.0_51"),("LOCALAPPDATA","C:\\Users\\mantkiew\\AppData\\Local"),("LOGNAME","mantkiew
    "),("LOGONSERVER","\\\\DFG46J7UG89K"),("MAKE_MODE","unix"),("MINGW_MSYS","C:\\dev\\HaskellPlatform\\2013.2.0.0\\mingw\\bin;C:\\dev\\HaskellPlatform\\2013.2.0.0\\mingw\\msys\\1.
    0\\bin"),("MSYSCON","sh.exe"),("MSYSTEM","MINGW32"),("NUMBER_OF_PROCESSORS","2
    "),("OLDPWD","C:/dev/HaskellPlatform/2013.2.0.0/mingw/msys/1.0"),("OS","Windows_NT"),("PATH",".;C:\\dev\\HaskellPlatform
    \\2013.2.0.0\\mingw\\msys\\1.0\\local\\bin;C:\\dev\\HaskellPlatform\\2013.2.0.0\\mingw\\msys\\1.0\\mingw\\bin;C:\\dev\\H
    askellPlatform\\2013.2.0.0\\mingw\\msys\\1.0\\bin;c:\\Users\\
    mantkiew\\AppData\\Roaming\\cabal\\bin;c:\\dev\\HaskellPlatform\\2013.2.0.0\\bin;c:\\Program Files (x86)\\Haskell\\bin;c:\\dev\\HaskellPl
    atform\\2013.2.0.0\\lib\\extralibs\\bin;.;c:\\windows\\system32;c:\\windows;c:\\windows\\System32\\Wbem;c:\\windows\\Sys
    tem32\\WindowsPowerShell\\v1.0\\;c:\\dev\\HaskellPlatform\\2013.2.0.0\\mingw\\bin;C:\\dev\\HaskellPlatform\\2013.2.0.0\\
    mingw\\msys\\1.0\\bin;c:\\Program Files (x86)\\Java\\jdk1.7.0_51\\bin;c:\\dev\\Python27;c:\\Users\\mantkiew\\AppData\\Roaming\\cabal\\bin;"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"),("
    PROCESSOR_ARCHITECTURE","x86"),("PROCESSOR_ARCHITEW6432","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 Family 6 Model 23 Ste
    pping 6, GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","1706"),("PROGRAMDATA","C:\\ProgramData"),("PROGRA
    MFILES","C:\\Program Files (x86)"),("PROGRAMFILES(X86)","C:\\Program Files (x86)"),("PROGRAMW6432","C:\\Program Files"),
    ("PROMPT","$P$G"),("PS1","\\[\\033]0;$MSYSTEM:\\w\\007\n\\033[32m\\]\\u@\\h \\[\\033[33m\\w\\033[0m\\]\n$ "),("PSMODULEP
    ATH","C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("PWD","C:/dev/HaskellP
    latform/2013.2.0.0/mingw/msys/1.0/home/mantkiew"),("SESSIONNAME","Console"),("SHLVL","1"),("SSH_AGENT_PID","7740"),("SSH_AUTH_SOCK","C:/Users/mantkiew/App
    Data/Local/Temp/ssh-ZjlIeE5152/agent.5152"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\windows"),("TEMP","C:/Users/mantkiew/AppData/Local/Temp"
    ),("TERM","cygwin"),("TMP","C:/Users/mantkiew/AppData/Local/Temp"),("USERDOMAIN","DFG46J7UG89K"),("USERDOMAIN_ROAMINGPRO
    FILE","DFG46J7UG89K"),("USERNAME","mantkiew"),("USERPROFILE","C:\\Users\\mantkiew"),("WD","C:\\dev\\HaskellPl
    atform\\2013.2.0.0\\mingw\\msys\\1.0\\\\bin\\"),("WINDIR","C:\\windows"),("_","c:/Users/mantkiew/AppData/Roaming/cabal/b
    in/cabal"),("__PROCESS_HISTORY","C:\\Users\\mantkiew\\AppData\\Local\\Temp\\lens-4.1.2-2584\\lens-4.1.2\\dist\\setup\\se
    tup.exe")]
    ("c:\\dev\\HaskellPlatform\\2013.2.0.0\\mingw\\bin\\strip.exe",["dist\\build\\libHSlens-4.1.2.a-2796\\libHSlens-4.1.2.a"
    ,"--strip-unneeded"])
    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\strip.exe: cannot create tempdir for archive copying (error: File exists)
    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\strip.exe returned ExitFailure 1
    Updating world file...
    cabal.exe: Error: some packages failed to install:
    lens-4.1.2 failed during the building phase. The exception was:
    ExitFailure 1
    
  3. tibbe commented on Apr 18, 2014

    @tibbe
    Contributor

    strip.exe itself is failing. We're calling it like so:

    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\strip.exe dist\build\libHSlens-4.1.2.a-2796\libHSlens-4.1.2.a --strip-unneeded
    

    I'm not sure why it's failing. Perhaps you could run the above command manually after the build fails and pass -v to see what directory it's trying to create? You will ned to change the directory to the compile was done in (C:\Users\mantkiew\AppData\Local\Temp\lens-4.1.2-XXXX I believe, where XXXX is a random number.)

  4. mantkiew commented on Apr 18, 2014

    @mantkiew
    Author

    Unfortunately, all temp. directories are removed and strip.exe simply says "File not found". Is there a way to prevent the removal of the temp. files? I also got something different:

    ("c:\\dev\\HaskellPlatform\\2013.2.0.0\\mingw\\bin\\strip.exe",["dist\\build\\libHSlens-4.1.2.a-2412\\libHSlens-4.1.2.a"
    ,"--strip-unneeded"])
    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\strip.exe: cannot create tempdir for archive copying (error: File exists)
    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\strip.exe returned ExitFailure 1
    Updating world file...
    cabal.exe: Error: some packages failed to install:
    lens-4.1.2 failed while downloading the package. The exception was:
    RemoveDirectory
    "C:\\Users\\mantkiew\\AppData\\Local\\Temp\\lens-4.1.2-2484\\lens-4.1.2\\dist":
    unsatisified constraints (The directory is not empty.)
    ("c:\\dev\\HaskellPlatform\\2013.2.0.0\\mingw\\bin\\strip.exe",["dist\\build\\libHSlens-4.1.2.a-2412\\libHSlens-4.1.2.a"
    ,"--strip-unneeded"])
    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\strip.exe: cannot create tempdir for archive copying (error: File exists)
    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\strip.exe returned ExitFailure 1
    Updating world file...
    cabal.exe: Error: some packages failed to install:
    lens-4.1.2 failed while downloading the package. The exception was:
    RemoveDirectory
    "C:\\Users\\mantkiew\\AppData\\Local\\Temp\\lens-4.1.2-2484\\lens-4.1.2\\dist":
    unsatisified constraints (The directory is not empty.)
    
  5. tibbe commented on Apr 19, 2014

    @tibbe
    Contributor

    This seems similar to #1785 (comment).

    Could you try to pass -j1 to cabal install to avoid building in parallel and report back?

  6. mantkiew commented on Apr 19, 2014

    @mantkiew
    Author

    I have suspected parallel builds as well. Unfortunately, -j1 did not help. Still getting:

    [85 of 85] Compiling Codec.Compression.Zlib.Lens ( src\Codec\Compression\Zlib\Lens.hs, dist\build\Codec\Compression\Zlib
    \Lens.o )
    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\strip.exe: cannot create tempdir for archive copying (error: File exists)
    Failed to install lens-4.1.2
    cabal.exe: Error: some packages failed to install:
    lens-4.1.2 failed during the building phase. The exception was:
    ExitFailure 1
    
  7. tibbe commented on Apr 19, 2014

    @tibbe
    Contributor

    /cc @23Skidoo I believe this is the last remaining issue before I can make a release.

    We need to figure out what file/directory already exists and why it exists. Could you try to figure that out? You can pass --ghc-option=-keep-tmp-files to cabal install in case GHC is removing temporary files you want to look at.

    Unfortunately I don't have a Windows development setup so I cannot easily debug this.

  8. mantkiew commented on Apr 19, 2014

    @mantkiew
    Author

    The problem is that the folder dist\\build\\libHSlens-4.1.2.a-<number> only briefly appears and then the build immediately crashes reporting the error. The --ghc-option=-keep-tmp-files does not help as, I suspect, it's the cabal itself that cleans up, not GHC (there were indeed some temp files left over but nothing useful).

    I tried to do the following instead:

    cabal get lens-4.1.2
    cd lens-4.1.2
    cabal install -v3
    

    Indeed, doing so caused the entire contents of dist/build to be left over; however, the libHSlens-4.1.2.a-<number> was also removed from there (by cabal, I presume) immediately. So, it must be something related to building the library. Just calling cabal build reports the same error. In the log, I can see

    c:\dev\HaskellPlatform\2013.2.0.0\mingw\bin\ar.exe: creating dist\build\libHSlens-4.1.2.a-4960\libHSlens-4.1.2.a
    a - dist\build\Codec\Compression\Zlib\Lens.o
    ...<cut>...
    

    followed by the strip error. So, the archive is created.

  9. 23Skidoo commented on Apr 20, 2014

    @23Skidoo
    Member

    IIRC Cabal also has some option for keeping temporary files around, but I don't remember what it's called off-hand.

  10. 23Skidoo commented on Apr 20, 2014

    @23Skidoo
    Member

    Managed to reproduce. Interesting that it happens only with lens and not its dependencies.

  11. 23Skidoo commented on Apr 20, 2014

    @23Skidoo
    Member

    Strange that tries to run strip on libHSlens-4.1.2.a since from the code it looks like we're only stripping shared libraries...

  12. 23Skidoo commented on Apr 20, 2014

    @23Skidoo
    Member

    Ah, so this is done in createArLibArchive...

  13. 23Skidoo commented on Apr 20, 2014

    @23Skidoo
    Member

    IIRC Cabal also has some option for keeping temporary files around, but I don't remember what it's called off-hand.

    Sorry, looks like I was misremembering.

  14. 23Skidoo commented on Apr 20, 2014

    @23Skidoo
    Member

    Replacing GHC's strip with a more recent version doesn't help...

  15. 23Skidoo commented on Apr 20, 2014

    @23Skidoo
    Member

    Output of strip -v:

    $ strip -v libHSlens-4.1.2.a
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/Lens.o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/sta03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/stb03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Action.o)' [pe-i386] to `stb03896/Action.o' [pe-i38
    6]
    copy from `libHSlens-4.1.2.a(At.o)' [pe-i386] to `stb03896/At.o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Combinators.o)' [pe-i386] to `stb03896/Combinators.
    o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Cons.o)' [pe-i386] to `stb03896/Cons.o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Each.o)' [pe-i386] to `stb03896/Each.o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Empty.o)' [pe-i386] to `stb03896/Empty.o' [pe-i386]
    
    copy from `libHSlens-4.1.2.a(Equality.o)' [pe-i386] to `stb03896/Equality.o' [pe
    -i386]
    copy from `libHSlens-4.1.2.a(Extras.o)' [pe-i386] to `stb03896/Extras.o' [pe-i38
    6]
    copy from `libHSlens-4.1.2.a(Fold.o)' [pe-i386] to `stb03896/Fold.o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Getter.o)' [pe-i386] to `stb03896/Getter.o' [pe-i38
    6]
    copy from `libHSlens-4.1.2.a(Indexed.o)' [pe-i386] to `stb03896/Indexed.o' [pe-i
    386]
    copy from `libHSlens-4.1.2.a(Internal.o)' [pe-i386] to `stb03896/Internal.o' [pe
    -i386]
    copy from `libHSlens-4.1.2.a(Action.o)' [pe-i386] to `stb03896/stc03896/Action.o
    ' [pe-i386]
    copy from `libHSlens-4.1.2.a(Bazaar.o)' [pe-i386] to `stb03896/Bazaar.o' [pe-i38
    6]
    copy from `libHSlens-4.1.2.a(ByteString.o)' [pe-i386] to `stb03896/ByteString.o'
     [pe-i386]
    copy from `libHSlens-4.1.2.a(Context.o)' [pe-i386] to `stb03896/Context.o' [pe-i
    386]
    copy from `libHSlens-4.1.2.a(Deque.o)' [pe-i386] to `stb03896/Deque.o' [pe-i386]
    
    copy from `libHSlens-4.1.2.a(Exception.o)' [pe-i386] to `stb03896/Exception.o' [
    pe-i386]
    copy from `libHSlens-4.1.2.a(Fold.o)' [pe-i386] to `stb03896/std03896/Fold.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Getter.o)' [pe-i386] to `stb03896/ste03896/Getter.o
    ' [pe-i386]
    copy from `libHSlens-4.1.2.a(Indexed.o)' [pe-i386] to `stb03896/stf03896/Indexed
    .o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Instances.o)' [pe-i386] to `stb03896/Instances.o' [
    pe-i386]
    copy from `libHSlens-4.1.2.a(Iso.o)' [pe-i386] to `stb03896/Iso.o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Level.o)' [pe-i386] to `stb03896/Level.o' [pe-i386]
    
    copy from `libHSlens-4.1.2.a(Magma.o)' [pe-i386] to `stb03896/Magma.o' [pe-i386]
    
    copy from `libHSlens-4.1.2.a(Prism.o)' [pe-i386] to `stb03896/Prism.o' [pe-i386]
    
    copy from `libHSlens-4.1.2.a(Reflection.o)' [pe-i386] to `stb03896/Reflection.o'
     [pe-i386]
    copy from `libHSlens-4.1.2.a(Review.o)' [pe-i386] to `stb03896/Review.o' [pe-i38
    6]
    copy from `libHSlens-4.1.2.a(Setter.o)' [pe-i386] to `stb03896/Setter.o' [pe-i38
    6]
    copy from `libHSlens-4.1.2.a(TH.o)' [pe-i386] to `stb03896/TH.o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Zoom.o)' [pe-i386] to `stb03896/Zoom.o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Iso.o)' [pe-i386] to `stb03896/stg03896/Iso.o' [pe-
    i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/sth03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Level.o)' [pe-i386] to `stb03896/sti03896/Level.o'
    [pe-i386]
    copy from `libHSlens-4.1.2.a(Loupe.o)' [pe-i386] to `stb03896/Loupe.o' [pe-i386]
    
    copy from `libHSlens-4.1.2.a(Operators.o)' [pe-i386] to `stb03896/Operators.o' [
    pe-i386]
    copy from `libHSlens-4.1.2.a(Plated.o)' [pe-i386] to `stb03896/Plated.o' [pe-i38
    6]
    copy from `libHSlens-4.1.2.a(Prism.o)' [pe-i386] to `stb03896/stj03896/Prism.o'
    [pe-i386]
    copy from `libHSlens-4.1.2.a(Reified.o)' [pe-i386] to `stb03896/Reified.o' [pe-i
    386]
    copy from `libHSlens-4.1.2.a(Review.o)' [pe-i386] to `stb03896/stk03896/Review.o
    ' [pe-i386]
    copy from `libHSlens-4.1.2.a(Setter.o)' [pe-i386] to `stb03896/stl03896/Setter.o
    ' [pe-i386]
    copy from `libHSlens-4.1.2.a(TH.o)' [pe-i386] to `stb03896/stm03896/TH.o' [pe-i3
    86]
    copy from `libHSlens-4.1.2.a(Traversal.o)' [pe-i386] to `stb03896/Traversal.o' [
    pe-i386]
    copy from `libHSlens-4.1.2.a(Tuple.o)' [pe-i386] to `stb03896/Tuple.o' [pe-i386]
    
    copy from `libHSlens-4.1.2.a(Type.o)' [pe-i386] to `stb03896/Type.o' [pe-i386]
    copy from `libHSlens-4.1.2.a(Wrapped.o)' [pe-i386] to `stb03896/Wrapped.o' [pe-i
    386]
    copy from `libHSlens-4.1.2.a(Zoom.o)' [pe-i386] to `stb03896/stn03896/Zoom.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/sto03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/stp03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/stq03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/str03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/sts03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/stt03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/stu03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/stv03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/stw03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/stx03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/sty03896/Lens.o' [p
    e-i386]
    copy from `libHSlens-4.1.2.a(Lens.o)' [pe-i386] to `stb03896/stz03896/Lens.o' [p
    e-i386]
    c:\Program Files (x86)\Haskell Platform\2013.2.0.0\mingw\bin\strip.exe: cannot c
    reate tempdir for archive copying (error: File exists)
    

    Notice the n...x,y,z progression. Looks like a bug triggered by having too many identically-named .o files (look at http://hackage.haskell.org/package/lens : apparently every module with a name ending with .Lens produces a Lens.o file).

    I suggest disabling library stripping on Windows for now and filing a bug report at the binutils bug tracker. Maybe this can be also fixed in GHC?

  16. added a commit that references this issue on Apr 20, 2014
    375cfd6
  17. tibbe commented on Apr 20, 2014

    @tibbe
    Contributor
    • Could someone please verify that the above fix works?
    • Why doesn't this happen on Linux? Is MSYS using an old version of binutils?
  18. tibbe commented on Apr 20, 2014

    @tibbe
    Contributor

    @hvr says that there's no failure on Linux. Either Linux uses a more recent binutils or the MSYS binutils leans on Windows for tempfile naming and that's why the issue only shows up here.

  19. tibbe commented on Apr 20, 2014

    @tibbe
    Contributor

    Thanks to Jafet on IRC we've verified that my fix above works.

  20. 23Skidoo commented on Apr 20, 2014

    @23Skidoo
    Member

    @tibbe The bug still happens with a new version of binutils (2.24 - newer than the one installed on my Linux machine). Probably some Windows-specific limitation.

  21. Toxaris commented on May 20, 2014

    @Toxaris
    Contributor

    This is not fixed for me, using:

    > cabal --version
    cabal-install version 1.20.0.1
    using version 1.20.0.0 of the Cabal library
    
  22. Toxaris commented on May 20, 2014

    @Toxaris
    Contributor

    I tried to investigate this, and now it seems to work. Maybe I misunderstood some output. Anyway, I cannot reproduce this anymore.

  23. michalfapso commented on Mar 3, 2016

    @michalfapso

    I had the same problem on mingw. Here is a simple script overcoming the strip's issue with creating temp files: https://gist.github.com/michalfapso/833d4198244698e4266e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions