Solved GHC-8.6.5_3

Any suggestions for this error? Thanks.
Code:
===>   ghc-8.6.5_3 depends on shared library: libiconv.so - found (/usr/local/lib/libiconv.so)
===>   Returning to build of ghc-8.6.5_3
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for ghc-8.6.5_3
cp -f /wrkdirs/usr/ports/lang/ghc/work/build.mk /wrkdirs/usr/ports/lang/ghc/work/ghc-8.6.5/mk/build.mk
cd /wrkdirs/usr/ports/lang/ghc/work/ghc-8.4.3-boot && CC=/usr/local/bin/clang60 LD==/usr/local/llvm60/bin/ld.lld PATH=/wrkdirs/usr/ports/lang/ghc/work/slaves_prefix/bin:/wrkdirs/usr/ports/lang/ghc/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/nonexistent/bin MAKE=gmake ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl  PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/lang/ghc/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/ghc/work  HOME=/wrkdirs/usr/ports/lang/ghc/work TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local" LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144 ./configure --prefix=/wrkdirs/usr/ports/lang/ghc/work/ghc-8.4.3-boot
configure: loading site script /usr/ports/Templates/config.site
checking build system type... amd64-unknown-freebsd11.3
checking host system type... amd64-unknown-freebsd11.3
checking target system type... amd64-unknown-freebsd11.3
Build platform inferred as: x86_64-portbld-freebsd
Host platform inferred as: x86_64-portbld-freebsd
Target platform inferred as: x86_64-portbld-freebsd
GHC build  : x86_64-portbld-freebsd
GHC host   : x86_64-portbld-freebsd
GHC target : x86_64-portbld-freebsd
LLVM target: amd64-unknown-freebsd
checking for path to top of build tree... /wrkdirs/usr/ports/lang/ghc/work/ghc-8.4.3-boot
checking for perl... /usr/local/bin/perl
checking for a BSD-compatible install... (cached) /usr/bin/install
checking for gfind... no
checking for find... /usr/bin/find
checking whether ln -s works... yes
checking for gsed... sed
checking whether the C compiler works... no
configure: error: in `/wrkdirs/usr/ports/lang/ghc/work/ghc-8.4.3-boot':
configure: error: C compiler cannot create executables
See `config.log' for more details
*** Error code 77

Stop.
make: stopped in /usr/ports/lang/ghc
=>> Cleaning up wrkdir
===>  Cleaning for ghc-8.6.5_3
build of lang/ghc | ghc-8.6.5_3 ended at Wed Jul 31 09:08:56 AWST 2019
build time: 00:02:24
!!! build failure encountered !!!

It has failed several times even when there was nothing in make.conf.
My make.conf now has these lines among others (default ver for Perl, Python, etc):
Code:
.if ${.CURDIR:M*/lang/ghc}
COMPILER_TYPE=clang
CC=/usr/local/bin/clang60
CXX=/usr/local/bin/clang++60
CPP=/usr/local/bin/clang-cpp60
LD==/usr/local/llvm60/bin/ld.lld
NM=/usr/local/llvm60/bin/llvm-nm
OBJDUMP=/usr/local/llvm60/bin/llvm-objdump
STRINGS=/usr/local/llvm60/bin/llvm-strings
.endif
 
The excerpt of the config log is in the first code tag.
I don't see anything from a config.log file there. You've just quoted the output of make.
You need to dig into config.log and search for 'C compiler cannot create executables', it will tell you what's the problem.
 
