From e181007243a08f8932accb72e771d04813fd04db Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Fri, 14 Jun 2024 16:04:11 +0800 Subject: [PATCH] Disable simd on bitvec dependency This should hopefully make errors like the following go away (until we have the linker/loader for w32 fixed for c++ dependencies): ``` 008c:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L"C:\\windows\\inf\\wineusb.inf" wine: failed to open L"C:\\windows\\syswow64\\rundll32.exe": c0000135 wine: configuration in L"/build" has been updated. Listening on port 7200 iserv-proxy-interpreter.exe:|/nix/store/wi52hmyajdncvx8yhkyrwc6phq0cj3dw-bitv ec-lib-bitvec-x86_64-w64-mingw32-1.1.5.0/lib/x86_64-windows-ghc-9.6.4/bitvec-1.1 .5.0-CuwZlpVmbRn6Ve35hpelj8/HSbitvec-1.1.5.0-CuwZlpVmbRn6Ve35hpelj8.o:unknown s ymbol`__cpu_model' iserv-proxy-interpreter.exe:CouldnotloadObjectCode/nix/store/wi52hmyajdncv x8yhkyrwc6phq0cj3dw-bitvec-lib-bitvec-x86_64-w64-mingw32-1.1.5.0/lib/x86_64-wind ows-ghc-9.6.4/bitvec-1.1.5.0-CuwZlpVmbRn6Ve35hpelj8/HSbitvec-1.1.5.0-CuwZlpVmbRn 6Ve35hpelj8.o. : error: unable to load unit `bitvec-1.1.5.0' [ 17 of 186] Compiling PlutusCore.Pretty.ConfigName ( plutus-core/src/PlutusCore/Pretty/ConfigName.hs, dist/build/PlutusCore/Pretty/ConfigName.o ) [ 18 of 186] Compiling PlutusPrelude ( prelude/PlutusPrelude.hs, dist/build/PlutusPrelude.o ) [ 19 of 186] Compiling PlutusCore.Version ( plutus-core/src/PlutusCore/Version.hs, dist/build/PlutusCore/Version.o ) 0024:err:seh:call_stack_handlers invalid frame 00007FFFFF662F60 (0000000000022000-0000000000220000) 0024:err:seh:NtRaiseException Exception frame is not in stack limits => unable to dispatch exception. iserv-proxy: {handle: }: GHCi.Message.remoteCall: end of file : error: ghc-iserv terminated (1) ``` --- cabal.project | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cabal.project b/cabal.project index 8120fc833a..e4fdd2783f 100644 --- a/cabal.project +++ b/cabal.project @@ -28,6 +28,11 @@ package cryptonite -- generation is dubious. Set the flag so we use /dev/urandom by default. flags: -support_rdrand +-- disable c++ nonsense on bitvec, to make it compile. The windows linker/loader +-- chokes on c++ dependencies. +package bitvec + flags: -simd + constraints: -- io-classes-mtl-0.1.2.0 is not buildable io-classes-mtl < 0.1.2.0