Comments (16)
@kgadek https://www.mail-archive.com/[email protected]/msg23576.html
from vector.
Oops, should have placed "with profiling" into the title…
from vector.
Will need to post issues a bit slower next time: http://osdir.com/ml/[email protected]/2010-12/msg00252.html . However the question remains: is it possible to circumvent this in vector
package or vector
is and will be uninstallable on profiled GHC?
from vector.
Vector is installable. Something is wrong with your config. Do you have
profiling set to true in your cabal config? I'm afk but I'll ask more
questions when I'm by a computer
On Jan 17, 2015 9:42 AM, "Konrad" [email protected] wrote:
Will need to post issues a bit slower next time:
http://osdir.com/ml/[email protected]/2010-12/msg00252.html . However
the question remains: is it possible to circumvent this in vector package
or vector is and will be uninstallable on profiled GHC?—
Reply to this email directly or view it on GitHub
#67 (comment).
from vector.
OHHH, @kgadek you should never EVER remove ~/.cabal
, because the default ~/.cabal/config
doesn't have library profiling set to True
thats you issue. could you please confirm then close the ticket or provide more information?
Thanks!
-Carter
from vector.
Unfortunately this did not help. I - again - cleared the env (~/.ghc
, ~/.cabal
) so to make it clear the problem is in vectors
(or is it actually?).
$ cabal --version
cabal-install version 1.22.0.0
using version 1.22.0.0 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.4
# GHC 7.8.4 compiled with mk/build.mk containing `BuildFlavour = prof`
$ cat .cabal/config
-- Removed commented-out lines cut.
-- These are defaults from cabal 1.16. After `cabal update` I've set `library-profiling: True`.
remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive
remote-repo-cache: /home/kgadek/.cabal/packages
world-file: /home/kgadek/.cabal/world
library-profiling: True
build-summary: /home/kgadek/.cabal/logs/build.log
remote-build-reporting: anonymous
install-dirs user
-- ...
install-dirs global
-- ...
# In fresh sandbox:
$ cabal install vector
Resolving dependencies...
Configuring primitive-0.5.4.0...
Building primitive-0.5.4.0...
Preprocessing library primitive-0.5.4.0...
[ 1 of 10] Compiling Data.Primitive.Internal.Compat ( Data/Primitive/Internal/Compat.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Internal/Compat.o )
[ 2 of 10] Compiling Data.Primitive.MachDeps ( Data/Primitive/MachDeps.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/MachDeps.o )
[ 3 of 10] Compiling Data.Primitive.Internal.Operations ( Data/Primitive/Internal/Operations.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Internal/Operations.o )
[ 4 of 10] Compiling Control.Monad.Primitive ( Control/Monad/Primitive.hs, dist/dist-sandbox-5dbc957c/build/Control/Monad/Primitive.o )
[ 5 of 10] Compiling Data.Primitive.Types ( Data/Primitive/Types.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Types.o )
[ 6 of 10] Compiling Data.Primitive.Array ( Data/Primitive/Array.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Array.o )
[ 7 of 10] Compiling Data.Primitive.ByteArray ( Data/Primitive/ByteArray.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/ByteArray.o )
[ 8 of 10] Compiling Data.Primitive.Addr ( Data/Primitive/Addr.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Addr.o )
[ 9 of 10] Compiling Data.Primitive ( Data/Primitive.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive.o )
[10 of 10] Compiling Data.Primitive.MutVar ( Data/Primitive/MutVar.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/MutVar.o )
[ 1 of 10] Compiling Data.Primitive.Internal.Compat ( Data/Primitive/Internal/Compat.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Internal/Compat.p_o )
[ 2 of 10] Compiling Data.Primitive.MachDeps ( Data/Primitive/MachDeps.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/MachDeps.p_o )
[ 3 of 10] Compiling Data.Primitive.Internal.Operations ( Data/Primitive/Internal/Operations.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Internal/Operations.p_o )
[ 4 of 10] Compiling Control.Monad.Primitive ( Control/Monad/Primitive.hs, dist/dist-sandbox-5dbc957c/build/Control/Monad/Primitive.p_o )
[ 5 of 10] Compiling Data.Primitive.Types ( Data/Primitive/Types.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Types.p_o )
[ 6 of 10] Compiling Data.Primitive.Array ( Data/Primitive/Array.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Array.p_o )
[ 7 of 10] Compiling Data.Primitive.ByteArray ( Data/Primitive/ByteArray.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/ByteArray.p_o )
[ 8 of 10] Compiling Data.Primitive.Addr ( Data/Primitive/Addr.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/Addr.p_o )
[ 9 of 10] Compiling Data.Primitive ( Data/Primitive.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive.p_o )
[10 of 10] Compiling Data.Primitive.MutVar ( Data/Primitive/MutVar.hs, dist/dist-sandbox-5dbc957c/build/Data/Primitive/MutVar.p_o )
In-place registering primitive-0.5.4.0...
Creating package registration file: /tmp/pkgConf-primitive-0.5.46180.0
Installing library in
/home/kgadek/tmp-vectors-7.8.4-3/.cabal-sandbox/lib/x86_64-linux-ghc-7.8.4/primitive-0.5.4.0
Registering primitive-0.5.4.0...
Installed primitive-0.5.4.0
Configuring vector-0.10.12.2...
Building vector-0.10.12.2...
Preprocessing library vector-0.10.12.2...
[ 1 of 19] Compiling Data.Vector.Storable.Internal ( Data/Vector/Storable/Internal.hs, dist/dist-sandbox-5dbc957c/build/Data/Vector/Storable/Internal.o )
[ 2 of 19] Compiling Data.Vector.Fusion.Util ( Data/Vector/Fusion/Util.hs, dist/dist-sandbox-5dbc957c/build/Data/Vector/Fusion/Util.o )
[ 3 of 19] Compiling Data.Vector.Fusion.Stream.Size ( Data/Vector/Fusion/Stream/Size.hs, dist/dist-sandbox-5dbc957c/build/Data/Vector/Fusion/Stream/Size.o )
[ 4 of 19] Compiling Data.Vector.Internal.Check ( Data/Vector/Internal/Check.hs, dist/dist-sandbox-5dbc957c/build/Data/Vector/Internal/Check.o )
[ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/dist-sandbox-5dbc957c/build/Data/Vector/Fusion/Stream/Monadic.o )
Failed to install vector-0.10.12.2
If you need any further details, I'll be happy to provide them.
from vector.
- never delete
~/.cabal
, please stop it, that doesnt help with debugging - does it build without a sandbox? it could simply be some
cabal
issue - could you post a gist.github.com paste of you current
~/.cabal/config
- use a PASTE link, so this page doesnt get tooo long
- could you also paste (again via a gist link, because this will be long) the results of a
cabal -v3 build
- WHOSE ghc build are you using? i think you have a bad ghc build possibly.
- i personally have
library-profiling: True
shared: True
in my cabal config always
from vector.
also: vector works with my mac + my build of ghc.
from vector.
- what's the actual harm? Never heard that removing
~/.cabal
&~/.ghc
is bad and since I always start from scratch I think that it positively affects the reproductability. Or am I wrong? (edit: to be clear, I always revert to the same.cabal/config
, so in effect I only remove all installed packages) - no, does not help – see below
2,3,4) https://gist.github.com/kgadek/0ee89e95a67c9cb873c8 - it's GHC 7.8.4 I have compiled (with 7.8.3). I have performed
make fulltest
and all seems okay. - I don't have
shared: True
, but that did not change anything
I'm also using mac btw.
from vector.
Vector simply isn't a package that you can compile if you've compiled a profiled GHC.
@cartazio You can't reproduce the outcome because you aren't using a GHC compiled with build.mk:BuildFlavour=prof
from vector.
OHHH, you mean a GHC that IS for profiling GHC, not profiling libraries.
from vector.
Not sure, but maybe I have the same problem with cross-compiling ghc-7.8.3.
Resolving dependencies...
Configuring vector-0.10.12.2...
Building vector-0.10.12.2...
Preprocessing library vector-0.10.12.2...
[ 1 of 19] Compiling Data.Vector.Storable.Internal ( Data/Vector/Storable/Internal.hs, dist/build/Data/Vector/Storable/Internal.o )
[ 2 of 19] Compiling Data.Vector.Fusion.Util ( Data/Vector/Fusion/Util.hs, dist/build/Data/Vector/Fusion/Util.o )
[ 3 of 19] Compiling Data.Vector.Fusion.Stream.Size ( Data/Vector/Fusion/Stream/Size.hs, dist/build/Data/Vector/Fusion/Stream/Size.o )
Data/Vector/Fusion/Stream/Size.hs:25:10: Warning:
No explicit implementation for
‘*’, ‘abs’, and ‘signum’
In the instance declaration for ‘Num Size’
[ 4 of 19] Compiling Data.Vector.Internal.Check ( Data/Vector/Internal/Check.hs, dist/build/Data/Vector/Internal/Check.o )
[ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o )
Loading package ghc-prim ... Failed to install vector-0.10.12.2
cabal: Error: some packages failed to install:
vector-0.10.12.2 failed during the building phase. The exception was:
ExitFailure (-11)
UPD: fixed with this patch.
from vector.
@glguy, I believe it would be best for some-future-guy-to-solve-this-issue to state the possible reasons for "Vector simply isn't a package that you can compile if you've compiled a profiled GHC.". I don't have required knowledge yet.
from vector.
I assume this is… fixed?
from vector.
It's a ghc problem.
from vector.
Vector simply isn't a package that you can compile if you've compiled a profiled GHC.
This^ doesn't sound like a GHC problem.
Anyway, could you give the link to the issue on GHC tracker that we're talking about (and maybe explain how it's related to this package not being able to compile)?
from vector.
Related Issues (20)
- High level documentation? HOT 1
- overlaps for Data.Vector.Mutable behaves oddly for empty vectors HOT 2
- Performance issues with `foldl'` and large tuples HOT 3
- Add a variant unfoldrExactN, returning the resulting generator HOT 3
- Vector tests take more than 4GB memory to build HOT 3
- `Data.Vector.Fusion.Bundle.Size.Size` fields are not strict HOT 1
- Why is `Data.Vector.Generic.New.New` not a newtype? HOT 2
- Question: Is there a reason why `Unbox a => Maybe (Unbox a)` doesn't exist? HOT 1
- Is `vector` susceptible to the same fusion problems as `text`? HOT 2
- Improve compilation time HOT 3
- Split generic tests into separate package HOT 5
- Tests fail when built against QuickCheck-2.14.3 HOT 2
- New version vector 0.14? HOT 11
- Support `primitive-0.9` HOT 1
- Semantics and implementation of move for SoA vectors
- API using Applicative (traverse et.al.)
- Add total counterparts to partial functions, such as `head`. HOT 25
- catMaybes HOT 2
- Add strict boxed vectors HOT 12
- Data.Vector.Generic.New.unstream (and others) can't be specialized HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vector.