Code:
# When linking an archive the linker will only include the object files that
# are actually needed during linking. It therefore does not include the dtrace
# specific code for initializing the probes. By creating a single object that
# also includes the probe object code we force the linker to include the
# probes when linking the static runtime.
#
# The reason why we are re-linking all the objects into a single object file
# is stated in this thread:
# https://thr3ads.net/dtrace-discuss/2005/08/384778-Problem-with-probes-defined-in-static-libraries
ld -r -o rts/dist/build/RTS.o rts/dist/build/RtsProbes.o rts/dist/build/fs.o rts/dist/build/Printer.o rts/dist/build/ThreadPaused.o rts/dist/build/ClosureFlags.o rts/dist/build/LibdwPool.o rts/dist/build/Hpc.o rts/dist/build/Ticky.o rts/dist/build/Inlines.o rts/dist/build/RtsMain.o rts/dist/build/PathUtils.o rts/dist/build/RtsSymbols.o rts/dist/build/StaticPtrTable.o rts/dist/build/ThreadLabels.o rts/dist/build/STM.o rts/dist/build/OldARMAtomic.o rts/dist/build/HsFFI.o rts/dist/build/RtsAPI.o rts/dist/build/Timer.o rts/dist/build/Disassembler.o rts/dist/build/CheckUnload.o rts/dist/build/RtsSymbolInfo.o rts/dist/build/RaiseAsync.o rts/dist/build/Proftimer.o rts/dist/build/Hash.o rts/dist/build/Trace.o rts/dist/build/Threads.o rts/dist/build/Sparks.o rts/dist/build/Weak.o rts/dist/build/RtsUtils.o rts/dist/build/ProfilerReportJson.o rts/dist/build/Task.o rts/dist/build/StgCRun.o rts/dist/build/LdvProfile.o rts/dist/build/RetainerProfile.o rts/dist/build/Libdw.o rts/dist/build/Stats.o rts/dist/build/Interpreter.o rts/dist/build/Messages.o rts/dist/build/Capability.o rts/dist/build/Globals.o rts/dist/build/Adjustor.o rts/dist/build/Schedule.o rts/dist/build/RtsDllMain.o rts/dist/build/ProfilerReport.o rts/dist/build/TopHandler.o rts/dist/build/xxhash.o rts/dist/build/WSDeque.o rts/dist/build/Pool.o rts/dist/build/StgPrimFloat.o rts/dist/build/RtsStartup.o rts/dist/build/RetainerSet.o rts/dist/build/Profiling.o rts/dist/build/RtsMessages.o rts/dist/build/RtsFlags.o rts/dist/build/Linker.o rts/dist/build/FileLock.o rts/dist/build/Stable.o rts/dist/build/Arena.o rts/dist/build/Heap.o rts/dist/build/ProfHeap.o rts/dist/build/sm/Scav_thr.o rts/dist/build/sm/Storage.o rts/dist/build/sm/Evac.o rts/dist/build/sm/Sanity.o rts/dist/build/sm/GC.o rts/dist/build/sm/MarkWeak.o rts/dist/build/sm/Evac_thr.o rts/dist/build/sm/BlockAlloc.o rts/dist/build/sm/GCUtils.o rts/dist/build/sm/GCAux.o rts/dist/build/sm/Sweep.o rts/dist/build/sm/CNF.o rts/dist/build/sm/Compact.o rts/dist/build/sm/Scav.o rts/dist/build/sm/MBlock.o rts/dist/build/eventlog/EventLog.o rts/dist/build/eventlog/EventLogWriter.o rts/dist/build/linker/elf_util.o rts/dist/build/linker/elf_reloc.o rts/dist/build/linker/LoadArchive.o rts/dist/build/linker/elf_plt_arm.o rts/dist/build/linker/SymbolExtras.o rts/dist/build/linker/CacheFlush.o rts/dist/build/linker/Elf.o rts/dist/build/linker/elf_got.o rts/dist/build/linker/M32Alloc.o rts/dist/build/linker/elf_plt_aarch64.o rts/dist/build/linker/elf_plt.o rts/dist/build/linker/PEi386.o rts/dist/build/linker/MachO.o rts/dist/build/linker/elf_reloc_aarch64.o rts/dist/build/posix/GetEnv.o rts/dist/build/posix/Select.o rts/dist/build/posix/Signals.o rts/dist/build/posix/TTY.o rts/dist/build/posix/Itimer.o rts/dist/build/posix/OSThreads.o rts/dist/build/posix/GetTime.o rts/dist/build/posix/OSMem.o rts/dist/build/PrimOps.o rts/dist/build/StgMiscClosures.o rts/dist/build/HeapStackCheck.o rts/dist/build/StgStdThunks.o rts/dist/build/Compact.o rts/dist/build/Apply.o rts/dist/build/Exception.o rts/dist/build/Updates.o rts/dist/build/StgStartup.o rts/dist/build/AutoApply.o
"rm" -f rts/dist/build/libHSrts.a
echo rts/dist/build/RTS.o rts/dist/build/hooks/StackOverflow.o rts/dist/build/hooks/LongGCSync.o rts/dist/build/hooks/OnExit.o rts/dist/build/hooks/FlagDefaults.o rts/dist/build/hooks/MallocFail.o rts/dist/build/hooks/OutOfHeap.o | "xargs"  "ar" qcls  rts/dist/build/libHSrts.a
  rts_dist_HC rts/dist/build/fs.p_o
  rts_dist_HC rts/dist/build/Printer.p_o
  rts_dist_HC rts/dist/build/ThreadPaused.p_o
  rts_dist_HC rts/dist/build/ClosureFlags.p_o
  rts_dist_HC rts/dist/build/LibdwPool.p_o
  rts_dist_HC rts/dist/build/Hpc.p_o
  rts_dist_HC rts/dist/build/Ticky.p_o
  rts_dist_HC rts/dist/build/Inlines.p_o
  rts_dist_HC rts/dist/build/RtsMain.p_o
  rts_dist_HC rts/dist/build/PathUtils.p_o
  rts_dist_HC rts/dist/build/RtsSymbols.p_o
  rts_dist_HC rts/dist/build/StaticPtrTable.p_o
  rts_dist_HC rts/dist/build/ThreadLabels.p_o
  rts_dist_HC rts/dist/build/STM.p_o
  rts_dist_HC rts/dist/build/OldARMAtomic.p_o
  rts_dist_HC rts/dist/build/HsFFI.p_o
  rts_dist_HC rts/dist/build/RtsAPI.p_o
  rts_dist_HC rts/dist/build/Timer.p_o
  rts_dist_HC rts/dist/build/Disassembler.p_o
  rts_dist_HC rts/dist/build/CheckUnload.p_o
  rts_dist_HC rts/dist/build/RtsSymbolInfo.p_o
  rts_dist_HC rts/dist/build/RaiseAsync.p_o
  rts_dist_HC rts/dist/build/Proftimer.p_o
  rts_dist_HC rts/dist/build/Hash.p_o
  rts_dist_HC rts/dist/build/Trace.p_o
  rts_dist_HC rts/dist/build/Threads.p_o
  rts_dist_HC rts/dist/build/Sparks.p_o
  rts_dist_HC rts/dist/build/Weak.p_o
  rts_dist_HC rts/dist/build/RtsUtils.p_o
  rts_dist_HC rts/dist/build/ProfilerReportJson.p_o
  rts_dist_HC rts/dist/build/Task.p_o
  rts_dist_HC rts/dist/build/StgCRun.p_o
  rts_dist_HC rts/dist/build/LdvProfile.p_o
  rts_dist_HC rts/dist/build/RetainerProfile.p_o
  rts_dist_HC rts/dist/build/Libdw.p_o
  rts_dist_HC rts/dist/build/Stats.p_o
  rts_dist_HC rts/dist/build/Interpreter.p_o
  rts_dist_HC rts/dist/build/Messages.p_o
  rts_dist_HC rts/dist/build/Capability.p_o
  rts_dist_HC rts/dist/build/Globals.p_o
  rts_dist_HC rts/dist/build/Adjustor.p_o
  rts_dist_HC rts/dist/build/Schedule.p_o
  rts_dist_HC rts/dist/build/RtsDllMain.p_o
  rts_dist_HC rts/dist/build/ProfilerReport.p_o
  rts_dist_HC rts/dist/b
