Solved lang/gcc8: "fatal error: can't write PCH file: No space left on device"

Some other programs I need depend on gcc8. They are being built with poudriere but it's giving me this error and does not compile. I have 1.6 TB available, on the device, so I know it's not actually a space issue. Any idea what might be wrong? The full log is huge but here's as much as I can insert into this post, without hitting the 25,000 character limit, in case it helps. Thank you!

Code:
gmake[7]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/src'
gmake[6]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/src'
Making all in doc
gmake[6]: Entering directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/doc'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/doc'
Making all in po
gmake[6]: Entering directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/po'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/po'
Making all in testsuite
gmake[6]: Entering directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/testsuite'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/testsuite'
Making all in python
gmake[6]: Entering directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/python'
sed -e 's,@pythondir@,/usr/local/share/gcc-8.3.0/python,' \
    -e 's,@toolexeclibdir@,/usr/local/lib/gcc8,' < /wrkdirs/usr/ports/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/python/hook.in > gdb.py
gmake[6]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3/python'
gmake[6]: Entering directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3'
gmake "AR_FLAGS=rc" "CC_FOR_BUILD=cc" "CC_FOR_TARGET=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/xgcc -B/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/" "CFLAGS=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "CXXFLAGS=-g -O2 -pipe   -DLIBICONV_PLUG " "CFLAGS_FOR_BUILD=-O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "CFLAGS_FOR_TARGET=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=install  -m 0644" "INSTALL_PROGRAM=install  -s -m 755" "INSTALL_SCRIPT=install  -m 755" "LDFLAGS=" "LIBCFLAGS=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "MAKE=gmake" "MAKEINFO=makeinfo --no-split --split-size=5000000 --split-size=5000000 --split-size=5000000 --split-size=5000000 --split-size=5000000" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info/gcc8" "libdir=/usr/local/lib/gcc8" "includedir=/usr/local/include" "prefix=/usr/local" "tooldir=/usr/local/x86_64-portbld-freebsd11.2" "gxx_include_dir=/usr/local/lib/gcc8/include/c++/" "AR=/usr/local/x86_64-portbld-freebsd11.2/bin/ar" "AS=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/as" "LD=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/collect-ld" "RANLIB=/usr/local/x86_64-portbld-freebsd11.2/bin/ranlib" "NM=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=/usr/local/x86_64-portbld-freebsd11.2/bin/nm" "DESTDIR=" "WERROR=" DO=all multi-do # gmake
gmake[7]: Entering directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3'
if [ -z "32" ]; then \
  true; \
else \
  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
  srcrootpre=`cd /wrkdirs/usr/ports/lang/gcc8/work/gcc-8.3.0/libstdc++-v3; ${PWDCMD-pwd}`/; export srcrootpre; \
  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/xgcc -B/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/ -B/usr/local/x86_64-portbld-freebsd11.2/bin/ -B/usr/local/x86_64-portbld-freebsd11.2/lib/ -isystem /usr/local/x86_64-portbld-freebsd11.2/include -isystem /usr/local/x86_64-portbld-freebsd11.2/sys-include   "; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
    flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
    if (cd ../${dir}/${lib}; gmake "AR_FLAGS=rc" "CC_FOR_BUILD=cc" "CC_FOR_TARGET=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/xgcc -B/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/" "CFLAGS=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "CXXFLAGS=-g -O2 -pipe   -DLIBICONV_PLUG " "CFLAGS_FOR_BUILD=-O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "CFLAGS_FOR_TARGET=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=install  -m 0644" "INSTALL_PROGRAM=install  -s -m 755" "INSTALL_SCRIPT=install  -m 755" "LDFLAGS=" "LIBCFLAGS=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "MAKE=gmake" "MAKEINFO=makeinfo --no-split --split-size=5000000 --split-size=5000000 --split-size=5000000 --split-size=5000000 --split-size=5000000 --split-size=5000000" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info/gcc8" "libdir=/usr/local/lib/gcc8" "includedir=/usr/local/include" "prefix=/usr/local" "tooldir=/usr/local/x86_64-portbld-freebsd11.2" "gxx_include_dir=/usr/local/lib/gcc8/include/c++/" "AR=/usr/local/x86_64-portbld-freebsd11.2/bin/ar" "AS=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/as" "LD=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/collect-ld" "RANLIB=/usr/local/x86_64-portbld-freebsd11.2/bin/ranlib" "NM=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=/usr/local/x86_64-portbld-freebsd11.2/bin/nm" "DESTDIR=" "WERROR=" \
            CFLAGS="-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing  ${flags}" \
            CCASFLAGS=" ${flags}" \
            FCFLAGS=" ${flags}" \
            FFLAGS=" ${flags}" \
            ADAFLAGS=" ${flags}" \
            prefix="/usr/local" \
            exec_prefix="/usr/local" \
            GOCFLAGS="-O2 -g ${flags}" \
            CXXFLAGS="-g -O2 -pipe   -DLIBICONV_PLUG  ${flags}" \
            LIBCFLAGS="-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing  ${flags}" \
            LIBCXXFLAGS="-g -O2 -pipe   -DLIBICONV_PLUG  -fno-implicit-templates ${flags}" \
            LDFLAGS=" ${flags}" \
            MULTIFLAGS="${flags}" \
            DESTDIR="" \
            INSTALL="/usr/bin/install -c" \
            INSTALL_DATA="install  -m 0644" \
            INSTALL_PROGRAM="install  -s -m 755" \
            INSTALL_SCRIPT="install  -m 755" \
            all); then \
      true; \
    else \
      exit 1; \
    fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
