GithubHelp home page GithubHelp logo

Comments (16)

glguy avatar glguy commented on June 3, 2024 1

@kgadek https://www.mail-archive.com/[email protected]/msg23576.html

from vector.

kgadek avatar kgadek commented on June 3, 2024

Oops, should have placed "with profiling" into the title…

from vector.

kgadek avatar kgadek commented on June 3, 2024

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.

cartazio avatar cartazio commented on June 3, 2024

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.

cartazio avatar cartazio commented on June 3, 2024

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.

kgadek avatar kgadek commented on June 3, 2024

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.

cartazio avatar cartazio commented on June 3, 2024
  1. never delete ~/.cabal, please stop it, that doesnt help with debugging
  2. does it build without a sandbox? it could simply be some cabal issue
  3. could you post a gist.github.com paste of you current ~/.cabal/config
  4. use a PASTE link, so this page doesnt get tooo long
  5. could you also paste (again via a gist link, because this will be long) the results of a cabal -v3 build
  6. WHOSE ghc build are you using? i think you have a bad ghc build possibly.
  7. i personally have
library-profiling: True
shared: True

in my cabal config always

from vector.

cartazio avatar cartazio commented on June 3, 2024

also: vector works with my mac + my build of ghc.

from vector.

kgadek avatar kgadek commented on June 3, 2024
  1. 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)
  2. no, does not help – see below
    2,3,4) https://gist.github.com/kgadek/0ee89e95a67c9cb873c8
  3. it's GHC 7.8.4 I have compiled (with 7.8.3). I have performed make fulltest and all seems okay.
  4. I don't have shared: True, but that did not change anything

I'm also using mac btw.

from vector.

glguy avatar glguy commented on June 3, 2024

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.

cartazio avatar cartazio commented on June 3, 2024

OHHH, you mean a GHC that IS for profiling GHC, not profiling libraries.

from vector.

ak3n avatar ak3n commented on June 3, 2024

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.

kgadek avatar kgadek commented on June 3, 2024

@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.

kgadek avatar kgadek commented on June 3, 2024

I assume this is… fixed?

from vector.

cartazio avatar cartazio commented on June 3, 2024

It's a ghc problem.

from vector.

kgadek avatar kgadek commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.