ource' and will be removed in the next major release.
Running hscolour for template-haskell-2.14.0.0...
Preprocessing library for template-haskell-2.14.0.0..
"/wrkdirs/usr/ports/lang/ghc/work/ghc-8.6.5/inplace/bin/haddock" --verbosity=0 --odir="libraries/template-haskell/dist-install/doc/html/template-haskell" --no-tmp-comp-dir --dump-interface=libraries/template-haskell/dist-install/doc/html/template-haskell/template-haskell.haddock --html --hoogle --quickjump --title="template-haskell-2.14.0.0: Support library for Template Haskell" --prologue="libraries/template-haskell/dist-install/haddock-prologue.txt" --optghc="-D__HADDOCK_VERSION__=2220" --hide=Language.Haskell.TH.Lib.Map --read-interface=../base-4.12.0.0,../base-4.12.0.0/src/%{MODULE/./-}.html\#%{NAME},libraries/base/dist-install/doc/html/base/base.haddock --read-interface=../ghc-boot-th-8.6.5,../ghc-boot-th-8.6.5/src/%{MODULE/./-}.html\#%{NAME},libraries/ghc-boot-th/dist-install/doc/html/ghc-boot-th/ghc-boot-th.haddock --read-interface=../pretty-1.1.3.6,../pretty-1.1.3.6/src/%{MODULE/./-}.html\#%{NAME},libraries/pretty/dist-install/doc/html/pretty/pretty.haddock --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-H32m --optghc=-O --optghc=-I/usr/include --optghc=-L/usr/lib --optghc=-I/usr/local/include --optghc=-L/usr/local/lib --optghc=-Wall --optghc=-this-unit-id --optghc=template-haskell-2.14.0.0 --optghc=-hide-all-packages --optghc=-i --optghc=-ilibraries/template-haskell/. --optghc=-ilibraries/template-haskell/dist-install/build --optghc=-Ilibraries/template-haskell/dist-install/build --optghc=-ilibraries/template-haskell/dist-install/build/./autogen --optghc=-Ilibraries/template-haskell/dist-install/build/./autogen --optghc=-Ilibraries/template-haskell/. --optghc=-optP-include --optghc=-optPlibraries/template-haskell/dist-install/build/./autogen/cabal_macros.h --optghc=-package-id --optghc=base-4.12.0.0 --optghc=-package-id --optghc=ghc-boot-th-8.6.5 --optghc=-package-id --optghc=pretty-1.1.3.6 --optghc=-Wall --optghc=-this-unit-id --optghc=template-haskell --optghc=-XHaskell2010 --optghc=-O2 --optghc=-haddock --optghc=-no-user-package-db --optghc=-rtsopts --optghc=-Wno-deprecated-flags --optghc=-Wnoncanonical-monad-instances --optghc=-odir --optghc=libraries/template-haskell/dist-install/build --optghc=-hidir --optghc=libraries/template-haskell/dist-install/build --optghc=-stubdir --optghc=libraries/template-haskell/dist-install/build --source-module=src/%{MODULE/./-}.html --source-entity=src/%{MODULE/./-}.html#%{NAME}   libraries/template-haskell/./Language/Haskell/TH.hs  libraries/template-haskell/./Language/Haskell/TH/Lib.hs  libraries/template-haskell/./Language/Haskell/TH/Ppr.hs  libraries/template-haskell/./Language/Haskell/TH/PprLib.hs  libraries/template-haskell/./Language/Haskell/TH/Quote.hs  libraries/template-haskell/./Language/Haskell/TH/Syntax.hs  libraries/template-haskell/./Language/Haskell/TH/LanguageExtensions.hs  libraries/template-haskell/./Language/Haskell/TH/Lib/Internal.hs  libraries/template-haskell/./Language/Haskell/TH/Lib/Map.hs   +RTS -t"libraries/template-haskell/dist-install/haddock.t" --machine-readable
Warning: 'thisModule' is out of scope.
    If you qualify the identifier, haddock can try to link it
    it anyway.
