Monday, March 19, 2018

Building GNU m4 1.4.18

I start with the same considerations from the post Building GNU libtool 2.4.6. The GNU m4 library is sometimes used on GNU buildings so I add it to my crazy list of GNU software to manually build.

The basic building strategy and general assumptions have been detailed on a previous post: Staged Building, so I'll (hopefully) get more straight to the point:

$ pwd
/stage/build

$ ./gnu-build-preparation ../source/.../m4-1.4.18.tar.xz
...

$ cd m4/m4-1.4.18

$ source ../setenv 64

CONFIG_SHELL=/usr/bin/bash

CC=/usr/bin/gcc CFLAGS=-m64 -march=core2 -std=gnu89

CXX=/usr/bin/g++ CXXFLAGS=-m64 -march=core2 -std=gnu++03

LD=/usr/bin/ld LDFLAGS=-m64 -march=core2

PATH=/opt/gnu/bin:/usr/gnu/bin:/usr/bin:/usr/sbin

PKG_CONFIG_PATH=

Suggested build sequence:

Fine-tune/fix config.h.in, Makefile.in and others...

$ ./configure \
  --build=x86_64-pc-solaris2.11 \
  --prefix=/opt/... \
  ...
 

$ gmake -j3

For IPS package:


$ sudo gmake DESTDIR=/stage/prototype/m4/1.4.18/64 install

For immediate use:

$ sudo gmake install
$ sudo zfs snapshot -r .../opt/...@m4-1.4.18

$ ./configure \
        --build=x86_64-pc-solaris2.11 \
    --prefix=/opt/gnu \
    --with-libsigsegv-prefix=/opt/gnu \
    --with-syscmd-shell=/usr/bin/bash
 

checking for a BSD-compatible install... /usr/gnu/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/gnu/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc... gcc3
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for grep that handles long lines and -e... /usr/gnu/bin/grep
checking for egrep... /usr/gnu/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking for ar... (cached) ar
checking for ranlib... ranlib
checking build system type... x86_64-pc-solaris2.11
checking host system type... x86_64-pc-solaris2.11
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for /usr/bin/gcc option to accept ISO C99... unsupported
checking for /usr/bin/gcc option to accept ISO C89... (cached) none needed
checking for /usr/bin/gcc option to accept ISO Standard C... (cached) none needed
configure: autobuild project... GNU M4
configure: autobuild revision... 1.4.18
configure: autobuild hostname... brick
configure: autobuild timestamp... 20180319T015626Z
checking for unsigned long long int... yes
checking for long long int... yes
checking for unsigned long long int... (cached) yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether uses 'inline' correctly... yes
checking for btowc... yes
checking for setrlimit... yes
checking for sigaltstack... yes
checking for canonicalize_file_name... yes
checking for getcwd... yes
checking for readlink... yes
checking for realpath... yes
checking for _set_invalid_parameter_handler... no
checking for fcntl... yes
checking for symlink... yes
checking for mempcpy... no
checking for fpurge... no
checking for __fpurge... yes
checking for __freadahead... no
checking for __freading... yes
checking for getdtablesize... yes
checking for getprogname... yes
checking for getexecname... yes
checking for gettimeofday... yes
checking for lstat... yes
checking for mbsinit... yes
checking for mbrtowc... yes
checking for mprotect... yes
checking for mkstemp... yes
checking for nl_langinfo... yes
checking for pipe2... no
checking for isblank... yes
checking for iswctype... yes
checking for link... yes
checking for secure_getenv... no
checking for getuid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getegid... yes
checking for sigaction... yes
checking for siginterrupt... yes
checking for snprintf... yes
checking for strndup... yes
checking for pipe... yes
checking for vasnprintf... no
checking for wcrtomb... yes
checking for iswcntrl... yes
checking for newlocale... no
checking for setenv... yes
checking for sleep... yes
checking for strdup... yes
checking for wctob... yes
checking for nl_langinfo and CODESET... yes
checking for a traditional french locale... none
checking for ucontext.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for stdio_ext.h... yes
checking for sys/stat.h... (cached) yes
checking for getopt.h... yes
checking for sys/time.h... yes
checking for langinfo.h... yes
checking for limits.h... yes
checking for xlocale.h... no
checking for math.h... yes
checking for sys/mman.h... yes
checking for malloc.h... yes
checking for sys/cdefs.h... no
checking for spawn.h... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for sys/wait.h... yes
checking for features.h... no
checking for wctype.h... yes
checking for dirent.h... yes
checking for inttypes.h... (cached) yes
checking for working C stack overflow detection... yes
checking for correct stack_t interpretation... yes
checking for precise C stack overflow detection... yes
checking for ld used by /usr/bin/gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for 64-bit host... no
checking for libsigsegv... yes
checking how to link with libsigsegv... /opt/gnu/lib/libsigsegv.a -lc
checking whether // is distinct from /... no
checking whether realpath works... yes
checking if environ is properly declared... no
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for complete errno.h... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for mode_t... yes
checking for sig_atomic_t... yes
checking for working fcntl.h... yes
checking for pid_t... yes
checking whether frexp() can be used without linking with libm... yes
checking whether alarm is declared... yes
checking whether long double and double are the same... no
checking whether stdin defaults to large file offsets... yes
checking whether fseeko is declared... yes
checking for fseeko... yes
checking whether fflush works on input streams... yes
checking whether stat file-mode macros are broken... no
checking for nlink_t... yes
checking whether ftello is declared... yes
checking for ftello... yes
checking whether ftello works... yes
checking whether getdtablesize is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... yes
checking for working GNU getopt function... no
checking whether getenv is declared... yes
checking for C/C++ restrict keyword... __restrict
checking for struct timeval... yes
checking for wide-enough struct timeval.tv_sec member... yes
checking where to find the exponent in a 'double'... word 1 bit 20
checking where to find the exponent in a 'float'... word 0 bit 23
checking whether byte ordering is bigendian... no
checking whether limits.h has ULLONG_WIDTH etc.... no
checking whether getc_unlocked is declared... yes
checking whether we are using the GNU C Library >= 2.1 or uClibc... no
checking for wchar_t... yes
checking for max_align_t... no
checking whether NULL can be used in arbitrary expressions... yes
checking for multithread API to use... none
checking whether lstat correctly handles trailing slash... yes
checking for a sed that does not truncate output... /usr/gnu/bin/sed
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for mbstate_t... yes
checking for a traditional japanese locale... none
checking for a transitional chinese locale... none
checking for a french Unicode locale... fr_FR.UTF-8
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether defines MIN and MAX... no
checking whether defines MIN and MAX... no
checking for promoted mode_t type... mode_t
checking for library containing posix_spawn... none required
checking for posix_spawn... yes
checking whether posix_spawn works... yes
checking whether posix_spawnattr_setschedpolicy is supported... yes
checking whether posix_spawnattr_setschedparam is supported... yes
checking for sigset_t... yes
checking for SIGPIPE... yes
checking for inline... inline
checking for uid_t in sys/types.h... yes
checking whether C symbols are prefixed with underscore at the linker level... no
checking whether snprintf returns a byte count as in C99... yes
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for wint_t... yes
checking whether wint_t is too small... no
checking whether stdint.h conforms to C99... no
checking sys/inttypes.h usability... yes
checking sys/inttypes.h presence... yes
checking for sys/inttypes.h... yes
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking for bit size of ptrdiff_t... 64
checking for bit size of size_t... 64
checking for bit size of sig_atomic_t... 32
checking for bit size of wchar_t... 32
checking for bit size of wint_t... 32
checking whether sig_atomic_t is signed... yes
checking whether wchar_t is signed... yes
checking whether wint_t is signed... yes
checking for ptrdiff_t integer literal suffix... l
checking for size_t integer literal suffix... ul
checking for sig_atomic_t integer literal suffix...
checking for wchar_t integer literal suffix...
checking for wint_t integer literal suffix...
checking whether strerror(0) succeeds... yes
checking whether strndup is declared... yes
checking whether strnlen is declared... yes
checking whether strsignal is declared... yes
checking whether sys_siglist is declared... no
checking whether strstr works... yes
checking whether ldexp() can be used without linking with libm... yes
checking for struct timespec in


