https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82348
--- Comment #6 from Ian Lance Taylor <ian at airs dot com> --- The bug is that something is requiring internal/cpu.gox. Nothing should require it. There is only one mention of internal/cpu in the math package, in the floor_asm.go file, but that file has a build tag that should cause it to be always ignored. If you remove math.lo.dep, and then run `make math.lo.dep`, you should see a command like /bin/mkdir -p .; dir=`echo math.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh ../../../gccgo/libgo/match.sh --goarch=amd64 --goos=linux --srcdir=../../../gccgo/libgo/go/$dir --extrafiles="" `; /bin/sh ../../../gccgo/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files > math.lo.dep.tmp; if ! cmp math.lo.dep.tmp math.lo.dep >/dev/null 2>/dev/null; then rm -f `echo math.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f math.lo.dep.tmp math.lo.dep Run the command /bin/sh ../../../gccgo/libgo/match.sh --goarch=amd64 --goos=linux --srcdir=../../../gccgo/libgo/go/$dir --extrafiles="" to see what files is set to. Then run /bin/sh ../../../gccgo/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files to see what winds up in math.lo.dep. Somewhere in there something has gone wrong. On my system math.lo.dep is math.lo: ../../../gccgo3/libgo/go/math/abs.go ../../../gccgo3/libgo/go/math/acosh.go ../../../gccgo3/libgo/go/math/asin.go ../../../gccgo3/libgo/go/math/asinh.go ../../../gccgo3/libgo/go/math/atan.go ../../../gccgo3/libgo/go/math/atan2.go ../../../gccgo3/libgo/go/math/atanh.go ../../../gccgo3/libgo/go/math/bits.go ../../../gccgo3/libgo/go/math/cbrt.go ../../../gccgo3/libgo/go/math/const.go ../../../gccgo3/libgo/go/math/copysign.go ../../../gccgo3/libgo/go/math/dim.go ../../../gccgo3/libgo/go/math/erf.go ../../../gccgo3/libgo/go/math/exp.go ../../../gccgo3/libgo/go/math/expm1.go ../../../gccgo3/libgo/go/math/floor.go ../../../gccgo3/libgo/go/math/frexp.go ../../../gccgo3/libgo/go/math/gamma.go ../../../gccgo3/libgo/go/math/hypot.go ../../../gccgo3/libgo/go/math/j0.go ../../../gccgo3/libgo/go/math/j1.go ../../../gccgo3/libgo/go/math/jn.go ../../../gccgo3/libgo/go/math/ldexp.go ../../../gccgo3/libgo/go/math/lgamma.go ../../../gccgo3/libgo/go/math/log.go ../../../gccgo3/libgo/go/math/log10.go ../../../gccgo3/libgo/go/math/log1p.go ../../../gccgo3/libgo/go/math/logb.go ../../../gccgo3/libgo/go/math/mod.go ../../../gccgo3/libgo/go/math/modf.go ../../../gccgo3/libgo/go/math/nextafter.go ../../../gccgo3/libgo/go/math/pow.go ../../../gccgo3/libgo/go/math/pow10.go ../../../gccgo3/libgo/go/math/remainder.go ../../../gccgo3/libgo/go/math/signbit.go ../../../gccgo3/libgo/go/math/sin.go ../../../gccgo3/libgo/go/math/sincos.go ../../../gccgo3/libgo/go/math/sinh.go ../../../gccgo3/libgo/go/math/sqrt.go ../../../gccgo3/libgo/go/math/tan.go ../../../gccgo3/libgo/go/math/tanh.go ../../../gccgo3/libgo/go/math/unsafe.go which has no internal/cpu.gox.