Warning: 'dyn' is out of scope.
    If you qualify the identifier, haddock can try to link it
    it anyway.
Warning: 'pprPatSynType' is out of scope.
    If you qualify the identifier, haddock can try to link it
    it anyway.
Warning: 'Strict' is ambiguous. It is defined
    * in ‘GHC.LanguageExtensions.Type’
    * at libraries/template-haskell/Language/Haskell/TH/Syntax.hs:1962:1
    You may be able to disambiguate the identifier by qualifying it or
    by hiding some imports.
    Defaulting to 'Strict' defined at libraries/template-haskell/Language/Haskell/TH/Syntax.hs:1962:1
Warning: 'asmq' is out of scope.
    If you qualify the identifier, haddock can try to link it
    it anyway.
Warning: ':' is out of scope.
    If you qualify the identifier, haddock can try to link it
    it anyway.
"rm" -f libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0.a libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0.a.contents  
echo libraries/ghc-compact/dist-install/build/GHC/Compact.o libraries/ghc-compact/dist-install/build/GHC/Compact/Serialized.o        >> libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0.a.contents
"xargs"  "ar" qcls  libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0.a < libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0.a.contents
"rm" -f libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0.a.contents  
  LD_NO_GOLD libraries/ghc-compact/dist-install/build/HSghc-compact-0.1.0.0.o
  HC [stage 1] libraries/ghc-compact/dist-install/build/GHC/Compact.p_o
  HC [stage 1] libraries/ghc-compact/dist-install/build/GHC/Compact/Serialized.p_o
"rm" -f libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0_p.a libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0_p.a.contents  
echo libraries/ghc-compact/dist-install/build/GHC/Compact.p_o libraries/ghc-compact/dist-install/build/GHC/Compact/Serialized.p_o        >> libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0_p.a.contents
"xargs"  "ar" qcls  libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0_p.a < libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0_p.a.contents
"rm" -f libraries/ghc-compact/dist-install/build/libHSghc-compact-0.1.0.0_p.a.contents  
"inplace/bin/mkdirhier" libraries/ghc-compact/dist-install/doc/html/ghc-compact//.
"inplace/bin/ghc-cabal" hscolour libraries/ghc-compact dist-install
Warning: the 'cabal hscolour' command is deprecated in favour of 'cabal
haddock --hyperlink-source' and will be removed in the next major release.
Running hscolour for ghc-compact-0.1.0.0...
Preprocessing library for ghc-compact-0.1.0.0..
"/wrkdirs/usr/ports/lang/ghc/work/ghc-8.6.5/inplace/bin/haddock" --verbosity=0 --odir="libraries/ghc-compact/dist-install/doc/html/ghc-compact" --no-tmp-comp-dir --dump-interface=libraries/ghc-compact/dist-install/doc/html/ghc-compact/ghc-compact.haddock --html --hoogle --quickjump --title="ghc-compact-0.1.0.0: In memory storage of deeply evaluated data structure" --prologue="libraries/ghc-compact/dist-install/haddock-prologue.txt" --optghc="-D__HADDOCK_VERSION__=2220"  --read-interface=../base-4.12.0.0,../base-4.12.0.0/src/%{MODULE/./-}.html\#%{NAME},libraries/base/dist-install/doc/html/base/base.haddock --read-interface=../bytestring-0.10.8.2,../bytestring-0.10.8.2/src/%{MODULE/./-}.html\#%{NAME},libraries/bytestring/dist-install/doc/html/bytestring/bytestring.haddock --read-interface=../ghc-prim-0.5.3,../ghc-prim-0.5.3/src/%{MODULE/./-}.html\#%{NAME},libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-H32m --optghc=-O --optghc=-I/usr/include --optghc=-L/usr/lib --optghc=-I/usr/local/include --optghc=-L/usr/local/lib --optghc=-Wall --optghc=-this-unit-id --optghc=ghc-compact-0.1.0.0 --optghc=-hide-all-packages --optghc=-i --optghc=-ilibraries/ghc-compact/. --optghc=-ilibraries/ghc-compact/dist-install/build --optghc=-Ilibraries/ghc-compact/dist-install/build --optghc=-ilibraries/ghc-compact/dist-install/build/./autogen --optghc=-Ilibraries/ghc-compact/dist-install/build/./autogen --optghc=-Ilibraries/ghc-compact/. --optghc=-optP-include --optghc=-optPlibraries/ghc-compact/dist-install/build/./autogen/cabal_macros.h --optghc=-package-id --optghc=base-4.12.0.0 --optghc=-package-id --optghc=bytestring-0.10.8.2 --optghc=-package-id --optghc=ghc-prim-0.5.3 --optghc=-Wall --optghc=-XHaskell2010 --optghc=-O2 --optghc=-haddock --optghc=-no-user-package-db --optghc=-rtsopts --optghc=-Wno-deprecated-flags --optghc=-Wnoncanonical-monad-instances --optghc=-odir --optghc=libraries/ghc-compact/dist-install/build --optghc=-hidir --optghc=libraries/ghc-compact/dist-install/build --optghc=-stubdir --optghc=libraries/ghc-compact/dist-install/build --source-module=src/%{MODULE/./-}.html --source-entity=src/%{MODULE/./-}.html#%{NAME}   libraries/ghc-compact/./GHC/Compact.hs  libraries/ghc-compact/./GHC/Compact/Serialized.hs   +RTS -t"libraries/ghc-compact/dist-install/haddock.t" --machine-readable
Warning: 'CompactionFailed' is out of scope.
    If you qualify the identifier, haddock can try to link it
    it anyway.
Warning: 'unsafeInterleaveIO' is out of scope.
    If you qualify the identifier, haddock can try to link it
    it anyway.
Warning: 'ByteString' is out of scope.
    If you qualify the identifier, haddock can try to link it
    it anyway.
  LD_NO_GOLD libraries/ghc-heap/dist-install/build/HSghc-heap-8.6.5.o
  HC [stage 1] libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/ClosureTypes.p_o
  HC [stage 1] libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTable/Types.p_o
  HC [stage 1] libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTable.p_o
  HC [stage 1] libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Constants.p_o
  HC [stage 1] libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Utils.p_o
  HC [stage 1] libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTableProf.p_o
  HC [stage 1] libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Closures.p_o
  HC [stage 1] libraries/ghc-heap/dist-install/build/GHC/Exts/Heap.p_o
  HC [stage 1] libraries/ghc-heap/dist-install/build/cbits/HeapPrim.p_o
"rm" -f libraries/ghc-heap/dist-install/build/libHSghc-heap-8.6.5_p.a libraries/ghc-heap/dist-install/build/libHSghc-heap-8.6.5_p.a.contents  
echo libraries/ghc-heap/dist-install/build/GHC/Exts/Heap.p_o libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Closures.p_o libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/ClosureTypes.p_o libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Constants.p_o libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTable.p_o libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTable/Types.p_o libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTableProf.p_o libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Utils.p_o libraries/ghc-heap/dist-install/build/cbits/HeapPrim.p_o       >> libraries/ghc-heap/dist-install/build/libHSghc-heap-8.6.5_p.a.contents
"xargs"  "ar" qcls  libraries/ghc-heap/dist-install/build/libHSghc-heap-8.6.5_p.a < libraries/ghc-heap/dist-install/build/libHSghc-heap-8.6.5_p.a.contents
"rm" -f libraries/ghc-heap/dist-install/build/libHSghc-heap-8.6.5_p.a.contents  
"inplace/bin/mkdirhier" libraries/ghc-heap/dist-install/doc/html/ghc-heap//.
"inplace/bin/ghc-cabal" hscolour libraries/ghc-heap dist-install
Warning: the 'cabal hscolour' command is deprecated in favour of 'cabal
haddock --hyperlink-source' and will be removed in the next major release.
Running hscolour for ghc-heap-8.6.5...
Preprocessing library for ghc-heap-8.6.5..
"/wrkdirs/usr/ports/lang/ghc/work/ghc-8.6.5/inplace/bin/haddock" --verbosity=0 --odir="libraries/ghc-heap/dist-install/doc/html/ghc-heap" --no-tmp-comp-dir --dump-interface=libraries/ghc-heap/dist-install/doc/html/ghc-heap/ghc-heap.haddock --html --hoogle --quickjump --title="ghc-heap-8.6.5: Functions for walking GHC's heap" --prologue="libraries/ghc-heap/dist-install/haddock-prologue.txt" --optghc="-D__HADDOCK_VERSION__=2220"  --read-interface=../base-4.12.0.0,../base-4.12.0.0/src/%{MODULE/./-}.html\#%{NAME},libraries/base/dist-install/doc/html/base/base.haddock --read-interface=../ghc-prim-0.5.3,../ghc-prim-0.5.3/src/%{MODULE/./-}.html\#%{NAME},libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock  --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-H32m --optghc=-O --optghc=-I/usr/include --optghc=-L/usr/lib --optghc=-I/usr/local/include --optghc=-L/usr/local/lib --optghc=-Wall --optghc=-this-unit-id --optghc=ghc-heap-8.6.5 --optghc=-hide-all-packages --optghc=-i --optghc=-ilibraries/ghc-heap/. --optghc=-ilibraries/ghc-heap/dist-install/build --optghc=-Ilibraries/ghc-heap/dist-install/build --optghc=-ilibraries/ghc-heap/dist-install/build/./autogen --optghc=-Ilibraries/ghc-heap/dist-install/build/./autogen --optghc=-Ilibraries/ghc-heap/. --optghc=-optP-include --optghc=-optPlibraries/ghc-heap/dist-install/build/./autogen/cabal_macros.h --optghc=-package-id --optghc=base-4.12.0.0 --optghc=-package-id --optghc=ghc-prim-0.5.3 --optghc=-package-id --optghc=rts --optghc=-Wall --optghc=-XHaskell2010 --optghc=-O2 --optghc=-haddock --optghc=-no-user-package-db --optghc=-rtsopts --optghc=-Wno-deprecated-flags --optghc=-Wnoncanonical-monad-instances --optghc=-odir --optghc=libraries/ghc-heap/dist-install/build --optghc=-hidir --optghc=libraries/ghc-heap/dist-install/build --optghc=-stubdir --optghc=libraries/ghc-heap/dist-install/build --source-module=src/%{MODULE/./-}.html --source-entity=src/%{MODULE/./-}.html#%{NAME}   libraries/ghc-heap/./GHC/Exts/Heap.hs  libraries/ghc-heap/./GHC/Exts/Heap/Closures.hs  libraries/ghc-heap/./GHC/Exts/Heap/ClosureTypes.hs  libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Constants.hs  libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTable.hs  libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTable/Types.hs  libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTableProf.hs  libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Utils.hs   +RTS -t"libraries/ghc-heap/dist-install/haddock.t" --machine-readable
Warning: 'getBoxedClosureData' is out of scope.
    If you qualify the identifier, haddock can try to link it
    it anyway.
  LD_NO_GOLD libraries/xhtml/dist-install/build/HSxhtml-3000.2.2.1.o
  HC [stage 1] libraries/xhtml/dist-install/build/Text/XHtml/Internals.p_o
  HC [stage 1] libraries/xhtml/dist-install/build/Text/XHtml/Strict/Attributes.p_o
  HC [stage 1] libraries/xhtml/dist-install/build/Text/XHtml/Strict/Elements.p_o
  HC [stage 1] libraries/xhtml/dist-install/build/Text/XHtml/BlockTable.p_o
  HC [stage 1] libraries/xhtml/dist-install/build/Text/XHtml/Table.p_o
  HC [stage 1] libraries/xhtml/dist-install/build/Text/XHtml/Extras.p_o
  HC [stage 1] libraries/xhtml/dist-install/build/Text/XHtml/Debug.p_o
  HC [stage 1] libraries/xhtml/dist-install/build/Text/XHtml/Transitional/Attributes.p_o
  HC [stage 1] libraries/xhtml/dist-install/build/Text/XHtml/Frameset/Attributes.p_o
  HC [stage 1] 
  HC [stage 1] compiler/stage2/build/RegAlloc/Liveness.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Graph/SpillCost.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Graph/Spill.p_o
  HC [stage 1] compiler/stage2/build/GraphPpr.p_o
  HC [stage 1] compiler/stage2/build/GraphOps.p_o
  HC [stage 1] compiler/stage2/build/GraphColor.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Graph/Stats.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Graph/SpillClean.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Graph/Main.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/X86_64/FreeRegs.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/X86/FreeRegs.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/SPARC/FreeRegs.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/PPC/FreeRegs.p_o
  HC [stage 1] compiler/stage2/build/SPARC/Base.p_o
  HC [stage 1] compiler/stage2/build/SPARC/Cond.p_o
  HC [stage 1] compiler/stage2/build/SPARC/Imm.p_o
  HC [stage 1] compiler/stage2/build/SPARC/AddrMode.p_o
  HC [stage 1] compiler/stage2/build/SPARC/Stack.p_o
  HC [stage 1] compiler/stage2/build/SPARC/Instr.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/FreeRegs.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/StackMap.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/Base.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/Stats.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/State.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/JoinToTargets.p_o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/Main.p_o
  HC [stage 1] compiler/stage2/build/PPC/Ppr.p_o
  HC [stage 1] compiler/stage2/build/PPC/RegInfo.p_o
  HC [stage 1] compiler/stage2/build/PPC/CodeGen.p_o