NOTE
I have also succeed under a legacy 32-bits Solaris 11 Express (using GCC 3.4.3) with the following configuration options:

$ ./configure \
  --build=i386-pc-solaris2.11 \
  --prefix=/opt/gnu \
  --with-libsigsegv-prefix=/opt/gnu \
  --enable-threads=posix \
  --enable-c++ \
  --enable-gcc-warnings \
  --with-syscmd-shell=/usr/bin/bash
 

$ gmake -j4
gmake  all-recursive
gmake[1]: Entering directory `/stage/build/m4/m4-1.4.18-64'
Making all in .
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64'
gmake[2]: Nothing to be done for `all-am'.
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64'
Making all in examples
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/examples'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/examples'
Making all in lib
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
  GEN      alloca.h
  GEN      configmake.h
  GEN      arg-nonnull.h
  GEN      c++defs.h
  GEN      warn-on-use.h
  GEN      limits.h
  GEN      unused-parameter.h
  GEN      stddef.h
  GEN      stdint.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      sys/wait.h
  GEN      time.h
  GEN      unistd.h
  GEN      wchar.h
  GEN      wctype.h
  GEN      fcntl.h
  GEN      getopt.h
  GEN      langinfo.h
  GEN      locale.h
  GEN      math.h
  GEN      signal.h
  GEN      spawn.h
gmake  all-am
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
  CC       gl_avltree_oset.o
  CC       c-ctype.o
  CC       binary-io.o
  CC       c-stack.o
  CC       c-strcasecmp.o
  CC       c-strncasecmp.o
  CC       clean-temp.o
  CC       close-stream.o
  CC       cloexec.o
  CC       closein.o
  CC       closeout.o
  CC       dirname.o
  CC       basename.o
  CC       dirname-lgpl.o
  CC       basename-lgpl.o
  CC       stripslash.o
  CC       execute.o
  CC       exitfail.o
  CC       fatal-signal.o
  CC       fd-hook.o
  CC       fd-safer-flag.o
  CC       dup-safer-flag.o
  CC       filenamecat.o
  CC       filenamecat-lgpl.o
  CC       fopen-safer.o
  CC       freading.o
  CC       getprogname.o
  CC       hard-locale.o
  CC       gl_linkedhash_list.o
  CC       gl_list.o
  CC       localcharset.o
  CC       malloca.o
  CC       math.o
  CC       memchr2.o
  CC       gl_oset.o
  CC       pipe2.o
  CC       pipe2-safer.o
  CC       printf-frexp.o
  CC       printf-frexpl.o
  CC       progname.o
  CC       quotearg.o
  CC       sig-handler.o
  CC       spawn-pipe.o
  CC       mkstemp-safer.o
  CC       tempname.o
  CC       glthread/threadlib.o
  CC       glthread/tls.o
  CC       tmpdir.o
  CC       unistd.o
  CC       dup-safer.o
  CC       fd-safer.o
  CC       pipe-safer.o
  CC       verror.o
  CC       version-etc.o
  CC       version-etc-fsf.o
  CC       wait-process.o
  CC       wctype-h.o
  CC       xmalloc.o
  CC       xalloc-die.o
  CC       gl_xlist.o
  CC       xmalloca.o
  CC       gl_xoset.o
  CC       xprintf.o
  CC       xsize.o
  CC       xstrndup.o
  CC       xvasprintf.o
  CC       xasprintf.o
  CC       asnprintf.o
  CC       asprintf.o
  CC       error.o
  CC       fpurge.o
  CC       freadahead.o
  CC       frexpl.o
  CC       getopt.o
  CC       getopt1.o
  CC       obstack.o
  CC       printf-args.o
  CC       printf-parse.o
  CC       rawmemchr.o
  CC       regex.o
  CC       rename.o
  CC       secure_getenv.o
  CC       spawn_faction_addclose.o
  CC       spawn_faction_adddup2.o
  CC       spawn_faction_addopen.o
  CC       strsignal.o
  CC       strstr.o
  CC       strtod.o
  CC       vasnprintf.o
  CC       vasprintf.o
  CC       wcrtomb.o
  GEN      charset.alias
  GEN      ref-add.sed
  GEN      ref-del.sed
  CC       glthread/lock.o
  AR       libm4.a
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
Making all in src
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/src'
  CC       m4.o
  CC       debug.o
  CC       builtin.o
  CC       eval.o
  CC       format.o
  CC       freeze.o
  CC       input.o
  CC       macro.o
  CC       output.o
  CC       path.o
  CC       symtab.o
  CCLD     m4
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/src'
Making all in doc
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/doc'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/doc'
Making all in checks
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/checks'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/checks'
Making all in tests
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
  GEN      c++defs.h
  GEN      arg-nonnull.h
  GEN      warn-on-use.h
  GEN      test-posix_spawn1.sh
  GEN      test-posix_spawn2.sh
  GEN      unused-parameter.h
  GEN      ctype.h
  GEN      dirent.h
  GEN      inttypes.h
