-
Notifications
You must be signed in to change notification settings - Fork 848
-fPIC errors with --profile on Arch Linux #3877
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
Comments
Interesting that system GHC exhibits the same problem. Have you tried adjusting the GHC settings file (in |
I tried adding -fPIC to the system GHC settings (which I found in /usr/lib/ghc-8.2.2/settings).
Same result. However -- I tried building a simple application ( |
OK, this seems to have something to do with building a shared foreign library. By removing the below foreign-library stanza from my .cabal file, I can make the problem go away.
|
I have the same issue with a simple ghc build using arch :
result
|
I'm seeing the same sort of |
Uh oh!
There was an error while loading. Please reload this page.
General summary/comments (optional)
This is likely related to #3518 and #3409 etc. But while users seem to have resolved those issues for GHC 8.2.2 and up, I see the same (or a similar) issue when using the --profile flag. Building without --profile works fine.
Steps to reproduce
stack build --profile --system-ghc
(with Archghc-static
package)or
stack build --profile
Expected
The project should build without errors and with profiling data.
Actual
Linking fails with thousands of errors like these:
Stack version
I have tried both 1.6.3 and the latest git master.
Method of installation
I have tried:
stack
andstack-bin
packagesI have also tried various builds of GHC 8.2.2 (stack installed builds with ghc-build and tinfo6; as well as the
ghc
andghc-static
builds from the Arch packages). All exhibit this problem.The text was updated successfully, but these errors were encountered: