Repository navigation
network 3.1.2.1, 3.1.2.2 fail to build with GHC 8.10.5 on Mac OS Catalina #500
Description
Activity
I can confirm this behavior. Building network-3.1.2.2 with GHC-8.10.5 on Github actions runner with macOS-latest hangs.
Current runner version: '2.278.0' Operating System: Mac OS X 10.15.7 19H1217 Virtual Environment: Environment: macos-10.15 Version: 20210607.1 ghc --version The Glorious Glasgow Haskell Compilation System, version 8.10.5 cabal --version cabal-install version 3.4.0.0 compiled using version 3.4.0.0 of the Cabal library shell: /bin/bash -e {0}Build profile: -w ghc-8.10.5 -O1 ... Building network-3.1.2.2 (all, legacy fallback)This problem may be specific to Github actions. I was able to build network-3.1.2.2 on macOS Big Sur (Version 11.3) with GHC-8.10.5 on a laptop.
Reacted by Peter Becich- changed the title
[-]`network-3.1.2.1` fails to build with GHC 8.10.5 on Mac[/-][+]network 3.1.2.1, 3.1.2.2 fail to build with GHC 8.10.5 on Mac OS Catalina[/+]on Jun 15, 2021 Thanks @larskuhtz , I observe this behavior on my laptop running Catalina:
config.status: creating include/HsNetworkConfig.h config.status: include/HsNetworkConfig.h is unchanged configure: WARNING: unrecognized options: --with-compiler Preprocessing library for network-3.1.2.2..I'm guessing your version of Clang must be at least 12.0.5: https://en.wikipedia.org/wiki/Xcode#Xcode_11.x_-_13.x_(since_SwiftUI_framework)_2 My version is 12.0.0. Maybe that is the critical difference.
No issue with GHC 9.0.1:
% cabal build Resolving dependencies... Build profile: -w ghc-9.0.1 -O1 In order, the following will be built (use -v for more details): - network-3.1.2.2 (lib:network) (first run) Configuring network-3.1.2.2... configure: WARNING: unrecognized options: --with-compiler .... configure: creating ./network.buildinfo configure: creating ./config.status config.status: creating include/HsNetworkConfig.h configure: WARNING: unrecognized options: --with-compiler Preprocessing library for network-3.1.2.2.. Building library for network-3.1.2.2..Success
A little more information:
% cabal build -v ... Preprocessing library for network-3.1.2.2.. creating ..../network/dist-newstyle/build/x86_64-osx/ghc-8.10.5/network-3.1.2.2/build/Network/Socket/ByteString ~/.ghcup/bin/hsc2hs '..../network/dist-newstyle/build/x86_64-osx/ghc-8.10.5/network-3.1.2.2/build/Network/Socket/ByteString/hsc2hs-response10750-0.txt'The version of
~/.ghcup/bin/hsc2hs:% hsc2hs --version hsc2hs version 0.68.7I'm guessing your version of Clang must be at least 12.0.5: https://en.wikipedia.org/wiki/Xcode#Xcode_11.x_-_13.x_(since_SwiftUI_framework)_2 My version is 12.0.0. Maybe that is the critical difference.
yes, my laptop has 12.0.5:
$ clang --version Apple clang version 12.0.5 (clang-1205.0.22.9) Target: x86_64-apple-darwin20.4.0
$ hsc2hs --version hsc2hs version 0.68.7
Reacted by Peter Becich- Reacted by Peter Becich
#500 (comment)
Thanks, I was unaware of thisThis is due to GHC. Let's close.
The build stalls on the last step.
Build is successful with GHC 8.10.4.
Is it
configure: WARNING: unrecognized options: --with-compiler?Thank you