[Haskell-cafe] cabal errors
Gregory Guthrie
guthrie at miu.edu
Mon Dec 28 20:41:42 UTC 2020
Hmm, I just did a 4th test, copied the same directory of sources to a top level directory, but also with a blank in the name of the directory, works fine.
So I made a 5th variation, copied he whole thing (working) back to a sibling directory of the original failing one.
It did a build, then fails on execution -
Program 'apl.exe' failed to run: The application has failed to start because its side-by-side configuration
is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more
detailAt line:1 char:1
+ dist-newstyle\build\x86_64-windows\ghc-8.10.1\apl-0.0.1\build\apl\apl ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ dist-newstyle\build\x86_64-windows\ghc-8.10.1\apl-0.0.1\build\apl\apl ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
Only difference I can see between working and failing ones is their location; they are on two different partitions(?).
So two directories, same location, both identical to a third at a top level, top works fine these two fail differently. ??
Dr. Gregory Guthrie
Maharishi International University
----------------------------------------------------------------
-----Original Message-----
From: Haskell-Cafe <haskell-cafe-bounces at haskell.org> On Behalf Of Gregory Guthrie
Sent: Monday, December 28, 2020 12:45 PM
To: haskell-cafe at haskell.org
Subject: [Haskell-cafe] cabal errors
I'm having some issues with Cabal , wonder if they are known issues.
1) I had a previously working installation of files, hadn't used them for some time, did Haskell upgrades (chocolatey), and tried to recompile.
I got a weird error on running the build -
Program 'apl.exe' failed to run: The application has failed to start because its side-by-side configuration
is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail At line:1 char:1
+ ./apl
+ ~~~~~.
At line:1 char:1
+ ./apl
+ ~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed Chasing this all around - no solutions so I started over, in a new location, adding one file at a time.
Worked fine.
2) So I then has a current working build in some top level xTest temporary directory.
(Just a direct copy of all the files, and "cabal v2-build")
3) So I then just copied all the source files back to a desired installation place, with a longer path name.
4) But there it fails to build:
PS D:\CS\Courses\long path\Solns\All Solutions> cabal v2-install
Wrote tarball sdist to D:\CS\Courses\long path\Solns\All Solutions\dist-newstyle\sdist\apl-0.0.1.tar.gz
Resolving dependencies...
Build profile: -w ghc-8.10.1 -O1
In order, the following will be built (use -v for more details):
- apl-0.0.1 (exe:apl) (requires build)
cabal.exe: Failed to unpack apl-0.0.1. The exception was:
dieVerbatim: user error (cabal.exe: Package .cabal file not found in the tarball:
C:\Users\guthrie\AppData\Local\Temp\cabal-install.-2584\dist-newstyle\tmp\src-2584\apl-0.0.1\apl.cabal)
5) Just copying (again) the same folder of files which is failing to a top level new folder (yTest), deleting the dist-newstyle folder,
And running "cabal v2-buld" again, all works fine, no errors, executable built.
Three directories, all with the same files - one fails.
?? The only difference I can see is the long path name with blanks in it - is that an issue?
Dr. Gregory Guthrie
Maharishi International University
----------------------------------------------------------------
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
More information about the Haskell-Cafe
mailing list