I found that it was because stack was wrapped in proxychains. It builds by executing stack build, without any wrappings. I apologize for the disturbance.
Regards, Guanpeng Xu On Fri, Feb 11, 2022 at 12:23 PM herber...@gmail.com <herberteu...@gmail.com> wrote: > Hello, > > I have the following error while building a package: > > network > configure > network > [1 of 2] Compiling Main ( > /private/var/folders/sn/_g33_wb94_332h0y40m_4qsm0000gn/T/stack-2fca438e4d2d5c06/network-3.1.1.1/Setup.hs, > /private/var/folders/sn/_g33_wb94_332h0y40m_4qsm0000gn/T/stack-2fca438e4d2d5c06/network-3.1.1.1/.stack-work/dist/x86_64-osx/Cabal-3.2.1.0/setup/Main.o > ) > network > [2 of 2] Compiling StackSetupShim ( > /Users/zhujun/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, > /private/var/folders/sn/_g33_wb94_332h0y40m_4qsm0000gn/T/stack-2fca438e4d2d5c06/network-3.1.1.1/.stack-work/dist/x86_64-osx/Cabal-3.2.1.0/setup/StackSetupShim.o > ) > network > Linking > /private/var/folders/sn/_g33_wb94_332h0y40m_4qsm0000gn/T/stack-2fca438e4d2d5c06/network-3.1.1.1/.stack-work/dist/x86_64-osx/Cabal-3.2.1.0/setup/setup > ... > network > [proxychains] DLL init: proxychains-ng 4.12 > network > Configuring network-3.1.1.1... > network > couldnt find configuration file: No such file or > directory > Progress 1/76 > > -- While building package network-3.1.1.1 (scroll up to its section to > see the error) using: > > /private/var/folders/sn/_g33_wb94_332h0y40m_4qsm0000gn/T/stack-2fca438e4d2d5c06/network-3.1.1.1/.stack-work/dist/x86_64-osx/Cabal-3.2.1.0/setup/setup > --builddir=.stack-work/dist/x86_64-osx/Cabal-3.2.1.0 configure --user > --package-db=clear --package-db=global > --package-db=/Users/zhujun/.stack/snapshots/x86_64-osx/c21f5bf78556c65ea81f079742401687dea43b25b90c88cb3772ed668f964b2e/8.10.7/pkgdb > --libdir=/Users/zhujun/.stack/snapshots/x86_64-osx/c21f5bf78556c65ea81f079742401687dea43b25b90c88cb3772ed668f964b2e/8.10.7/lib > --bindir=/Users/zhujun/.stack/snapshots/x86_64-osx/c21f5bf78556c65ea81f079742401687dea43b25b90c88cb3772ed668f964b2e/8.10.7/bin > --datadir=/Users/zhujun/.stack/snapshots/x86_64-osx/c21f5bf78556c65ea81f079742401687dea43b25b90c88cb3772ed668f964b2e/8.10.7/share > --libexecdir=/Users/zhujun/.stack/snapshots/x86_64-osx/c21f5bf78556c65ea81f079742401687dea43b25b90c88cb3772ed668f964b2e/8.10.7/libexec > --sysconfdir=/Users/zhujun/.stack/snapshots/x86_64-osx/c21f5bf78556c65ea81f079742401687dea43b25b90c88cb3772ed668f964b2e/8.10.7/etc > --docdir=/Users/zhujun/.stack/snapshots/x86_64-osx/c21f5bf78556c65ea81f079742401687dea43b25b90c88cb3772ed668f964b2e/8.10.7/doc/network-3.1.1.1 > --htmldir=/Users/zhujun/.stack/snapshots/x86_64-osx/c21f5bf78556c65ea81f079742401687dea43b25b90c88cb3772ed668f964b2e/8.10.7/doc/network-3.1.1.1 > --haddockdir=/Users/zhujun/.stack/snapshots/x86_64-osx/c21f5bf78556c65ea81f079742401687dea43b25b90c88cb3772ed668f964b2e/8.10.7/doc/network-3.1.1.1 > --dependency=base=base-4.14.3.0 > --dependency=bytestring=bytestring-0.10.12.0 > --dependency=deepseq=deepseq-1.4.4.0 --exact-configuration > --ghc-option=-fhide-source-paths > Process exited with code: ExitFailure 1 > > The system is Mac Mojave. Stack is > > Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f > x86_64 hpack-0.34.4 > > The resolver is > > resolver: > url: > https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/24.yaml > > What could be the reason and how to fix it? > Thanks. > > Regards, > Guanpeng Xu > > -- > You received this message because you are subscribed to a topic in the > Google Groups "haskell-stack" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/haskell-stack/4LnXbvqIbNY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > haskell-stack+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/haskell-stack/0edde59b-4c52-4067-91a0-4f271e6d26b8n%40googlegroups.com > <https://groups.google.com/d/msgid/haskell-stack/0edde59b-4c52-4067-91a0-4f271e6d26b8n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "haskell-stack" group. To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CA%2BF6Sm4dONhqHaqu_AHTZn_1%3Dm7Pu%3DsAaB8WjKNco_fMT6fQig%40mail.gmail.com.