compiler/nativeGen/PPC/CodeGen.hs:1565:1: warning: [-Wtabs]
    Tab character found here.
    Please use spaces instead.
     |
1565 |             _ -> panic "platformToGCP: Not PowerPC"
     | ^^^^^^^^
  HC [stage 1] compiler/stage2/build/SPARC/Ppr.p_o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Expand.p_o
  HC [stage 1] compiler/stage2/build/SPARC/ShortcutJump.p_o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Base.p_o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Gen32.p_o-boot
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Amode.p_o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Gen64.p_o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/CondCode.p_o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Gen32.p_o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Sanity.p_o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen.p_o
  HC [stage 1] compiler/stage2/build/X86/Ppr.p_o
  HC [stage 1] compiler/stage2/build/X86/CodeGen.p_o
gmake[2]: *** [compiler/ghc.mk:447: compiler/stage2/build/X86/CodeGen.p_o] Killed
gmake[1]: *** [Makefile:127: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/ghc/work/ghc-8.6.5'
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/ghc
=>> Cleaning up wrkdir
===>  Cleaning for ghc-8.6.5_3
build of lang/ghc | ghc-8.6.5_3 ended 
build time: 03:36:04
!!! build failure encountered !!!
 
Code:
gmake[2]: *** [compiler/ghc.mk:447: compiler/stage2/build/X86/CodeGen.p_o] Killed
Usually it means you run out of memory/swap. Do you have anything in /var/log/messages that could explain why it was killed?
 
I have always had more than enough space. While I daily update portsnap and build, there has been no success with GHC and a few others. Here is the latest error:
Code:
---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### .../poudriere.d/make.conf ####
DEFAULT_VERSIONS+=ssl=openssl
OPTIONS_SET=GSSAPI_HEIMDAL
OPTIONS_UNSET=GSSAPI_BASE KRB_BASE KERBEROS 
MAKE_JOBS_UNSAFE=yes
FORCE_MAKE_JOBS=YES
MAKE_JOBS_NUMBER=8

DEFAULT_VERSIONS+=perl5=5.28
DEFAULT_VERSIONS+=python=3.6
OPTIONS_UNSET+=X11
OPTIONS_UNSET+=CUPS

istribution/Types/PkgconfigDependency.o )
[113 of 270] Compiling Distribution.Types.ForeignLibType ( libraries/Cabal/Cabal/Distribution/Types/ForeignLibType.hs, bootstrapping/Distribution/Types/ForeignLibType.o )
[114 of 270] Compiling Distribution.Types.ForeignLibOption ( libraries/Cabal/Cabal/Distribution/Types/ForeignLibOption.hs, bootstrapping/Distribution/Types/ForeignLibOption.o )
[115 of 270] Compiling Distribution.Types.ExecutableScope ( libraries/Cabal/Cabal/Distribution/Types/ExecutableScope.hs, bootstrapping/Distribution/Types/ExecutableScope.o )
[116 of 270] Compiling Distribution.Types.ComponentId ( libraries/Cabal/Cabal/Distribution/Types/ComponentId.hs, bootstrapping/Distribution/Types/ComponentId.o )
[117 of 270] Compiling Distribution.Types.BuildType ( libraries/Cabal/Cabal/Distribution/Types/BuildType.hs, bootstrapping/Distribution/Types/BuildType.o )
[118 of 270] Compiling Distribution.Types.BenchmarkType ( libraries/Cabal/Cabal/Distribution/Types/BenchmarkType.hs, bootstrapping/Distribution/Types/BenchmarkType.o )
[119 of 270] Compiling Distribution.Types.BenchmarkInterface ( libraries/Cabal/Cabal/Distribution/Types/BenchmarkInterface.hs, bootstrapping/Distribution/Types/BenchmarkInterface.o )
[120 of 270] Compiling Distribution.Types.AbiHash ( libraries/Cabal/Cabal/Distribution/Types/AbiHash.hs, bootstrapping/Distribution/Types/AbiHash.o )
[121 of 270] Compiling Distribution.System ( libraries/Cabal/Cabal/Distribution/System.hs, bootstrapping/Distribution/System.o )
[122 of 270] Compiling Distribution.SPDX.LicenseReference ( libraries/Cabal/Cabal/Distribution/SPDX/LicenseReference.hs, bootstrapping/Distribution/SPDX/LicenseReference.o )
[123 of 270] Compiling Distribution.SPDX.LicenseId ( libraries/Cabal/Cabal/Distribution/SPDX/LicenseId.hs, bootstrapping/Distribution/SPDX/LicenseId.o )
ghc/ghc.mk:111: ghc/stage1/package-data.mk: No such file or directory
gmake[2]: *** [utils/ghc-cabal/ghc.mk:56: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Killed
gmake[1]: *** [Makefile:123: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/ghc/work/ghc-8.6.5'
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/ghc
=>> Cleaning up wrkdir
===>  Cleaning for ghc-8.6.5_3
build of lang/ghc | ghc-8.6.5_3 ended
 
Same problem as before :
Code:
gmake[2]: *** [utils/ghc-cabal/ghc.mk:56: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Killed
Can you post the content of /var/log/messages when it happened?
 
For the two times that I have tried it, I don't get to see the exact message in the log. The crash appear in between the time 4:01:36 and 4:27:06.
Code:
Aug 25 4:01:36 <kern.crit> freebsd kernel: fingerprinted 70.2.6.12:57498  1024:250:0:40:0 (0) (TS=,M=0,W=0)
...skipping...
:40:0 (0) (TS=,M=0,W=0)
Aug 25 4:27:06 <kern.crit> freebsd kernel: osfp no match against 3800000


And here is the crash log:
Code:
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/Stats.o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/State.o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/JoinToTargets.o
  HC [stage 1] compiler/stage2/build/RegAlloc/Linear/Main.o
  HC [stage 1] compiler/stage2/build/PPC/Ppr.o
  HC [stage 1] compiler/stage2/build/PPC/RegInfo.o
  HC [stage 1] compiler/stage2/build/PPC/CodeGen.o

compiler/nativeGen/PPC/CodeGen.hs:1565:1: warning: [-Wtabs]
    Tab character found here.
    Please use spaces instead.
     |
1565 |             _ -> panic "platformToGCP: Not PowerPC"
     | ^^^^^^^^
  HC [stage 1] compiler/stage2/build/SPARC/Ppr.o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Expand.o
  HC [stage 1] compiler/stage2/build/SPARC/ShortcutJump.o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Base.o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Gen32.o-boot
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Amode.o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Gen64.o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/CondCode.o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Gen32.o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen/Sanity.o
  HC [stage 1] compiler/stage2/build/SPARC/CodeGen.o
  HC [stage 1] compiler/stage2/build/X86/Ppr.o
  HC [stage 1] compiler/stage2/build/X86/CodeGen.o
gmake[2]: *** [compiler/ghc.mk:447: compiler/stage2/build/X86/CodeGen.o] Killed
gmake[1]: *** [Makefile:127: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/ghc/work/ghc-8.6.5'
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/ghc

This time around, the build took over three hours before crashing, pretty much the longest. In the past, it had been an average of 22min, and in another instance, slightly over two hours. I restarted the server and did a "poudriere testport" to build GHC alone during this last attempt. Perhaps, it might have gone much longer if I were not wanting to install beats in one of the jails.

Looking at the log, where is it trying to compile for other architectures?
I am using the below in the src.conf when building kernel/base; I am not sure it help in poudriere.

Code:
# Prevent building world/kernel for all architectures but only x86 and x64
WITHOUT_LLVW_TARGET_ALL=
 
GHC successfully built with llvm60.
It helps to think that a min. of two versions of llvm may best be installed on most machines. I could not build llvm80 regardless of the contents of make.conf. Installing via PKG wanted Py27- packages. We've been on this before.

Where does this leave us?
While llvm80 is used in (custom) kernel/world build, llvm60 would be the default ver. in make.conf. Quite a number of pkgs require llvm.

RAM@16GB; it may be another success factor.

Thanks to all contributors.
 
Back
Top