gmake[8]: Entering directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3'
gmake "AR_FLAGS=rc" "CC_FOR_BUILD=cc" "CC_FOR_TARGET=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/xgcc -B/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/" "CFLAGS=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing   -m32" "CXXFLAGS=-g -O2 -pipe   -DLIBICONV_PLUG   -m32" "CFLAGS_FOR_BUILD=-O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "CFLAGS_FOR_TARGET=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=install  -m 0644" "INSTALL_PROGRAM=install  -s -m 755" "INSTALL_SCRIPT=install  -m 755" "LDFLAGS=-m32" "LIBCFLAGS=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing   -m32" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing " "MAKE=gmake" "MAKEINFO=makeinfo --no-split --split-size=5000000 --split-size=5000000 --split-size=5000000 --split-size=5000000 --split-size=5000000 --split-size=5000000 --split-size=5000000" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info/gcc8" "libdir=/usr/local/lib/gcc8" "includedir=/usr/local/include" "prefix=/usr/local" "tooldir=/usr/local/x86_64-portbld-freebsd11.2" "gxx_include_dir=/usr/local/lib/gcc8/include/c++/" "AR=/usr/local/x86_64-portbld-freebsd11.2/bin/ar" "AS=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/as" "LD=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/collect-ld" "RANLIB=/usr/local/x86_64-portbld-freebsd11.2/bin/ranlib" "NM=/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=/usr/local/x86_64-portbld-freebsd11.2/bin/nm" "DESTDIR=" "WERROR=" all-recursive
gmake[9]: Entering directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3'
Making all in include
gmake[10]: Entering directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/include'
mkdir -p ./x86_64-portbld-freebsd11.2/bits/stdc++.h.gch
/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/xgcc -shared-libgcc -B/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc -nostdinc++ -L/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/src -L/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/src/.libs -L/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-portbld-freebsd11.2/bin/ -B/usr/local/x86_64-portbld-freebsd11.2/lib/ -isystem /usr/local/x86_64-portbld-freebsd11.2/include -isystem /usr/local/x86_64-portbld-freebsd11.2/sys-include  -m32 -x c++-header -nostdinc++ -g -O2 -pipe   -DLIBICONV_PLUG   -m32  -I/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/include/x86_64-portbld-freebsd11.2 -I/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/include -I/wrkdirs/usr/ports/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/libsupc++  -O2 -g -std=gnu++0x /wrkdirs/usr/ports/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/include/precompiled/stdc++.h \
-o x86_64-portbld-freebsd11.2/bits/stdc++.h.gch/O2ggnu++0x.gch
mkdir -p ./x86_64-portbld-freebsd11.2/bits/stdc++.h.gch
/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/xgcc -shared-libgcc -B/wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc -nostdinc++ -L/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/src -L/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/src/.libs -L/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-portbld-freebsd11.2/bin/ -B/usr/local/x86_64-portbld-freebsd11.2/lib/ -isystem /usr/local/x86_64-portbld-freebsd11.2/include -isystem /usr/local/x86_64-portbld-freebsd11.2/sys-include  -m32 -x c++-header -nostdinc++ -g -O2 -pipe   -DLIBICONV_PLUG   -m32  -I/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/include/x86_64-portbld-freebsd11.2 -I/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/include -I/wrkdirs/usr/ports/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/libsupc++  -O2 -g /wrkdirs/usr/ports/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/include/precompiled/stdc++.h -o x86_64-portbld-freebsd11.2/bits/stdc++.h.gch/O2g.gch
In file included from /wrkdirs/usr/ports/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/include/precompiled/stdc++.h:122:
/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/include/shared_mutex:683:1: fatal error: can't write PCH file: No space left on device
 } // namespace
 ^
compilation terminated.
gmake[10]: *** [Makefile:1756: x86_64-portbld-freebsd11.2/bits/stdc++.h.gch/O2g.gch] Error 1
gmake[10]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3/include'
gmake[9]: *** [Makefile:511: all-recursive] Error 1
gmake[9]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3'
gmake[8]: *** [Makefile:418: all] Error 2
gmake[8]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/32/libstdc++-v3'
gmake[7]: *** [Makefile:771: multi-do] Error 1
gmake[7]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3'
gmake[6]: *** [Makefile:491: all-multi] Error 2
gmake[6]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3'
gmake[5]: *** [Makefile:511: all-recursive] Error 1
gmake[5]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3'
gmake[4]: *** [Makefile:418: all] Error 2
gmake[4]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build/x86_64-portbld-freebsd11.2/libstdc++-v3'
gmake[3]: *** [Makefile:15062: all-stage2-target-libstdc++-v3] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build'
gmake[2]: *** [Makefile:22550: stage2-bubble] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build'
gmake[1]: *** [Makefile:22765: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gcc8/work/.build'
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/gcc8
=>> Cleaning up wrkdir
===>  Cleaning for gcc8-8.3.0_2
build of lang/gcc8 | gcc8-8.3.0_2 ended at Thu Apr 25 00:06:15 UTC 2019
build time: 02:26:33
!!! build failure encountered !!!
 
Never mind, I just tried again and it decided to work.

I tried several times and each time it was taking around 2.5 hours and then failing but this time it only took 30 minutes and worked just fine.
 
Back
Top