https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82348

--- Comment #7 from martin <mfe at live dot de> ---
I tried to follow your instructions:

1.) remove math.o.dep
> /gcc-compiled/sparc-unknown-linux-gnu/libgo# rm math.lo.dep
2.) run `make math.lo.dep`
> gcc-compiled/sparc-unknown-linux-gnu/libgo# make math.lo.dep
> /bin/mkdir -p .; dir=`echo math.lo.dep | sed -e 's/.lo.dep$//'`; 
> files=`/bin/sh ../../../gcc-trunk/libgo/match.sh --goarch=sparc --goos=linux 
> --srcdir=../../../gcc-trunk/libgo/go/$dir --extrafiles="" `; /bin/sh 
> ../../../gcc-trunk/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
> make: 'math.lo.dep' is up to date.
The output of the generated math.lo.dep seems to be working in this particular
situation.
The math.lo.dep does not contain cpu.gox
> gcc-compiled/sparc-unknown-linux-gnu/libgo# cat math.lo.dep
> math.lo: ../../../gcc-trunk/libgo/go/math/abs.go 
> ../../../gcc-trunk/libgo/go/math/acosh.go 
> ../../../gcc-trunk/libgo/go/math/asin.go 
> ../../../gcc-trunk/libgo/go/math/asinh.go 
> ../../../gcc-trunk/libgo/go/math/atan.go 
> ../../../gcc-trunk/libgo/go/math/atan2.go 
> ../../../gcc-trunk/libgo/go/math/atanh.go 
> ../../../gcc-trunk/libgo/go/math/bits.go 
> ../../../gcc-trunk/libgo/go/math/cbrt.go 
> ../../../gcc-trunk/libgo/go/math/const.go 
> ../../../gcc-trunk/libgo/go/math/copysign.go 
> ../../../gcc-trunk/libgo/go/math/dim.go 
> ../../../gcc-trunk/libgo/go/math/erf.go 
> ../../../gcc-trunk/libgo/go/math/exp.go 
> ../../../gcc-trunk/libgo/go/math/expm1.go 
> ../../../gcc-trunk/libgo/go/math/floor.go 
> ../../../gcc-trunk/libgo/go/math/frexp.go 
> ../../../gcc-trunk/libgo/go/math/gamma.go 
> ../../../gcc-trunk/libgo/go/math/hypot.go 
> ../../../gcc-trunk/libgo/go/math/j0.go ../../../gcc-trunk/libgo/go/math/j1.go 
> ../../../gcc-trunk/libgo/go/math/jn.go 
> ../../../gcc-trunk/libgo/go/math/ldexp.go 
> ../../../gcc-trunk/libgo/go/math/lgamma.go 
> ../../../gcc-trunk/libgo/go/math/log.go 
> ../../../gcc-trunk/libgo/go/math/log10.go 
> ../../../gcc-trunk/libgo/go/math/log1p.go 
> ../../../gcc-trunk/libgo/go/math/logb.go 
> ../../../gcc-trunk/libgo/go/math/mod.go 
> ../../../gcc-trunk/libgo/go/math/modf.go 
> ../../../gcc-trunk/libgo/go/math/nextafter.go 
> ../../../gcc-trunk/libgo/go/math/pow.go 
> ../../../gcc-trunk/libgo/go/math/pow10.go 
> ../../../gcc-trunk/libgo/go/math/remainder.go 
> ../../../gcc-trunk/libgo/go/math/signbit.go 
> ../../../gcc-trunk/libgo/go/math/sin.go 
> ../../../gcc-trunk/libgo/go/math/sincos.go 
> ../../../gcc-trunk/libgo/go/math/sinh.go 
> ../../../gcc-trunk/libgo/go/math/sqrt.go 
> ../../../gcc-trunk/libgo/go/math/tan.go 
> ../../../gcc-trunk/libgo/go/math/tanh.go 
> ../../../gcc-trunk/libgo/go/math/unsafe.go

3.) Here, I'm unsure if the command was executed in the correct folder
(gcc-compiled contains the generated built files), because the output looks
weird to me.
> /gcc-compiled/sparc-unknown-linux-gnu/libgo# /bin/sh 
> ../../../gcc-trunk/libgo/match.sh --goarch=sparc --goos=linux 
> --srcdir=../../../gcc-trunk/libgo/go/$dir --extrafiles=""
> ../../../gcc-trunk/libgo/match.sh: line 1: *.go: No such file or directory
> ../../../gcc-trunk/libgo/go//*.go

4.) I executed this command in the gcc source folder
> ./gcc-trunk/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files
> sh: ./gcc-trunk/libgo/godeps.sh: Permission denied
> chmod 777 ./gcc-trunk/libgo/godeps.sh
> ./gcc-trunk/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files
> math.lo:

Reply via email to