gmake  all-recursive
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
Making all in .
gmake[4]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[4]: Nothing to be done for `all-am'.
gmake[4]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[1]: Leaving directory `/stage/build/m4/m4-1.4.18-64'


$ gmake check
  GEN      public-submodule-commit
gmake  check-recursive
gmake[1]: Entering directory `/stage/build/m4/m4-1.4.18-64'
Making check in .
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64'
gmake[2]: Nothing to be done for `check-am'.
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64'
Making check in examples
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/examples'
gmake[2]: Nothing to be done for `check'.
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/examples'
Making check in lib
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake  check-am
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
Making check in src
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/src'
gmake[2]: Nothing to be done for `check'.
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/src'
Making check in doc
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/doc'
gmake[2]: Nothing to be done for `check'.
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/doc'
Making check in checks
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/checks'
gmake  check-local
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/checks'
PATH=`pwd`/../src":"$PATH; export PATH; \
./check-them -I ./../examples ./*[0-9][0-9][0-9].* ./stackovf.test
m4 (GNU M4) 1.4.18
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.
Checking ./001.preprocess
Checking ./002.debugging_
Checking ./003.command_li
Checking ./004.command_li
Checking ./005.command_li
Checking ./006.command_li
Checking ./007.command_li
Checking ./008.comments
Checking ./009.comments
Checking ./010.input_proc
Checking ./011.input_proc
Checking ./012.inhibiting
Checking ./013.inhibiting
Checking ./014.inhibiting
Checking ./015.inhibiting
Checking ./016.inhibiting
Checking ./017.inhibiting
Checking ./018.inhibiting
Checking ./019.inhibiting
Checking ./020.macro_argu
Checking ./021.macro_argu
Checking ./022.macro_argu
Checking ./023.macro_argu
Checking ./024.macro_argu
Checking ./025.quoting_ar
Checking ./026.macro_expa
Checking ./027.macro_expa
Checking ./028.define
Checking ./029.define
Checking ./030.define
Checking ./031.arguments
Checking ./032.arguments
Checking ./033.arguments
Checking ./034.arguments
Checking ./035.arguments
Checking ./036.arguments
Checking ./037.pseudo_arg
Checking ./038.pseudo_arg
Checking ./039.pseudo_arg
Checking ./040.pseudo_arg
Checking ./041.pseudo_arg
Checking ./042.pseudo_arg
Checking ./043.pseudo_arg
Checking ./044.pseudo_arg
Checking ./045.pseudo_arg
Checking ./046.undefine
Checking ./047.undefine
Checking ./048.defn
Checking ./049.defn
Checking ./050.defn
Checking ./051.defn
Checking ./052.defn
Checking ./053.defn
Checking ./054.defn
Checking ./055.pushdef
Checking ./056.pushdef
Checking ./057.indir
Checking ./058.indir
Checking ./059.indir
Checking ./060.builtin
Checking ./061.builtin
Checking ./062.builtin
Checking ./063.builtin
Checking ./064.builtin
Checking ./065.ifdef
Checking ./066.ifelse
Checking ./067.ifelse
Checking ./068.ifelse
Checking ./069.ifelse
Checking ./070.ifelse
Checking ./071.shift
Checking ./072.shift
Checking ./073.shift
Checking ./074.shift
Checking ./075.shift
Checking ./076.shift
Checking ./077.shift
Checking ./078.shift
Checking ./079.forloop
Checking ./080.forloop
Checking ./081.forloop
Checking ./082.foreach
Checking ./083.foreach
Checking ./084.foreach
Checking ./085.foreach
Checking ./086.foreach
Checking ./087.foreach
Checking ./088.stacks
Checking ./089.stacks
Checking ./090.compositio
Checking ./091.compositio
Checking ./092.compositio
Checking ./093.compositio
Checking ./094.dumpdef
Checking ./095.dumpdef
Checking ./096.trace
Checking ./097.trace
Checking ./098.trace
Checking ./099.trace
Checking ./100.trace
Checking ./101.debug_leve
Checking ./102.debug_leve
Checking ./103.debug_leve
Checking ./104.debug_outp
Checking ./105.dnl
Checking ./106.dnl
Checking ./107.dnl
Checking ./108.changequot
Checking ./109.changequot
Checking ./110.changequot
Checking ./111.changequot
Checking ./112.changequot
Checking ./113.changequot
Checking ./114.changequot
Checking ./115.changequot
Checking ./116.changequot
Checking ./117.changequot
Checking ./118.changequot
Checking ./119.changecom
Checking ./120.changecom
Checking ./121.changecom
Checking ./122.changecom
Checking ./123.changecom
Checking ./124.changecom
Checking ./125.changeword
 skipping: no changeword support
Checking ./126.changeword
 skipping: no changeword support
Checking ./127.changeword
 skipping: no changeword support
Checking ./128.changeword
 skipping: no changeword support
Checking ./129.changeword
 skipping: no changeword support
Checking ./130.changeword
 skipping: no changeword support
Checking ./131.m4wrap
Checking ./132.m4wrap
Checking ./133.m4wrap
Checking ./134.m4wrap
Checking ./135.m4wrap
Checking ./136.m4wrap
Checking ./137.include
Checking ./138.include
Checking ./139.include
Checking ./140.include
Checking ./141.include
Checking ./142.include
Checking ./143.diversions
Checking ./144.diversions
Checking ./145.diversions
Checking ./146.diversions
Checking ./147.divert
Checking ./148.divert
Checking ./149.divert
Checking ./150.divert
Checking ./151.divert
Checking ./152.undivert
Checking ./153.undivert
Checking ./154.undivert
Checking ./155.undivert
Checking ./156.undivert
Checking ./157.undivert
Checking ./158.divnum
Checking ./159.cleardiver
Checking ./160.cleardiver
Checking ./161.len
Checking ./162.index_macr
Checking ./163.index_macr
Checking ./164.index_macr
Checking ./165.index_macr
Checking ./166.regexp
Checking ./167.regexp
Checking ./168.regexp
Checking ./169.substr
Checking ./170.substr
Checking ./171.translit
Checking ./172.translit
Checking ./173.translit
Checking ./174.translit
Checking ./175.patsubst
Checking ./176.patsubst
Checking ./177.patsubst
Checking ./178.patsubst
Checking ./179.patsubst
Checking ./180.format
Checking ./181.format
Checking ./182.format
Checking ./183.format
Checking ./184.incr
Checking ./185.eval
Checking ./186.eval
Checking ./187.eval
Checking ./188.eval
Checking ./189.eval
Checking ./190.eval
Checking ./191.platform_m
Checking ./192.platform_m
Checking ./193.platform_m
Checking ./194.syscmd
Checking ./195.syscmd
Checking ./196.esyscmd
Checking ./197.sysval
Checking ./198.sysval
Checking ./199.mkstemp
Checking ./200.mkstemp
Checking ./201.mkstemp
Checking ./202.errprint
Checking ./203.location
Checking ./204.location
Checking ./205.location
Checking ./206.m4exit
Checking ./207.m4exit
Checking ./208.using_froz
Checking ./209.using_froz
Checking ./210.using_froz
Checking ./211.extensions
Checking ./212.other_inco
Checking ./213.other_inco
Checking ./214.improved_e
Checking ./215.improved_f
Checking ./216.improved_f
Checking ./217.improved_f
Checking ./218.improved_f
Checking ./219.improved_f
Checking ./220.improved_f
Checking ./221.improved_f
Checking ./222.improved_f
Checking ./223.improved_f
Checking ./224.improved_f
Checking ./225.improved_f
Checking ./226.improved_f
Checking ./227.improved_f
Checking ./228.improved_f
Checking ./229.improved_c
Checking ./230.improved_c
Checking ./231.improved_m
Checking ./232.improved_m
Checking ./233.improved_c
Checking ./234.improved_c
Checking ./235.improved_c
Checking ./236.improved_f
Checking ./stackovf.test
Stack soft limit set to 300K
Pass

Skipped checks were:
  ./125.changeword ./126.changeword ./127.changeword ./128.changeword ./129.changeword ./130.changeword
All checks successful
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/checks'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/checks'
Making check in tests
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake  check-recursive
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
Making check in .
gmake[4]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake  libtests.a test-alignof test-alloca-opt test-array_list test-array_oset test-avltree_oset test-binary-io test-btowc test-c-ctype test-c-stack test-c-strcasecmp test-c-strncasecmp test-canonicalize-lgpl test-chdir test-cloexec test-close test-closein test-ctype  test-dirent test-dirname test-dup test-dup2 test-environ test-errno test-fclose  test-fcntl-h test-fcntl test-fdopen test-fflush test-fflush2 test-fgetc test-filenamecat test-float test-fopen-safer test-fopen test-fpending test-fpurge test-fputc test-fread test-freadahead test-freading test-frexp-nolibm test-frexpl-nolibm test-fseek test-fseeko test-fseeko3 test-fseeko4 test-fstat test-ftell test-ftell3 test-ftello test-ftello3 test-ftello4 test-fwrite test-getcwd-lgpl test-getdtablesize test-getopt-gnu test-getopt-posix test-getprogname test-gettimeofday test-ignore-value test-intprops test-inttypes test-isblank test-isnand-nolibm test-isnanf-nolibm test-isnanl-nolibm  test-langinfo test-limits-h test-link test-linkedhash_list  test-locale test-localeconv test-localename test-lseek test-lstat test-malloca  test-math test-mbrtowc test-mbrtowc-w32 test-mbsinit test-memchr test-memchr2 test-nl_langinfo test-open test-pathmax test-pipe2 test-posix_spawn_file_actions_addclose test-posix_spawn_file_actions_adddup2 test-posix_spawn_file_actions_addopen test-posix_spawn1 test-posix_spawn2 test-printf-frexp test-printf-frexpl test-quotearg-simple test-raise test-rawmemchr test-readlink test-regex test-rename test-rmdir test-sched test-setenv test-setlocale1 test-setlocale2 test-sigaction  test-signal-h test-signbit test-sigpipe test-sigprocmask test-sleep test-snprintf  test-spawn-pipe-main test-spawn-pipe-child test-spawn test-stat test-stdalign test-stdbool test-stddef test-stdint  test-stdio  test-stdlib test-strchrnul test-strerror  test-string test-strnlen test-strsignal test-strstr test-strtod test-symlink  test-sys_stat  test-sys_time  test-sys_types  test-sys_wait  test-time  test-dup-safer test-unistd test-unsetenv test-vasnprintf test-vasprintf-posix test-vasprintf test-verify test-version-etc  test-wchar test-wcrtomb test-wcrtomb-w32  test-wctype-h test-write test-xalloc-die test-xvasprintf
gmake[5]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
  CC       gl_array_list.o
  CC       gl_array_oset.o
  CC       localename.o
  CC       link.o
  CC       putenv.o
  CC       unsetenv.o
  AR       libtests.a
  CC       test-alignof.o
  CCLD     test-alignof
  CC       test-alloca-opt.o
  CCLD     test-alloca-opt
  CC       test-array_list.o
  CCLD     test-array_list
  CC       test-array_oset.o
  CCLD     test-array_oset
  CC       test-avltree_oset.o
  CCLD     test-avltree_oset
  CC       test-binary-io.o
  CCLD     test-binary-io
  CC       test-btowc.o
  CCLD     test-btowc
  CC       test-c-ctype.o
  CCLD     test-c-ctype
  CC       test-c-stack.o
  CCLD     test-c-stack
  CC       test-c-strcasecmp.o
  CCLD     test-c-strcasecmp
  CC       test-c-strncasecmp.o
  CCLD     test-c-strncasecmp
  CC       test-canonicalize-lgpl.o
  CCLD     test-canonicalize-lgpl
  CC       test-chdir.o
  CCLD     test-chdir
  CC       test-cloexec.o
  CCLD     test-cloexec
  CC       test-close.o
  CCLD     test-close
  CC       test-closein.o
  CCLD     test-closein
  CC       test-ctype.o
  CCLD     test-ctype
  CC       test-dirent.o
  CCLD     test-dirent
  CC       test-dirname.o
  CCLD     test-dirname
  CC       test-dup.o
  CCLD     test-dup
  CC       test-dup2.o
  CCLD     test-dup2
  CC       test-environ.o
  CCLD     test-environ
  CC       test-errno.o
  CCLD     test-errno
  CC       test-fclose.o
  CCLD     test-fclose
  CC       test-fcntl-h.o
  CCLD     test-fcntl-h
  CC       test-fcntl.o
  CCLD     test-fcntl
  CC       test-fdopen.o
  CCLD     test-fdopen
  CC       test-fflush.o
  CCLD     test-fflush
  CC       test-fflush2.o
  CCLD     test-fflush2
  CC       test-fgetc.o
  CCLD     test-fgetc
  CC       test-filenamecat.o
  CCLD     test-filenamecat
  CC       test-float.o
  CCLD     test-float
  CC       test-fopen-safer.o
  CCLD     test-fopen-safer
  CC       test-fopen.o
  CCLD     test-fopen
  CC       test-fpending.o
  CCLD     test-fpending
  CC       test-fpurge.o
  CCLD     test-fpurge
  CC       test-fputc.o
  CCLD     test-fputc
  CC       test-fread.o
  CCLD     test-fread
  CC       test-freadahead.o
  CCLD     test-freadahead
  CC       test-freading.o
  CCLD     test-freading
  CC       test-frexp.o
  CC       randomd.o
  CCLD     test-frexp-nolibm
  CC       test-frexpl.o
  CC       randoml.o
  CCLD     test-frexpl-nolibm
  CC       test-fseek.o
  CCLD     test-fseek
  CC       test-fseeko.o
  CCLD     test-fseeko
  CC       test-fseeko3.o
  CCLD     test-fseeko3
  CC       test-fseeko4.o
  CCLD     test-fseeko4
  CC       test-fstat.o
  CCLD     test-fstat
  CC       test-ftell.o
  CCLD     test-ftell
  CC       test-ftell3.o
  CCLD     test-ftell3
  CC       test-ftello.o
  CCLD     test-ftello
  CC       test-ftello3.o
  CCLD     test-ftello3
  CC       test-ftello4.o
  CCLD     test-ftello4
  CC       test-fwrite.o
  CCLD     test-fwrite
  CC       test-getcwd-lgpl.o
  CCLD     test-getcwd-lgpl
  CC       test-getdtablesize.o
  CCLD     test-getdtablesize
  CC       test-getopt-gnu.o
  CCLD     test-getopt-gnu
  CC       test-getopt-posix.o
  CCLD     test-getopt-posix
  CC       test-getprogname.o
  CCLD     test-getprogname
  CC       test-gettimeofday.o
  CCLD     test-gettimeofday
  CC       test-ignore-value.o
  CCLD     test-ignore-value
  CC       test-intprops.o
  CCLD     test-intprops
  CC       test-inttypes.o
  CCLD     test-inttypes
  CC       test-isblank.o
  CCLD     test-isblank
  CC       test-isnand-nolibm.o
  CCLD     test-isnand-nolibm
  CC       test-isnanf-nolibm.o
  CCLD     test-isnanf-nolibm
  CC       test-isnanl-nolibm.o
  CCLD     test-isnanl-nolibm
  CC       test-langinfo.o
  CCLD     test-langinfo
  CC       test-limits-h.o
  CCLD     test-limits-h
  CC       test-link.o
  CCLD     test-link
  CC       test-linkedhash_list.o
  CCLD     test-linkedhash_list
  CC       test-locale.o
  CCLD     test-locale
  CC       test-localeconv.o
  CCLD     test-localeconv
  CC       test-localename.o
  CCLD     test-localename
  CC       test-lseek.o
  CCLD     test-lseek
  CC       test-lstat.o
  CCLD     test-lstat
  CC       test-malloca.o
  CCLD     test-malloca
  CC       test-math.o
  CCLD     test-math
  CC       test-mbrtowc.o
  CCLD     test-mbrtowc
  CC       test-mbrtowc-w32.o
  CCLD     test-mbrtowc-w32
  CC       test-mbsinit.o
  CCLD     test-mbsinit
  CC       test-memchr.o
  CCLD     test-memchr
  CC       test-memchr2.o
  CCLD     test-memchr2
  CC       test-nl_langinfo.o
  CCLD     test-nl_langinfo
  CC       test-open.o
  CCLD     test-open
  CC       test-pathmax.o
  CCLD     test-pathmax
  CC       test-pipe2.o
  CCLD     test-pipe2
  CC       test-posix_spawn_file_actions_addclose.o
  CCLD     test-posix_spawn_file_actions_addclose
  CC       test-posix_spawn_file_actions_adddup2.o
  CCLD     test-posix_spawn_file_actions_adddup2
  CC       test-posix_spawn_file_actions_addopen.o
  CCLD     test-posix_spawn_file_actions_addopen
  CC       test-posix_spawn1.o
  CCLD     test-posix_spawn1
  CC       test-posix_spawn2.o
  CCLD     test-posix_spawn2
  CC       test-printf-frexp.o
  CCLD     test-printf-frexp
  CC       test-printf-frexpl.o
  CCLD     test-printf-frexpl
  CC       test-quotearg-simple.o
  CCLD     test-quotearg-simple
  CC       test-raise.o
  CCLD     test-raise
  CC       test-rawmemchr.o
  CCLD     test-rawmemchr
  CC       test-readlink.o
  CCLD     test-readlink
  CC       test-regex.o
  CCLD     test-regex
  CC       test-rename.o
  CCLD     test-rename
  CC       test-rmdir.o
  CCLD     test-rmdir
  CC       test-sched.o
  CCLD     test-sched
  CC       test-setenv.o
  CCLD     test-setenv
  CC       test-setlocale1.o
  CCLD     test-setlocale1
  CC       test-setlocale2.o
  CCLD     test-setlocale2
  CC       test-sigaction.o
  CCLD     test-sigaction
  CC       test-signal-h.o
  CCLD     test-signal-h
  CC       test-signbit.o
  CCLD     test-signbit
  CC       test-sigpipe.o
  CCLD     test-sigpipe
  CC       test-sigprocmask.o
  CCLD     test-sigprocmask
  CC       test-sleep.o
  CCLD     test-sleep
  CC       test-snprintf.o
  CCLD     test-snprintf
  CC       test-spawn-pipe-main.o
  CCLD     test-spawn-pipe-main
  CC       test-spawn-pipe-child.o
  CCLD     test-spawn-pipe-child
  CC       test-spawn.o
  CCLD     test-spawn
  CC       test-stat.o
  CCLD     test-stat
  CC       test-stdalign.o
  CCLD     test-stdalign
  CC       test-stdbool.o
  CCLD     test-stdbool
  CC       test-stddef.o
  CCLD     test-stddef
  CC       test-stdint.o
  CCLD     test-stdint
  CC       test-stdio.o
  CCLD     test-stdio
  CC       test-stdlib.o
  CCLD     test-stdlib
  CC       test-strchrnul.o
  CCLD     test-strchrnul
  CC       test-strerror.o
  CCLD     test-strerror
  CC       test-string.o
  CCLD     test-string
  CC       test-strnlen.o
  CCLD     test-strnlen
  CC       test-strsignal.o
  CCLD     test-strsignal
  CC       test-strstr.o
  CCLD     test-strstr
  CC       test-strtod.o
  CCLD     test-strtod
  CC       test-symlink.o
  CCLD     test-symlink
  CC       test-sys_stat.o
  CCLD     test-sys_stat
  CC       test-sys_time.o
  CCLD     test-sys_time
  CC       test-sys_types.o
  CCLD     test-sys_types
  CC       test-sys_wait.o
  CCLD     test-sys_wait
  CC       test-time.o
  CCLD     test-time
  CC       test-dup-safer.o
  CCLD     test-dup-safer
  CC       test-unistd.o
  CCLD     test-unistd
  CC       test-unsetenv.o
  CCLD     test-unsetenv
  CC       test-vasnprintf.o
  CCLD     test-vasnprintf
  CC       test-vasprintf-posix.o
  CCLD     test-vasprintf-posix
  CC       test-vasprintf.o
  CCLD     test-vasprintf
  CC       test-verify.o
  CCLD     test-verify
  CC       test-version-etc.o
  CCLD     test-version-etc
  CC       test-wchar.o
  CCLD     test-wchar
  CC       test-wcrtomb.o
  CCLD     test-wcrtomb
  CC       test-wcrtomb-w32.o
  CCLD     test-wcrtomb-w32
  CC       test-wctype-h.o
  CCLD     test-wctype-h
  CC       test-write.o
  CCLD     test-write
  CC       test-xalloc-die.o
  CCLD     test-xalloc-die
  CC       test-xvasprintf.o
  CCLD     test-xvasprintf
gmake[5]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake  check-TESTS
gmake[5]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[6]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
PASS: test-alignof
PASS: test-alloca-opt
PASS: test-array_list
PASS: test-array_oset
PASS: test-avltree_oset
PASS: test-binary-io.sh
SKIP: test-btowc1.sh
PASS: test-btowc2.sh
PASS: test-c-ctype
PASS: test-c-stack.sh
PASS: test-c-stack2.sh
PASS: test-c-strcase.sh
PASS: test-canonicalize-lgpl
PASS: test-chdir
PASS: test-cloexec
PASS: test-close
PASS: test-closein.sh
PASS: test-ctype
PASS: test-dirent
PASS: test-dirname
PASS: test-dup
PASS: test-dup2
PASS: test-environ
PASS: test-errno
PASS: test-fclose
PASS: test-fcntl-h
PASS: test-fcntl
PASS: test-fdopen
PASS: test-fflush
PASS: test-fflush2.sh
PASS: test-fgetc
PASS: test-filenamecat
PASS: test-float
PASS: test-fopen-safer
PASS: test-fopen
PASS: test-fpending.sh
PASS: test-fpurge
PASS: test-fputc
PASS: test-fread
PASS: test-freadahead.sh
PASS: test-freading
PASS: test-frexp-nolibm
PASS: test-frexpl-nolibm
PASS: test-fseek.sh
PASS: test-fseek2.sh
PASS: test-fseeko.sh
PASS: test-fseeko2.sh
PASS: test-fseeko3.sh
PASS: test-fseeko4.sh
PASS: test-fstat
PASS: test-ftell.sh
PASS: test-ftell2.sh
PASS: test-ftell3
PASS: test-ftello.sh
PASS: test-ftello2.sh
PASS: test-ftello3
PASS: test-ftello4.sh
PASS: test-fwrite
PASS: test-getcwd-lgpl
PASS: test-getdtablesize
PASS: test-getopt-gnu
PASS: test-getopt-posix
PASS: test-getprogname
PASS: test-gettimeofday
PASS: test-ignore-value
PASS: test-intprops
PASS: test-inttypes
PASS: test-isblank
PASS: test-isnand-nolibm
PASS: test-isnanf-nolibm
PASS: test-isnanl-nolibm
PASS: test-langinfo
PASS: test-limits-h
PASS: test-link
PASS: test-linkedhash_list
PASS: test-locale
PASS: test-localeconv
PASS: test-localename
PASS: test-lseek.sh
PASS: test-lstat
PASS: test-malloca
PASS: test-math
SKIP: test-mbrtowc1.sh
PASS: test-mbrtowc2.sh
SKIP: test-mbrtowc3.sh
SKIP: test-mbrtowc4.sh
PASS: test-mbrtowc5.sh
SKIP: test-mbrtowc-w32-1.sh
SKIP: test-mbrtowc-w32-2.sh
SKIP: test-mbrtowc-w32-3.sh
SKIP: test-mbrtowc-w32-4.sh
SKIP: test-mbrtowc-w32-5.sh
PASS: test-mbsinit.sh
PASS: test-memchr
PASS: test-memchr2
PASS: test-nl_langinfo.sh
PASS: test-open
PASS: test-pathmax
PASS: test-pipe2
PASS: test-posix_spawn_file_actions_addclose
PASS: test-posix_spawn_file_actions_adddup2
PASS: test-posix_spawn_file_actions_addopen
PASS: test-posix_spawn1
PASS: test-posix_spawn2
PASS: test-printf-frexp
PASS: test-printf-frexpl
PASS: test-quotearg-simple
PASS: test-raise
PASS: test-rawmemchr
PASS: test-readlink
PASS: test-regex
PASS: test-rename
PASS: test-rmdir
PASS: test-sched
PASS: test-setenv
PASS: test-setlocale1.sh
PASS: test-setlocale2.sh
PASS: test-sigaction
PASS: test-signal-h
PASS: test-signbit
PASS: test-sigpipe.sh
PASS: test-sigprocmask
PASS: test-sleep
PASS: test-snprintf
PASS: test-spawn-pipe.sh
PASS: test-spawn
PASS: test-stat
PASS: test-stdalign
PASS: test-stdbool
PASS: test-stddef
PASS: test-stdint
PASS: test-stdio
PASS: test-stdlib
PASS: test-strchrnul
PASS: test-strerror
PASS: test-string
PASS: test-strnlen
PASS: test-strsignal
PASS: test-strstr
PASS: test-strtod
PASS: test-symlink
PASS: test-sys_stat
PASS: test-sys_time
PASS: test-sys_types
PASS: test-sys_wait
PASS: test-init.sh
PASS: test-time
PASS: test-dup-safer
PASS: test-unistd
PASS: test-unsetenv
PASS: test-update-copyright.sh
PASS: test-vasnprintf
PASS: test-vasprintf-posix
PASS: test-vasprintf
PASS: test-vc-list-files-git.sh
PASS: test-vc-list-files-cvs.sh
PASS: test-verify
PASS: test-verify.sh
PASS: test-version-etc.sh
PASS: test-wchar
PASS: test-wcrtomb.sh
SKIP: test-wcrtomb-w32-1.sh
SKIP: test-wcrtomb-w32-2.sh
SKIP: test-wcrtomb-w32-3.sh
SKIP: test-wcrtomb-w32-4.sh
SKIP: test-wcrtomb-w32-5.sh
PASS: test-wctype-h
PASS: test-write
PASS: test-xalloc-die.sh
PASS: test-xvasprintf
============================================================================
Testsuite summary for GNU M4 1.4.18
============================================================================
# TOTAL: 170
# PASS:  156
# SKIP:  14
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
gmake[6]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[5]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[4]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[1]: Leaving directory `/stage/build/m4/m4-1.4.18-64'


