-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Library won't compile with debug flag when referenced by another project's cabal.project file. #536
Comments
Two quick questions:
|
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: |
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 Not at a computer currently; I or someone else will have a look later, hopefully tomorrow. |
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. |
Sorry, forgot some stuff.
|
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). |
@noahmartinwilliams Can you checkout the |
That worked. Thank you. |
Great! Happy to see that we made the right inference about the cause. Also thanks for reporting and providing info! |
Description
When I set up a separate project that uses the attached cabal.project file it complains about being unable to create symbolic links.
Steps to reproduce
If I recall correctly I ran commands that were similar to:
with the files:
[cabal.project.local.txt](https://github.co
tester.cabal.txt
cabal.project.txt
Main.hs.txt
accelerate-test.cabal.txt
(Note: I had to add the .txt extension to them to get github to attach these files).
Expected behaviour
The library should have been built with debugging enabled.
Your environment
OS: Arch Linux (up to date as of Sunday, October 8th 2023).
GHC version: 9.2.8
cabal version 3.6.2.0
both installed via ghcup version 0.1.19.0
stack version: 2.11.1
accelerate version: 1.3.0.0 (latest version as of october 8th 2023).
Also the system is set to statically link everything.
Additional context
The problem seems to be with cbits/tracy and it doesn't want to compile because of some kind of problem with symbolic links. There's always a symlink called "obj" in cbites/tracy/build/unix/ and it seems to want to create a directory there named obj and then it fails and crashes.
The text was updated successfully, but these errors were encountered: