=> Bootstrap dependency digest>=20010302: found digest-20160304 => Checksum SHA1 OK for nhc98src-1.22.tar.gz => Checksum RMD160 OK for nhc98src-1.22.tar.gz => Checksum SHA512 OK for nhc98src-1.22.tar.gz ===> Installing dependencies for nhc98-1.22nb2 ========================================================================== The following variables will affect the build process of this package, nhc98-1.22nb2. Their current value is shown below: * CURSES_DEFAULT = curses * READLINE_DEFAULT = readline Based on these variables, the following variables have been set: * CURSES_TYPE = curses * READLINE_TYPE = readline * TERMCAP_TYPE = tinfo You may want to abort the process now with CTRL-C and change their value before continuing. Be sure to run `/usr/pkg/bin/bmake clean' after the changes. ========================================================================== => Tool dependency gmake>=3.81: found gmake-4.1nb4 => Tool dependency nbpatch-[0-9]*: found nbpatch-20151107 => Build dependency cwrappers>=20150314: found cwrappers-20180325 => Full dependency readline>=6.0: found readline-7.0 ===> Overriding tools for nhc98-1.22nb2 ===> Extracting for nhc98-1.22nb2 ===> Patching for nhc98-1.22nb2 => Applying pkgsrc patches for nhc98-1.22nb2 ===> Creating toolchain wrappers for nhc98-1.22nb2 ===> Configuring for nhc98-1.22nb2 Configuring for nhc98... [ v1.22 (2010-07-09) ] -------- Looking for already-installed Haskell compilers: Found C compiler: /var/pkgsrc/work/lang/nhc98/work/.cwrapper/bin/gcc C compiler version: FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) Looking for hbc... (not found) Note: LMLDIR/HBCDIR variables must be set to enable detection of hbc. Looking for ghc... (not found) Looking for nhc98... (not found) You said you want to use gcc to build hmake. Now I'm creating targets/amd64-FreeBSD/hmake3.config for your installation. Done. -------- Configuration report for nhc98. (You can re-run configure to change settings before proceeding.) You wish (eventually) to install the following components in these locations: (Installation directories are not created/checked at this stage.) Final install root: /usr/pkg nhc98 binaries/libs: /usr/pkg/lib/nhc98/amd64-FreeBSD hmake binaries: /usr/pkg/lib/hmake/amd64-FreeBSD Interfaces/includes: /usr/pkg/include/nhc98 Scripts: /usr/pkg/bin Man pages: /usr/pkg/man/man1 Html documents: /usr/pkg/share/doc/nhc98 Now we check/create your build directories: Config directory: targets/amd64-FreeBSD Build directory root: /var/pkgsrc/work/lang/nhc98/work/nhc98-1.22/targets (exists) Object files build in: /var/pkgsrc/work/lang/nhc98/work/nhc98-1.22/targets/amd64-FreeBSD (exists) Executables and libs: /var/pkgsrc/work/lang/nhc98/work/nhc98-1.22/lib/amd64-FreeBSD (created) Toolchain: host compiler: gcc host strip: strip cabal-parse: /var/pkgsrc/work/lang/nhc98/work/nhc98-1.22/script/cabal-parse You are going to build nhc98 with: gcc backend compiler option: -m32 backend linker option: -m32 nhc98comp uses RTS delimiters? yes This machine's endian-ness is: endian.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() { ^ endian.c:8:5: warning: implicit declaration of function 'puts' is invalid in C99 [-Wimplicit-function-declaration] puts("-DLOW_BYTE_FIRST"); ^ endian.c:10:5: warning: implicit declaration of function 'puts' is invalid in C99 [-Wimplicit-function-declaration] puts("-DHIGH_BYTE_FIRST"); ^ 3 warnings generated. /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc clang: error: linker command failed with exit code 1 (use -v to see invocation) ./configure: ./endian: not found (detected) Executables need .exe suffix? no (detected) Found /usr/bin/true not /bin/true Testing for the curses library: -ltermcap -lcurses (detected) Testing for the readline library: no (detected) Reading /usr/include/errno.h: script/config-errno.c:594:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main () { ^ 1 warning generated. script/errnogen.c:4:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() { ^ 1 warning generated. updated DErrNo.hs Testing for FunnelWeb: no (detected) Default heap for compiled programs is: 100000 words (cached) Adding Makefile config script to /var/pkgsrc/work/lang/nhc98/work/nhc98-1.22/lib/amd64-FreeBSD... cat: targets/amd64-FreeBSD/ghcsym: No such file or directory Adding build scripts to /var/pkgsrc/work/lang/nhc98/work/nhc98-1.22/script... nhc98 hmake hmake-config hi greencard nhc98-pkg hsc2hs cpphs Creating src/runtime/nhc98heap.c ... Configuring src/compiler98/Building.hs ... Updating targets/amd64-FreeBSD/hmake3.config... Saving current configuration in targets/amd64-FreeBSD/config.cache Done.