Opened 4 months ago

Last modified 4 months ago

#70362 new defect

ghc: build failure: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]

Reported by: i0ntempest Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: essandess (Steve Smith)
Port: ghc

Description (last modified by i0ntempest)

:info:build | Run GhcPkg Update Stage1: _build/stage1/libraries/ghc-boot-th/inplace-pkg-config => none
:info:build In file included from rts/linker/SymbolExtras.c:12:0: error: 
:info:build In file included from rts/LinkerInternals.h:11:0: error: 
:info:build In file included from rts/include/Rts.h:38:0: error: 
:info:build In file included from rts/include/Stg.h:415:0: error: 
:info:build rts/include/stg/SMP.h:593:38: error:
:info:build      warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
:info:build     |
:info:build 593 | EXTERN_INLINE void write_barrier     () {} /* nothing */
:info:build     |                                      ^
:info:build EXTERN_INLINE void write_barrier     () {} /* nothing */
:info:build                                      ^
:info:build                                       void
:info:build rts/include/stg/SMP.h:594:38: error:
:info:build      warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
:info:build     |
:info:build 594 | EXTERN_INLINE void store_load_barrier() {} /* nothing */
:info:build     |                                      ^
:info:build EXTERN_INLINE void store_load_barrier() {} /* nothing */
:info:build                                      ^
:info:build                                       void
:info:build rts/include/stg/SMP.h:595:38: error:
:info:build      warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
:info:build     |
:info:build 595 | EXTERN_INLINE void load_load_barrier () {} /* nothing */
:info:build     |                                      ^
:info:build EXTERN_INLINE void load_load_barrier () {} /* nothing */
:info:build                                      ^
:info:build                                       void
:info:build 3 warnings generated.

Looks like this should be just a warning, but ghc build process treated it as an error. This is on macOS 14.5 arm64.

Attachments (2)

main.log (2.0 MB) - added by i0ntempest 4 months ago.
main.log.zip (847.9 KB) - added by i0ntempest 4 months ago.

Change History (5)

Changed 4 months ago by i0ntempest

Attachment: main.log added

comment:1 Changed 4 months ago by i0ntempest

Description: modified (diff)

comment:2 Changed 4 months ago by i0ntempest

Okay, looks like the actual problem might not be that. I made the build output more verbose, this is the error:

