https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89494
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Piotr Kubaj from comment #7) > But the failing command is run strictly with -O2. If I just cd to > '/usr/local/poudriere/ports/default/lang/gcc7/work/.build/libiberty' and run > it manually, but change -O2 to -O0, it passes. Are you sure? The crash is in .build/powerpc64-portbld-freebsd12.0/libstdc++-v3 not .build/libiberty Also, it seems that the new gcc-7 compiler is the one crashing here, which is surprising. You've finished using the gcc-4.2.1 system compiler now, and I wouldn't expect gcc-7 to crash on its own sources.