I am building gccgo given the instruction here. However, I got error message after I did:
../gccgo/configure --prefix=/opt/gccgo --enable-languages=c,c++,go --with-ld=/opt/gold/bin/ld
make
Error:
/opt/gold/bin/ld: error: cannot find -lugin
/opt/gold/bin/ld: error: cannot find -lugin-opt=/home/objdir/./gcc/lto-wrapper
/opt/gold/bin/ld: error: cannot find -lugin-opt=-fresolution=/tmp/cc9M7ZGm.res
Here is what source code I used:
os: ubuntu 14.04/x86_64
binutils: http://ftp.gnu.org/gnu/binutils/binutils-2.29.tar.xz
gccgo code brach: https://github.com/gcc-mirror/gcc/tree/gccgo
Is there anything that I missed?
Update: It works for me after I remove the --with-ld==/opt/gold/bin/ld
option when running configure for gccgo make. Seems this is an issue related to gold.