:info:build Installing executable
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/rts/build/libffi.dylib
:info:build to _build/stage1/lib/../lib/aarch64-osx-ghc-9.6.6/libffi.dylib
:info:build /usr/bin/clang returned ExitFailure 1
:info:build /usr/bin/clang returned ExitFailure 1 with error message:
:info:build ld: library 'NONE' not found
:info:build clang: error: linker command failed with exit code 1 (use -v to see
:info:build invocation)
:info:build Running: /usr/bin/clang '--target=arm64-apple-darwin' '--target=arm64-apple-darwin' -Wl,-no_fixup_chains -Wl,-no_warn_duplicate_libraries /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.tmp/7646-1964.c -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.tmp/7646-1965 -lNONE -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../libraries/base/build -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../libraries/ghc-bignum/build -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../libraries/ghc-prim/build -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../rts/build '--target=arm64-apple-darwin' -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/libraries/terminfo '--target=arm64-apple-darwin' '--target=arm64-apple-darwin' -Wl,-no_fixup_chains -Wl,-no_warn_duplicate_libraries
:info:build with environment: [("CABAL_CONFIG","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/config"),("CC","/usr/bin/clang"),("CCACHE_DIR","/opt/local/var/macports/build/.ccache"),("CC_PRINT_OPTIONS","YES"),("CC_PRINT_OPTIONS_FILE","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.CC_PRINT_OPTIONS"),("CFLAGS","-Os"),("COLUMNS","160"),("CPATH","/opt/local/include"),("CPP","/usr/bin/cpp"),("CPPFLAGS","-I/opt/local/include"),("CXX","/usr/bin/clang++"),("CXXFLAGS","-Os -std=gnu++11 -stdlib=libc++"),("DEVELOPER_DIR","/Library/Developer/CommandLineTools"),("DISPLAY","/private/tmp/com.apple.launchd.19bNWrefbg/org.macports:0"),("GHC","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin/ghc"),("HOME","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home"),("LANG","en_US.UTF-8"),("LD","/opt/local/bin/ld"),("LDFLAGS","-L/opt/local/lib -Wl,-headerpad_max_install_names"),("LIBRARY_PATH","/opt/local/lib"),("LINES","47"),("LLC","/opt/local/bin/llc-mp-15"),("MACOSX_DEPLOYMENT_TARGET","14.0"),("MACPORTS_LEGACY_SUPPORT_DISABLED","1"),("NO_PROXY","127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,*.crashlytics.com,<local>"),("OLDPWD","/opt/local/var/macports"),("OPT","/opt/local/bin/opt-mp-15"),("PATH","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"),("SDKROOT","/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk"),("TMPDIR","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.tmp"),("USER","root")]
:info:build | Run GhcPkg Recache Stage1: none => none
:info:build | Remove file _build/stage1/libraries/integer-gmp/.dependencies.mk.bak
:info:build | KeyValues oracle: reading '_build/stage1/libraries/integer-gmp/.dependencies'...
:info:build # _build/stage1/libraries/base/build/GHC/Integer.hi
:info:build # _build/stage1/libraries/base/build/Control/Exception.hi
:info:build # _build/stage1/libraries/base/build/GHC/Natural.hi
:info:build # _build/stage1/libraries/base/build/GHC/Exts.hi
:info:build # _build/stage1/libraries/base/build/GHC/Integer.p_hi
:info:build # _build/stage1/libraries/base/build/GHC/Natural.p_hi
:info:build # _build/stage1/libraries/base/build/GHC/Exts.p_hi
:info:build # _build/stage1/libraries/base/build/Control/Exception.p_hi
:info:build /usr/bin/clang returned ExitFailure 1
:info:build /usr/bin/clang returned ExitFailure 1 with error message:
:info:build ld: library 'NONE' not found
:info:build clang: error: linker command failed with exit code 1 (use -v to see
:info:build invocation)
:info:build Running: /usr/bin/clang '--target=arm64-apple-darwin' '--target=arm64-apple-darwin' -Wl,-no_fixup_chains -Wl,-no_warn_duplicate_libraries /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.tmp/7646-1967.c -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.tmp/7646-1968 -lNONE -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../libraries/base/build -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../libraries/ghc-bignum/build -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../libraries/ghc-prim/build -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../rts/build '--target=arm64-apple-darwin' -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/libraries/terminfo '--target=arm64-apple-darwin' '--target=arm64-apple-darwin' -Wl,-no_fixup_chains -Wl,-no_warn_duplicate_libraries
:info:build with environment: [("CABAL_CONFIG","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/config"),("CC","/usr/bin/clang"),("CCACHE_DIR","/opt/local/var/macports/build/.ccache"),("CC_PRINT_OPTIONS","YES"),("CC_PRINT_OPTIONS_FILE","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.CC_PRINT_OPTIONS"),("CFLAGS","-Os"),("COLUMNS","160"),("CPATH","/opt/local/include"),("CPP","/usr/bin/cpp"),("CPPFLAGS","-I/opt/local/include"),("CXX","/usr/bin/clang++"),("CXXFLAGS","-Os -std=gnu++11 -stdlib=libc++"),("DEVELOPER_DIR","/Library/Developer/CommandLineTools"),("DISPLAY","/private/tmp/com.apple.launchd.19bNWrefbg/org.macports:0"),("GHC","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin/ghc"),("HOME","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home"),("LANG","en_US.UTF-8"),("LD","/opt/local/bin/ld"),("LDFLAGS","-L/opt/local/lib -Wl,-headerpad_max_install_names"),("LIBRARY_PATH","/opt/local/lib"),("LINES","47"),("LLC","/opt/local/bin/llc-mp-15"),("MACOSX_DEPLOYMENT_TARGET","14.0"),("MACPORTS_LEGACY_SUPPORT_DISABLED","1"),("NO_PROXY","127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,*.crashlytics.com,<local>"),("OLDPWD","/opt/local/var/macports"),("OPT","/opt/local/bin/opt-mp-15"),("PATH","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"),("SDKROOT","/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk"),("TMPDIR","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.tmp"),("USER","root")]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin/haddock
:info:build is version 2.29.2
:info:build Running: /opt/local/bin/happy --version
:info:build /usr/bin/clang returned ExitFailure 1
:info:build /usr/bin/clang returned ExitFailure 1 with error message:
:info:build ld: library 'NONE' not found
:info:build clang: error: linker command failed with exit code 1 (use -v to see
:info:build invocation)
:info:build Running: /usr/bin/clang '--target=arm64-apple-darwin' '--target=arm64-apple-darwin' -Wl,-no_fixup_chains -Wl,-no_warn_duplicate_libraries /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.tmp/7646-1969.c -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.tmp/7646-1970 -c '-D__GLASGOW_HASKELL__=906' '-Ddarwin_BUILD_OS=1' '-Daarch64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Daarch64_HOST_ARCH=1' -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/libraries/terminfo/build/autogen -Ilibraries/terminfo -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//libraries/base/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//_build/stage1/libraries/base/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//libraries/ghc-bignum/include/ -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//_build/stage1/libraries/ghc-bignum/build/include/ -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//libraries/ghc-bignum/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//_build/stage1/libraries/ghc-bign/opt/local/bin/happy is version 1.20.1.1
:info:build um/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//rts/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//_build/stage1/rts/build/include '-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//rts/@FFIIncludeDir@' '-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//_build/stage1/rts/build/@FFIIncludeDir@' '-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//rts/@LibdwIncludeDir@' '-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage1/inplace/../../..//_build/stage1/rts/build/@LibdwIncludeDir@' '--target=arm64-apple-darwin' -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/libraries/terminfo '--target=arm64-apple-darwin' '--target=arm64-apple-darwin' -Wl,-no_fixup_chains -Wl,-no_warn_duplicate_libraries
:info:build Searching for hmake in path.
:info:build Cannot find hmake on the path
:info:build with environment: [("CABAL_CONFIG","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/config"),("CC","/usr/bin/clang"),("CCACHE_DIR","/opt/local/var/macports/build/.ccache"),("CC_PRINT_OPTIONS","YES"),("CC_PRINT_OPTIONS_FILE","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.CC_PRINT_OPTIONS"),("CFLAGS","-Os"),("COLUMNS","160"),("CPATH","/opt/local/include"),("CPP","/usr/bin/cpp"),("CPPFLAGS","-I/opt/local/include"),("CXX","/usr/bin/clang++"),("CXXFLAGS","-Os -std=gnu++11 -stdlib=libc++"),("DEVELOPER_DIR","/Library/Developer/CommandLineTools"),("DISPLAY","/private/tmp/com.apple.launchd.19bNWrefbg/org.macports:0"),("GHC","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin/ghc"),("HOME","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home"),("LANG","en_US.UTF-8"),("LD","/opt/local/bin/ld"),("LDFLAGS","-L/opt/local/lib -Wl,-headerpad_max_install_names"),("LIBRARY_PATH","/opt/local/lib"),("LINES","47"),("LLC","/opt/local/bin/llc-mp-15"),("MACOSX_DEPLOYMENT_TARGET","14.0"),("MACPORTS_LEGACY_SUPPORT_DISABLED","1"),("NO_PROXY","127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,*.crashlytics.com,<local>"),("OLDPWD","/opt/local/var/macports"),("OPT","/opt/local/bin/opt-mp-15"),("PATH","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"),("SDKROOT","/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk"),("TMPDIR","/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.tmp"),("USER","root")]
:info:build looking for tool hpc near compiler in
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage0/bin
:info:build candidate locations:
:info:build ["/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.6/_build/stage0/bin/hpc"]
:info:build Searching for hpc in path.
:info:build Found hpc at
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin/hpc
:info:build Running: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/.home/.cabal/bin/hpc version
:info:build CallStack (from HasCallStack):
:info:build   withMetadata, called at libraries/Cabal/Cabal/src/Distribution/Simple/Utils.hs:368:14 in Cabal-3.10.3.0:Distribution.Simple.Utils
:info:build Error: hadrian: Missing dependency on a foreign library:
:info:build * Missing (or bad) C library: NONE
:info:build This problem can usually be solved by installing the system package that
:info:build provides this library (you may need the "-dev" version). If the library is
:info:build already installed but in a non-standard location then you can use the flags
:info:build --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
:info:build library file does exist, it may contain errors that are caught by the C
:info:build compiler at the preprocessing stage. In this case you can re-run configure
:info:build with the verbosity flag -v3 to see the error messages.
:info:build hadrian: getProcessGroupIDOf: does not exist (No such process)
:info:build Error when running Shake build system:
:info:build   at want, called at src/Main.hs:124:44 in main:Main
:info:build * Depends on: binary-dist-dir
:info:build   at need, called at src/Rules/BinaryDist.hs:130:9 in main:Rules.BinaryDist
:info:build * Depends on: _build/stage1/lib/package.conf.d/terminfo-0.4.1.6.conf
:info:build   at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shk-0.19.7-4c15e00a:Development.Shake.Internal.Rules.Oracle
:info:build * Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "terminfo", pkgPath = "libraries/terminfo"}, way = v, iplace = Final}))
:info:build   at need, called at src/Hadrian/Oracles/Cabal/Rules.hs:54:9 in main:Hadrian.Oracles.Cabal.Rules
:info:build * Depends on: _build/stage1/libraries/terminfo/setup-config
:info:build * Raised the exception:
:info:build ExitFailure 1
:info:build Build failed.

I don't know why the compiler is trying to link lNONE.

Changed 4 months ago by i0ntempest

Attachment: main.log.zip added

comment:3 Changed 4 months ago by i0ntempest

Figured it out: ${worksrcpath}libraries/terminfo/configure was executed using an incompatible shell, due to a symlink that I created on my system. The script immediately exited with an unexpected operator error but the build process did not catch it and just continued on.

We probably should find a way to force this script to be executed using /bin/sh. It's not respecting its shebang line.

Note: See TracTickets for help on using tickets.