Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-27 Thread Amandeep Gautam
Hi Ian, Thank you so much for the help. Both of those options did not work. Somehow, the program was able to get buggy libmpfr. I think it might be because I am using /usr/ccs/bin/ld and that ld is giving preference to libraries in /usr/lib. In my case, /usr/lib/libmpc.so.3 pointed to

Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-25 Thread Ian Lance Taylor
On Fri, Aug 24, 2018 at 11:48 PM, Amandeep Gautam wrote: > Hi Ian, >I compiled GMP, MPFR and MPC from source. Next, I configured gcc with > modified options: > > $srcdir/configure \ > --prefix=$prefix \ > --enable-languages=go \ > --with-as=/opt/csw/gnu/as --with-gnu-as \ >

Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-25 Thread Amandeep Gautam
Hi Ian, I compiled GMP, MPFR and MPC from source. Next, I configured gcc with modified options: $srcdir/configure \ --prefix=$prefix \ --enable-languages=go \ --with-as=/opt/csw/gnu/as --with-gnu-as \ --with-ld=/usr/ccs/bin/ld --without-gnu-ld \

Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-23 Thread Amandeep Gautam
Running inside the gdb worked. Seems like a problem with libmpfr. Will try compiling it from source. Following is the end of the GDB output: /export/home/amandeep/gccgo-src/libgo/go/fmt/scan.go:658:43: error: expected integer, floating, complex, or string type s.errorString("integer overflow

Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-23 Thread Ian Lance Taylor
On Thu, Aug 23, 2018 at 2:14 PM, Amandeep Gautam wrote: > > /export/home/amandeep/gccgo-obj/./gcc/go1 > /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 >

Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-23 Thread Amandeep Gautam
Thanks. I did do that befor but thought you meant different. I ran the following: /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

Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-23 Thread Ian Lance Taylor
On Thu, Aug 23, 2018 at 1:24 AM, Amandeep Gautam wrote: > 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 >

Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-23 Thread Amandeep Gautam
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

Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-20 Thread Ian Lance Taylor
On Sun, Aug 19, 2018 at 9:39 PM, Amandeep Gautam 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 >

Re: [go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-19 Thread Ian Lance Taylor
On Sun, Aug 19, 2018 at 9:47 AM, Amandeep Gautam wrote: > I have been trying to install GCCGO on Solaris 10 with the following script: > > dir=/export/home/amandeep > srcdir=$dir/gccgo-src > objdir=$dir/gccgo-obj > prefix=/usr/gnu > > > # Create Directory > mkdir -p $objdir > sudo mkdir -p

[go-nuts] internal compilation error while compiling gccgo from source solaris 10

2018-08-19 Thread Amandeep Gautam
I have been trying to install GCCGO on Solaris 10 with the following script: dir=/export/home/amandeep srcdir=$dir/gccgo-src objdir=$dir/gccgo-obj prefix=/usr/gnu # Create Directory mkdir -p $objdir sudo mkdir -p $prefix # Exports export