GithubHelp home page GithubHelp logo

Comments (9)

tomsmeding avatar tomsmeding commented on August 16, 2024

Two quick questions:

  • The cabal.project.local link seems to be broken; is there something interesting in that file?
  • What exactly do you mean with this phrase: "Also the system is set to statically link everything."?

from accelerate.

noahmartinwilliams avatar noahmartinwilliams commented on August 16, 2024

Statically link means that it will statically link the libraries instead of using dynamic linking (which is the default for arch linux with haskell).

I'm gonna try attaching the file again:
cabal.project.local.txt

from accelerate.

tomsmeding avatar tomsmeding commented on August 16, 2024

Are those ghc options in the cabal.project.local really necessary? (i.e. what happens if you just remove cabal.project.local?) I would expect cabal to be able to figure out where the package db is that it put there itself in ~/.cabal ... On the other hand, it hardly seems related to your issue.

So with static linking you simply mean that you're using ghcup's ghc/cabal/stack without manually adding -dynamic, and are not using Arch's arguably broken ghc package? :P The assumption is indeed that you aren't using a "broken" ghc, so that sounds good. I was fearing that you meant some global CFLAGS or LDFLAGS or whatever that tells gcc to do all kinds of strange things.

Not at a computer currently; I or someone else will have a look later, hopefully tomorrow.

from accelerate.

noahmartinwilliams avatar noahmartinwilliams commented on August 16, 2024

I was just including every file that I remember making manually. I'm pretty sure there's nothing wrong with gcc and it's linking. Thank you.

from accelerate.

tomsmeding avatar tomsmeding commented on August 16, 2024

Sorry, forgot some stuff.

  • Are you using accelerate 1.3.0.0 from Hackage or master from this git repo?
  • Can you post the exact terminal output if you cabal clean both here and in the ~/src/package-sources/accelerate folder, and run the cabal build command again, hopefully including the same symlink-related error?

from accelerate.

noahmartinwilliams avatar noahmartinwilliams commented on August 16, 2024

I'm using the latest from github. All packages mentioned in those files are pulled from github (some of which I had to modify in order to get everything to compile, but that's for the accelerate-llvm package and it's dependencies).

errors.txt
stdout.txt

from accelerate.

tomsmeding avatar tomsmeding commented on August 16, 2024

@noahmartinwilliams Can you checkout the setup-symlink branch of accelerate (this PR), and see if that makes it work for you?

from accelerate.

noahmartinwilliams avatar noahmartinwilliams commented on August 16, 2024

That worked. Thank you.

from accelerate.

tomsmeding avatar tomsmeding commented on August 16, 2024

Great! Happy to see that we made the right inference about the cause.

Also thanks for reporting and providing info!

from accelerate.

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.