Hi Ian, I ran the following after changing directory to /export/home/amandeep/gccgo-obj/sparc-sun-solaris2.10/libgo/:
files=`echo /export/home/amandeep/gccgo-src/libgo/go/fmt/doc.go /export/home/amandeep/gccgo-src/libgo/go/fmt/format.go /export/home/amandeep/gccgo-src/libgo/go/fmt/print.go /export/home/amandeep/gccgo-src/libgo/go/fmt/scan.go errors.gox io.gox math.gox os.gox reflect.gox strconv.gox sync.gox unicode/utf8.gox | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; /bin/bash ./libtool --tag GO --mode=compile --verbose /export/home/amandeep/gccgo-obj/./gcc/gccgo -B/export/home/amandeep/gccgo-obj/./gcc/ -B/usr/gnu/sparc-sun-solaris2.10/bin/ -B/usr/gnu/sparc-sun-solaris2.10/lib/ -isystem /usr/gnu/sparc-sun-solaris2.10/include -isystem /usr/gnu/sparc-sun-solaris2.10/sys-include -O2 -g -I . -c -fgo-pkgpath=`echo fmt.lo | sed -e 's/.lo$//' -e 's|golang_org|vendor/golang_org|'` -o fmt.lo $files I still get the same compilation error: go1: internal compiler error: Segmentation Fault 0x6b9757 crash_signal /export/home/amandeep/gccgo-src/gcc/toplev.c:325 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. and did not get any more output using the verbose option. What should have been done differently? On Monday, August 20, 2018 at 6:41:54 PM UTC-7, Ian Lance Taylor wrote: > > On Sun, Aug 19, 2018 at 9:39 PM, Amandeep Gautam > <amandee...@gmail.com <javascript:>> wrote: > > > gmake[3]: Entering directory > > '/export/home/amandeep/gccgo-obj/sparc-sun-solaris2.10/libgo' > > gmake[4]: Entering directory > > '/export/home/amandeep/gccgo-obj/sparc-sun-solaris2.10/libgo' > > /opt/csw/bin/gmkdir -p .; files=`echo > > /export/home/amandeep/gccgo-src/libgo/go/fmt/doc.go > > /export/home/amandeep/gccgo-src/libgo/go/fmt/format.go > > /export/home/amandeep/gccgo-src/libgo/go/fmt/print.go > > /export/home/amandeep/gccgo-src/libgo/go/fmt/scan.go errors.gox io.gox > > math.gox os.gox reflect.gox strconv.gox sync.gox unicode/utf8.gox | sed > -e > > 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; /bin/bash ./libtool --tag GO > > --mode=compile /export/home/amandeep/gccgo-obj/./gcc/gccgo > > -B/export/home/amandeep/gccgo-obj/./gcc/ > > -B/usr/gnu/sparc-sun-solaris2.10/bin/ > -B/usr/gnu/sparc-sun-solaris2.10/lib/ > > -isystem /usr/gnu/sparc-sun-solaris2.10/include -isystem > > /usr/gnu/sparc-sun-solaris2.10/sys-include -O2 -g -I . -c > > -fgo-pkgpath=`echo fmt.lo | sed -e 's/.lo$//' -e > > 's|golang_org|vendor/golang_org|'` -o fmt.lo $files > > libtool: compile: /export/home/amandeep/gccgo-obj/./gcc/gccgo > > -B/export/home/amandeep/gccgo-obj/./gcc/ > > -B/usr/gnu/sparc-sun-solaris2.10/bin/ > -B/usr/gnu/sparc-sun-solaris2.10/lib/ > > -isystem /usr/gnu/sparc-sun-solaris2.10/include -isystem > > /usr/gnu/sparc-sun-solaris2.10/sys-include -O2 -g -I . -c > -fgo-pkgpath=fmt > > /export/home/amandeep/gccgo-src/libgo/go/fmt/doc.go > > /export/home/amandeep/gccgo-src/libgo/go/fmt/format.go > > /export/home/amandeep/gccgo-src/libgo/go/fmt/print.go > > /export/home/amandeep/gccgo-src/libgo/go/fmt/scan.go -fPIC -o > .libs/fmt.o > > go1: internal compiler error: Segmentation Fault > > 0x6b9757 crash_signal > > /export/home/amandeep/gccgo-src/gcc/toplev.c:325 > > Please submit a full bug report, > > with preprocessed source if appropriate. > > Please include the complete backtrace with any bug report. > > See <https://gcc.gnu.org/bugs/> for instructions. > > gmake[4]: *** [Makefile:3324: fmt.lo] Error 1 > > > Thanks. Unfortunately, I don't know what could be causing this. > Everything looks fine, except that the compiler is crashing. I'm not > seeing this on Solaris 11. I think you will have to debug the > compiler. To see more about what is happening, run the "compile:" > command by itself. It should crash in the same way. Then run it with > the -v option to see how the go1 program is being run. Running the > go1 program with those arguments should crash. That is what you need > to debug; presumably there is a NULL pointer dereference or something. > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.