Compare the build with autotools (works fine) vs meson (fails):
---> Configuring bstring
Executing: cd "/opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1" && autoreconf --install --verbose
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: [configure.ac](http://configure.ac/): not using Gettext
autoreconf: running: /opt/local/bin/aclocal -I m4
autoreconf: [configure.ac](http://configure.ac/): tracing
autoreconf: running: /opt/local/bin/glibtoolize --copy
autoreconf: [configure.ac](http://configure.ac/): not using Intltool
autoreconf: [configure.ac](http://configure.ac/): not using Gtkdoc
autoreconf: running: /opt/local/bin/aclocal -I m4
autoreconf: running: /opt/local/bin/autoconf
autoreconf: running: /opt/local/bin/autoheader
autoreconf: running: /opt/local/bin/automake --add-missing --copy --no-force
[configure.ac:28](http://configure.ac:28/): installing './compile'
[configure.ac:28](http://configure.ac:28/): installing './config.guess'
[configure.ac:28](http://configure.ac:28/): installing './config.sub'
[configure.ac:22](http://configure.ac:22/): installing './install-sh'
[configure.ac:22](http://configure.ac:22/): installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory '.'
Executing: cd "/opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1" && ./configure --prefix=/opt/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 2
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether UID '503' is supported by ustar format... yes
checking whether GID '501' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking build system type... powerpc-apple-darwin10.8.0
checking host system type... powerpc-apple-darwin10.8.0
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... /usr/bin/gcc-4.2
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 the compiler supports GNU C... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to enable C11 features... unsupported
checking for /usr/bin/gcc-4.2 option to enable C99 features... -std=gnu99
checking whether /usr/bin/gcc-4.2 -std=gnu99 understands -c and -o together... yes
checking dependency style of /usr/bin/gcc-4.2 -std=gnu99... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/gcc-4.2 -std=gnu99... /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert powerpc-apple-darwin10.8.0 file names to powerpc-apple-darwin10.8.0 format... func_convert_file_noop
checking how to convert powerpc-apple-darwin10.8.0 file names to toolchain format... func_convert_file_noop
checking for /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/ld option to reload object files... -r
checking for file... file
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ranlib... ranlib
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking command to parse /usr/bin/nm output from /usr/bin/gcc-4.2 -std=gnu99 object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -no_fixup_chains linker flag... no
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/gcc-4.2 -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc-4.2 -std=gnu99 option to produce PIC... -fno-common -DPIC
checking if /usr/bin/gcc-4.2 -std=gnu99 PIC flag -fno-common -DPIC works... yes
checking if /usr/bin/gcc-4.2 -std=gnu99 static flag -static works... no
checking if /usr/bin/gcc-4.2 -std=gnu99 supports -c -o file.o... yes
checking if /usr/bin/gcc-4.2 -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc-4.2 -std=gnu99 linker (/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) /usr/bin/gcc-4.2
checking whether the compiler supports GNU C... (cached) yes
checking whether /usr/bin/gcc-4.2 accepts -g... (cached) yes
checking for /usr/bin/gcc-4.2 option to enable C11 features... (cached) unsupported
checking for /usr/bin/gcc-4.2 option to enable C99 features... (cached) -std=gnu99
checking whether /usr/bin/gcc-4.2 -std=gnu99 understands -c and -o together... (cached) yes
checking dependency style of /usr/bin/gcc-4.2 -std=gnu99... (cached) gcc3
checking for valgrind... no
checking for doxygen... no
checking for gdb... gdb
checking if compiler accepts '-Wall'... no
checking if compiler accepts '-Wextra'... no
checking if compiler accepts '-pedantic'... no
checking if compiler accepts '-Wstrict-prototypes'... no
checking if compiler accepts '-Wcast-align'... no
checking if compiler accepts '-fno-common'... no
checking if compiler accepts '-fvisibility=hidden'... no
checking if linker accepts '-Wl,--no-undefined'... no
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for check >= 0.9... no
configure: WARNING: Unable to run unit tests.
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating bstring.pc
config.status: creating doc/Doxyfile
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Bstring build options:
Host: powerpc-apple-darwin10.8.0
Version: 1.0.1
---> Building bstring
Executing: cd "/opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1" && /usr/bin/make -j4 -w all
make: Entering directory `/opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1'
/usr/bin/make all-am
make[1]: Entering directory `/opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1'
CC bstring/bstraux.lo
CC bstring/bstrlib.lo
CCLD bstring/[libbstring.la](http://libbstring.la/)
make[1]: Leaving directory `/opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1'
make: Leaving directory `/opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1'
---> Configuring bstring
Executing: cd "/opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1" && /opt/local/bin/meson setup --prefix=/opt/local -Denable-docs=false -Denable-tests=false /opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1 /opt/local/var/macports/build/bstring-0fe3ac01/work/build --wrap-mode=default
The Meson build system
Version: 1.9.0
Source dir: /opt/local/var/macports/build/bstring-0fe3ac01/work/bstring-1.0.1
Build dir: /opt/local/var/macports/build/bstring-0fe3ac01/work/build
Build type: native build
Project name: bstring
Project version: 1.0.1
C compiler for the host machine: /usr/bin/gcc-4.2 (gcc 4.2.1 "powerpc-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)")
C linker for the host machine: /usr/bin/gcc-4.2 ld64 0.7.0
Host machine cpu family: ppc
Host machine cpu: power macintosh
Checking if "bgets defined in standard C library" compiles: YES
Configuring config.h using configuration
Found pkg-config: YES (/opt/local/bin/pkg-config) 0.29.2
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency check found: NO (tried pkgconfig, framework and cmake)
Program doxygen found: NO
Build targets in project: 1
bstring 1.0.1
User defined options
enable-docs : false
enable-tests: false
prefix : /opt/local
wrap_mode : default
Found ninja-1.13.1 at /opt/local/bin/ninja
---> Building bstring
Executing: cd "/opt/local/var/macports/build/bstring-0fe3ac01/work/build" && /opt/local/bin/ninja -j4 -v
[1/3] /usr/bin/gcc-4.2 -Ibstring/libbstring.1.dylib.p -Ibstring -I../bstring-1.0.1/bstring -I. -I../bstring-1.0.1 -I/opt/local/include -Wall -Winvalid-pch -Wextra -O0 -g -pedantic -Wstrict-prototypes -Wcast-align -Wno-gnu -fno-common -fvisibility=hidden -pipe -Os -arch ppc -MD -MQ bstring/libbstring.1.dylib.p/bstrlib.c.o -MF bstring/libbstring.1.dylib.p/bstrlib.c.o.d -o bstring/libbstring.1.dylib.p/bstrlib.c.o -c ../bstring-1.0.1/bstring/bstrlib.c
FAILED: [code=1] bstring/libbstring.1.dylib.p/bstrlib.c.o
/usr/bin/gcc-4.2 -Ibstring/libbstring.1.dylib.p -Ibstring -I../bstring-1.0.1/bstring -I. -I../bstring-1.0.1 -I/opt/local/include -Wall -Winvalid-pch -Wextra -O0 -g -pedantic -Wstrict-prototypes -Wcast-align -Wno-gnu -fno-common -fvisibility=hidden -pipe -Os -arch ppc -MD -MQ bstring/libbstring.1.dylib.p/bstrlib.c.o -MF bstring/libbstring.1.dylib.p/bstrlib.c.o.d -o bstring/libbstring.1.dylib.p/bstrlib.c.o -c ../bstring-1.0.1/bstring/bstrlib.c
cc1: error: unrecognized command line option "-Wno-gnu"
[2/3] /usr/bin/gcc-4.2 -Ibstring/libbstring.1.dylib.p -Ibstring -I../bstring-1.0.1/bstring -I. -I../bstring-1.0.1 -I/opt/local/include -Wall -Winvalid-pch -Wextra -O0 -g -pedantic -Wstrict-prototypes -Wcast-align -Wno-gnu -fno-common -fvisibility=hidden -pipe -Os -arch ppc -MD -MQ bstring/libbstring.1.dylib.p/bstraux.c.o -MF bstring/libbstring.1.dylib.p/bstraux.c.o.d -o bstring/libbstring.1.dylib.p/bstraux.c.o -c ../bstring-1.0.1/bstring/bstraux.c
FAILED: [code=1] bstring/libbstring.1.dylib.p/bstraux.c.o
/usr/bin/gcc-4.2 -Ibstring/libbstring.1.dylib.p -Ibstring -I../bstring-1.0.1/bstring -I. -I../bstring-1.0.1 -I/opt/local/include -Wall -Winvalid-pch -Wextra -O0 -g -pedantic -Wstrict-prototypes -Wcast-align -Wno-gnu -fno-common -fvisibility=hidden -pipe -Os -arch ppc -MD -MQ bstring/libbstring.1.dylib.p/bstraux.c.o -MF bstring/libbstring.1.dylib.p/bstraux.c.o.d -o bstring/libbstring.1.dylib.p/bstraux.c.o -c ../bstring-1.0.1/bstring/bstraux.c
cc1: error: unrecognized command line option "-Wno-gnu"
ninja: build stopped: subcommand failed.
Command failed: cd "/opt/local/var/macports/build/bstring-0fe3ac01/work/build" && /opt/local/bin/ninja -j4 -v
Exit code: 1
Error: Failed to build bstring: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_ppcports_devel_bstring/bstring/main.log for details.
Compare the build with autotools (works fine) vs meson (fails):