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
{{ message }}
Repository navigation
Can't supply extra include dirs or extra library dirs on Windows #7096
Describe the bug
Using cabal-3.2.0.0 on Windows. Cabal thinks that absolute paths I pass in are relative paths.
For example:
cabal build all --extra-lib-dirs=C:\\Users\\newho\\wrk\\iohk\\cardano-node\\libsodium-win64\\lib --extra-include-dirs=c:\\Users\\newho\\wrk\\iohk\\cardano-node\\libsodium-win64\\include
The error I get is
cardano-crypto-class-2.0.0: dynamic-library-dirs:
/c/Users/newho/wrk/iohk/cardano-node/libsodium-win64/lib is a relative path
which makes no sense (as there is nothing for it to be relative to). You can
make paths relative to the package database itself by using ${pkgroot}. (use
--force to override)
To Reproduce
Steps to reproduce the behavior:
One Windows, in bash shell (from git bash prompt):
I can also report that this similarly fails in Command Prompt. In this case, I run:
C:\Users\newho\wrk\iohk\cardano-node>cabal build all --extra-lib-dirs=C:\Users\newho\wrk\iohk\cardano-node\libsodium-win64\lib --extra-include-dirs=c:\Users\newho\wrk\iohk\cardano-node\libsodium-win64\include
Expected behavior
This should work.
System information
Windows 10
cabal-.3.2.0.0, ghc-8.6.5 installed via Chocolatey
Activity
jneira commentedon Apr 1, 2022
#2705 reported the same bad behaviour but for
cabal v1-installIn that case setting
did the workaround an i guess it would do for this one
jasagredo commentedon Jul 18, 2024
This doesn't happen on latest cabal:
No mention to the warning shown above. I'm closing it, re-open if you disagree