DEBUG: Copying /Users/travis/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: Changing to port directory: /Users/travis/build/macports/macports-ports/gis/terra DEBUG: OS darwin/16.7.0 (Mac OS X 10.12) arch i386 DEBUG: universal_variant is false, so not adding the default universal variant DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Attempting ln -sf /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work /Users/travis/build/macports/macports-ports/gis/terra/work DEBUG: dropping privileges: euid changed to 502, egid changed to 501. DEBUG: Starting logging for terra DEBUG: Executing org.macports.main (terra) DEBUG: dropping privileges: euid changed to 502, egid changed to 501. DEBUG: fetch phase started at Thu Apr 5 06:26:18 GMT 2018 ---> Fetching distfiles for terra DEBUG: elevating privileges for fetch: euid changed to 0, egid changed to 0. DEBUG: dropping privileges: euid changed to 502, egid changed to 501. DEBUG: Executing org.macports.fetch (terra) ---> terra-0.7.tar.gz does not exist in /opt/local/var/macports/distfiles/terra ---> Attempting to fetch terra-0.7.tar.gz from https://distfiles.macports.org/terra % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 201k 100 201k 0 0 307k 0 --:--:-- --:--:-- --:--:-- 308k DEBUG: Copying /Users/travis/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: Changing to port directory: /Users/travis/build/macports/macports-ports/gis/terra DEBUG: OS darwin/16.7.0 (Mac OS X 10.12) arch i386 DEBUG: universal_variant is false, so not adding the default universal variant DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: dropping privileges: euid changed to 502, egid changed to 501. DEBUG: Starting logging for terra ---> Computing dependencies for terra DEBUG: terra has no conflicts DEBUG: Searching for dependency: freeglut DEBUG: Found Dependency: receipt exists for freeglut DEBUG: Executing org.macports.main (terra) DEBUG: dropping privileges: euid changed to 502, egid changed to 501. DEBUG: archivefetch phase started at Thu Apr 5 06:26:19 GMT 2018 ---> Fetching archive for terra DEBUG: Executing org.macports.archivefetch (terra) DEBUG: euid/egid changed to: 0/0 DEBUG: chowned /opt/local/var/macports/incoming to macports DEBUG: euid/egid changed to: 502/501 ---> terra-0.7_2.darwin_16.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified ---> Attempting to fetch terra-0.7_2.darwin_16.x86_64.tbz2 from https://packages.macports.org/terra % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 DEBUG: Fetching archive failed: The requested URL returned error: 404 Not Found ---> Attempting to fetch terra-0.7_2.darwin_16.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/terra % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 DEBUG: Fetching archive failed: The requested URL returned error: 404 Not Found ---> Attempting to fetch terra-0.7_2.darwin_16.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/terra % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 DEBUG: Fetching archive failed: The requested URL returned error: 404 Not Found DEBUG: Privilege de-escalation not attempted as not running as root. DEBUG: Skipping completed org.macports.fetch (terra) DEBUG: Privilege de-escalation not attempted as not running as root. DEBUG: checksum phase started at Thu Apr 5 06:26:20 GMT 2018 ---> Verifying checksums for terra DEBUG: Executing org.macports.checksum (terra) ---> Checksumming terra-0.7.tar.gz DEBUG: Calculated (rmd160) is 885639282ffe5244f5289ef3f453390c8acdb30f DEBUG: Correct (rmd160) checksum for terra-0.7.tar.gz DEBUG: Calculated (sha256) is 22470e13e1f0659d23dbf7e0ecbfd8f6490bcd1d0a953537c1dfec18f4df3bd7 DEBUG: Correct (sha256) checksum for terra-0.7.tar.gz DEBUG: Privilege de-escalation not attempted as not running as root. DEBUG: extract phase started at Thu Apr 5 06:26:20 GMT 2018 ---> Extracting terra DEBUG: Executing org.macports.extract (terra) ---> Extracting terra-0.7.tar.gz DEBUG: setting option extract.args to '/opt/local/var/macports/distfiles/terra/terra-0.7.tar.gz' DEBUG: Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.12' Executing: cd "/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/terra/terra-0.7.tar.gz' | /usr/bin/tar -xf - DEBUG: system: cd "/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/terra/terra-0.7.tar.gz' | /usr/bin/tar -xf - DEBUG: euid/egid changed to: 0/0 DEBUG: chowned /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work to macports DEBUG: euid/egid changed to: 502/501 DEBUG: Privilege de-escalation not attempted as not running as root. DEBUG: patch phase started at Thu Apr 5 06:26:20 GMT 2018 DEBUG: Executing org.macports.patch (terra) ---> Applying patches to terra ---> Applying patch-compiler.diff DEBUG: Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.12' Executing: cd "/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra" && /usr/bin/patch -p1 < '/Users/travis/build/macports/macports-ports/gis/terra/files/patch-compiler.diff' DEBUG: system: cd "/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra" && /usr/bin/patch -p1 < '/Users/travis/build/macports/macports-ports/gis/terra/files/patch-compiler.diff' patching file Array.h patching file GreedyInsert.cc patching file Heap.cc patching file Makefile patching file Map.h patching file Mask.cc patching file Mask.h patching file Quadedge.cc patching file Subdivision.cc patching file Vec2.h patching file Vec3.h patching file cmdline.cc patching file glHacks.h patching file greedy.cc patching file output.cc patching file terra.cc patching file terra.h patching file xterra.cc ---> Applying patch-opengl.diff DEBUG: Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.12' Executing: cd "/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra" && /usr/bin/patch -p1 < '/Users/travis/build/macports/macports-ports/gis/terra/files/patch-opengl.diff' DEBUG: system: cd "/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra" && /usr/bin/patch -p1 < '/Users/travis/build/macports/macports-ports/gis/terra/files/patch-opengl.diff' patching file gui.cc DEBUG: Executing proc-post-org.macports.patch-patch-0 ---> Patching Makefile: s,@CC@,/usr/bin/clang,g DEBUG: Executing reinplace: /usr/bin/sed -E s,@CC@,/usr/bin/clang,g @file13 DEBUG: euid/egid changed to: 0/0 DEBUG: chowned /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra/Makefile to macports DEBUG: euid/egid changed to: 502/501 DEBUG: euid/egid changed to: 0/0 DEBUG: setting attributes on /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra/Makefile DEBUG: euid/egid changed to: 502/501 ---> Patching Makefile: s,@CXX@,/usr/bin/clang++,g DEBUG: Executing reinplace: /usr/bin/sed -E s,@CXX@,/usr/bin/clang++,g @file13 DEBUG: euid/egid changed to: 0/0 DEBUG: chowned /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra/Makefile to macports DEBUG: euid/egid changed to: 502/501 DEBUG: euid/egid changed to: 0/0 DEBUG: setting attributes on /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra/Makefile DEBUG: euid/egid changed to: 502/501 ---> Patching Makefile: s,@OPTFLAGS@,-Os,g DEBUG: Executing reinplace: /usr/bin/sed -E s,@OPTFLAGS@,-Os,g @file13 DEBUG: euid/egid changed to: 0/0 DEBUG: chowned /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra/Makefile to macports DEBUG: euid/egid changed to: 502/501 DEBUG: euid/egid changed to: 0/0 DEBUG: setting attributes on /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra/Makefile DEBUG: euid/egid changed to: 502/501 ---> Patching Makefile: s,@PREFIX@,/opt/local,g DEBUG: Executing reinplace: /usr/bin/sed -E s,@PREFIX@,/opt/local,g @file13 DEBUG: euid/egid changed to: 0/0 DEBUG: chowned /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra/Makefile to macports DEBUG: euid/egid changed to: 502/501 DEBUG: euid/egid changed to: 0/0 DEBUG: setting attributes on /opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra/Makefile DEBUG: euid/egid changed to: 502/501 DEBUG: Privilege de-escalation not attempted as not running as root. DEBUG: configure phase started at Thu Apr 5 06:26:20 GMT 2018 ---> Configuring terra DEBUG: Preferred compilers: clang macports-clang-4.0 macports-clang-3.9 DEBUG: Using compiler 'Xcode Clang' DEBUG: Executing org.macports.configure (terra) DEBUG: Privilege de-escalation not attempted as not running as root. DEBUG: build phase started at Thu Apr 5 06:26:20 GMT 2018 ---> Building terra DEBUG: Executing org.macports.build (terra) DEBUG: Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.12' Executing: cd "/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra" && /usr/bin/make -j2 -w all DEBUG: system: cd "/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra" && /usr/bin/make -j2 -w all make: Entering directory `/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra' /usr/bin/clang++ -I/opt/local/include -g -Wall -Os -DIOSTREAMH -c terra.cc /usr/bin/clang++ -I/opt/local/include -g -Wall -Os -DIOSTREAMH -c Quadedge.cc In file included from terra.cc:1: In file included from ./terra.h:4: In file included from ./GreedyInsert.h:4: In file included from ./Heap.h:5: ./Array.h:41:13: warning: variable templates are a C++14 extension [-Wc++14-extensions] inline void array::init(int l) ^ ./Array.h:41:1: warning: inline variables are a C++1z extension [-Wc++1z-extensions] inline void array::init(int l) ^ ./Array.h:41:13: error: variable has incomplete type 'void' inline void array::init(int l) ^ ./Array.h:41:18: error: expected ';' at end of declaration inline void array::init(int l) ^ ; ./Array.h:41:18: error: expected unqualified-id ./Array.h:48:13: warning: variable templates are a C++14 extension [-Wc++14-extensions] inline void array::free() ^ ./Array.h:48:1: warning: inline variables are a C++1z extension [-Wc++1z-extensions] inline void array::free() ^ ./Array.h:48:13: error: variable has incomplete type 'void' inline void array::free() ^ ./Array.h:48:18: error: expected ';' at end of declaration inline void array::free() ^ ; ./Array.h:48:18: error: expected unqualified-id ./Array.h:58:11: warning: variable templates are a C++14 extension [-Wc++14-extensions] inline T& array::ref(int i) ^ ./Array.h:58:1: warning: inline variables are a C++1z extension [-Wc++1z-extensions] inline T& array::ref(int i) ^ ./Array.h:58:11: error: redefinition of 'array' as different kind of symbol inline T& array::ref(int i) ^ ./Array.h:19:7: note: previous definition is here class array { ^ ./Array.h:58:11: error: declaration of reference variable 'array' requires an initializer inline T& array::ref(int i) ^~~~~ ./Array.h:58:16: error: expected ';' at end of declaration inline T& array::ref(int i) ^ ; ./Array.h:58:16: error: expected unqualified-id ./Array.h:68:13: warning: variable templates are a C++14 extension [-Wc++14-extensions] inline void array::resize(int l) ^ ./Array.h:68:1: warning: inline variables are a C++1z extension [-Wc++1z-extensions] inline void array::resize(int l) ^ ./Array.h:68:13: error: variable has incomplete type 'void' inline void array::resize(int l) ^ ./Array.h:68:18: error: expected ';' at end of declaration inline void array::resize(int l) ^ ; ./Array.h:68:18: error: expected unqualified-id In file included from terra.cc:1: In file included from ./terra.h:4: In file included from ./GreedyInsert.h:4: ./Heap.h:27:21: error: unknown template name 'array' class Heap : public array { ^ ./Heap.h:46:24: error: expected '(' Heap(int s) : array(s) { size=0; } ^ ./Heap.h:53:61: error: no matching function for call to 'ref' heap_node *top() { return size<1 ? (heap_node *)NULL : &ref(0); } ^~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_base:567:1: note: candidate function [with _Tp = int] not viable: expects an l-value for 1st argument ref(_Tp& __t) _NOEXCEPT ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_base:575:1: note: candidate template ignored: could not match 'reference_wrapper' against 'int' ref(reference_wrapper<_Tp> __t) _NOEXCEPT ^ 8 warnings and 16 errors generated. make: *** [terra.o] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory `/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra' Command failed: cd "/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_gis_terra/terra/work/terra" && /usr/bin/make -j2 -w all Exit code: 2 Error: Failed to build terra: command execution failed DEBUG: Error code: CHILDSTATUS 18708 2 DEBUG: Backtrace: command execution failed while executing "system {*}$notty {*}$nice $fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" Error: See /opt/local/var/macports/logs/_Users_travis_build_macports_macports-ports_gis_terra/terra/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port terra failed Build of 'terra' failed. /Users/travis/build/macports/mpbb/mpbb: error: `install-port' failed to run successfully