$ sudo gmake DESTDIR=/stage/prototype/m4/1.4.18/64 install
Password:
gmake  install-recursive
gmake[1]: Entering directory `/stage/build/m4/m4-1.4.18-64'
Making install in .
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64'
gmake[3]: Nothing to be done for `install-exec-am'.
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64'
Making install in examples
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/examples'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/examples'
gmake[3]: Nothing to be done for `install-exec-am'.
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/examples'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/examples'
Making install in lib
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake  install-am
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake[4]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
if test no = no; then \
  case 'solaris2.11' in \
    darwin[56]*) \
      need_charset_alias=true ;; \
    darwin* | cygwin* | mingw* | pw32* | cegcc*) \
      need_charset_alias=false ;; \
    *) \
      need_charset_alias=true ;; \
  esac ; \
else \
  need_charset_alias=false ; \
fi ; \
if $need_charset_alias; then \
  /usr/bin/bash /stage/build/m4/m4-1.4.18-64/build-aux/install-sh -d /stage/prototype/m4/1.4.18/64/opt/gnu/lib ; \
fi ; \
if test -f /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.alias; then \
  sed -f ref-add.sed /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.alias > /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.tmp ; \
  /usr/gnu/bin/install -c -m 644 /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.tmp /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.alias ; \
  rm -f /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.tmp ; \
else \
  if $need_charset_alias; then \
    sed -f ref-add.sed charset.alias > /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.tmp ; \
    /usr/gnu/bin/install -c -m 644 /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.tmp /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.alias ; \
    rm -f /stage/prototype/m4/1.4.18/64/opt/gnu/lib/charset.tmp ; \
  fi ; \
fi
gmake[4]: Nothing to be done for `install-data-am'.
gmake[4]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
Making install in src
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/src'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/src'
 /usr/gnu/bin/mkdir -p '/stage/prototype/m4/1.4.18/64/opt/gnu/bin'
  /usr/gnu/bin/install -c m4 '/stage/prototype/m4/1.4.18/64/opt/gnu/bin'
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/src'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/src'
Making install in doc
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/doc'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/doc'
gmake[3]: Nothing to be done for `install-exec-am'.
 /usr/gnu/bin/mkdir -p '/stage/prototype/m4/1.4.18/64/opt/gnu/share/info'
 /usr/gnu/bin/install -c -m 644 ./m4.info ./m4.info-1 ./m4.info-2 '/stage/prototype/m4/1.4.18/64/opt/gnu/share/info'
 install-info --info-dir='/stage/prototype/m4/1.4.18/64/opt/gnu/share/info' '/stage/prototype/m4/1.4.18/64/opt/gnu/share/info/m4.info'
 /usr/gnu/bin/mkdir -p '/stage/prototype/m4/1.4.18/64/opt/gnu/share/man/man1'
 /usr/gnu/bin/install -c -m 644 ./m4.1 '/stage/prototype/m4/1.4.18/64/opt/gnu/share/man/man1'
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/doc'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/doc'
Making install in checks
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/checks'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/checks'
gmake[3]: Nothing to be done for `install-exec-am'.
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/checks'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/checks'
Making install in tests
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake  install-recursive
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
Making install in .
gmake[4]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[5]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[5]: Nothing to be done for `install-exec-am'.
gmake[5]: Nothing to be done for `install-data-am'.
gmake[5]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[4]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[1]: Leaving directory `/stage/build/m4/m4-1.4.18-64'


$ sudo gmake install
gmake  install-recursive
gmake[1]: Entering directory `/stage/build/m4/m4-1.4.18-64'
Making install in .
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64'
gmake[3]: Nothing to be done for `install-exec-am'.
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64'
Making install in examples
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/examples'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/examples'
gmake[3]: Nothing to be done for `install-exec-am'.
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/examples'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/examples'
Making install in lib
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake  install-am
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake[4]: Entering directory `/stage/build/m4/m4-1.4.18-64/lib'
if test no = no; then \
  case 'solaris2.11' in \
    darwin[56]*) \
      need_charset_alias=true ;; \
    darwin* | cygwin* | mingw* | pw32* | cegcc*) \
      need_charset_alias=false ;; \
    *) \
      need_charset_alias=true ;; \
  esac ; \
else \
  need_charset_alias=false ; \
fi ; \
if $need_charset_alias; then \
  /usr/bin/bash /stage/build/m4/m4-1.4.18-64/build-aux/install-sh -d /opt/gnu/lib ; \
fi ; \
if test -f /opt/gnu/lib/charset.alias; then \
  sed -f ref-add.sed /opt/gnu/lib/charset.alias > /opt/gnu/lib/charset.tmp ; \
  /usr/gnu/bin/install -c -m 644 /opt/gnu/lib/charset.tmp /opt/gnu/lib/charset.alias ; \
  rm -f /opt/gnu/lib/charset.tmp ; \
else \
  if $need_charset_alias; then \
    sed -f ref-add.sed charset.alias > /opt/gnu/lib/charset.tmp ; \
    /usr/gnu/bin/install -c -m 644 /opt/gnu/lib/charset.tmp /opt/gnu/lib/charset.alias ; \
    rm -f /opt/gnu/lib/charset.tmp ; \
  fi ; \
fi
gmake[4]: Nothing to be done for `install-data-am'.
gmake[4]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/lib'
Making install in src
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/src'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/src'
 /usr/gnu/bin/mkdir -p '/opt/gnu/bin'
  /usr/gnu/bin/install -c m4 '/opt/gnu/bin'
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/src'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/src'
Making install in doc
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/doc'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/doc'
gmake[3]: Nothing to be done for `install-exec-am'.
 /usr/gnu/bin/mkdir -p '/opt/gnu/share/info'
 /usr/gnu/bin/install -c -m 644 ./m4.info ./m4.info-1 ./m4.info-2 '/opt/gnu/share/info'
 install-info --info-dir='/opt/gnu/share/info' '/opt/gnu/share/info/m4.info'
 /usr/gnu/bin/mkdir -p '/opt/gnu/share/man/man1'
 /usr/gnu/bin/install -c -m 644 ./m4.1 '/opt/gnu/share/man/man1'
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/doc'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/doc'
Making install in checks
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/checks'
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/checks'
gmake[3]: Nothing to be done for `install-exec-am'.
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/checks'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/checks'
Making install in tests
gmake[2]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake  install-recursive
gmake[3]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
Making install in .
gmake[4]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[5]: Entering directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[5]: Nothing to be done for `install-exec-am'.
gmake[5]: Nothing to be done for `install-data-am'.
gmake[5]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[4]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[3]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[2]: Leaving directory `/stage/build/m4/m4-1.4.18-64/tests'
gmake[1]: Leaving directory `/stage/build/m4/m4-1.4.18-64'


$ sudo zfs snapshot -r .../opt/gnu@m4-1.4.18

NOTE
The building process of the whole (or most of) GNU tools is rather intincated because there are kind of circular dependencies. For instance, many tools depend on Perl which at this time is still the old stock version packaged with Solaris 11.3. This means that later, when I finally get Perl updated, I would have to rebuild the dependent tools to update all outdated dependencies. This difficulty, together with default setting of i386-pc-solaris2.11 in Solaris 11.3 makes building 64-bits targets more intrincate and it seems not uncommon to produce failures on some test suites (from gmake check).

The building process is virtually the same for 32-bits artifacts but I don't perform it because the build would require the 32-bits libsigsegv installed under /opt/gnu which I particularly don't have as I'm exclusively focusing on 64-bits artifacts.