We are working to move the default version of GCC in ports (lang/gcc) from GCC 4.8 to GCC 4.9. Sadly this port is one of a few that blocks this update, cf. http://package22.nyi.freebsd.org/data/101amd64-default-PR196712/2015-10-25_21h38m31s/logs/errors/saga-2.2.2.log
Sorry for the late answer. I tried to upgrade poudriere jails before checking ports build and that failed for some days now. I just built math/saga with poudriere jails 10.2 and 9.3 (both amd64) with setting 'DEFAULT_VERSIONS+= gcc=4.9' in /usr/local/etc/poudriere.d/make.conf. Log files are available, if needed. Both builds ran fine, so with my configuration I am not able to reproduce the error in your log: ../saga_api/.libs/libsaga_api.so: undefined reference to `__cxa_throw_bad_array_new_length' collect2: error: ld returned 1 exit status I am not sure, if this is the needed configure for (future) gcc 4.9 default configuration.
Hmm, is there any reason _not_ to close this bug? [I also tested math/saga with lang/gcc49 in VirtualBox on 9.3 and HEAD. As with Pourdriere, I was not able to reproduce your error, described above.]
Reporter is committer, assign accordingly
Okay, then let's assume this either was a hickup around the -exp run or that it has been addressed by some (un?)related changes in the meantime. Thanks for digging into this and trying to reproduce!