You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently encountered an issue where a shared library ends up without symbols after invoking stack build. At first I thought this was a bug in stack since cabal build did fine. I reported this in #1925, but after further investigating this issue I found out that stack invokes cabal copy after the actual build process.
Cabal's copy command will run strip on a shared library to remove all the symbols. Logically I ran stack with the --no-copy-bins flag to prevent it from running cabal copy.
But this didn't help, looking at the verbose output, copy is still run:
Note the docs for --no-copy-bins - Enable/disable copying binaries to the local-bin-path. This does not actually invoke the cabal copy command. Instead, it's literally just copying the executables.
To me it seems broken that cabal would modify the inplace files upon cabal copy... So I suppose there is now a usecase for disabling copy?
I think what we really want is to be able to pass --disable-library-stripping in to cabal configure. See also #1342#1438#846
I recently encountered an issue where a shared library ends up without symbols after invoking
stack build
. At first I thought this was a bug in stack sincecabal build
did fine. I reported this in #1925, but after further investigating this issue I found out that stack invokescabal copy
after the actual build process.Cabal's copy command will run strip on a shared library to remove all the symbols. Logically I ran stack with the
--no-copy-bins
flag to prevent it from runningcabal copy
.But this didn't help, looking at the verbose output, copy is still run:
The text was updated successfully, but these errors were encountered: