On Mon, 2 Nov 2020 at 15:34, Eric Pellegrini via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > Hi all, > > I try to build gcc (9.3.0) from source on ubuntu focal using the following > configure call: > > ./configure --enable-shared --enable-multilib --prefix=/opt/gcc Don't do that, see https://gcc.gnu.org/wiki/InstallingGCC > The configure runs OK but when building/linking I get the following error: > > libtool: link: gcc -shared -fPIC -DPIC .libs/lto-plugin.o -l There's an argument missing here, it should be -l SOMETHING > -static-libgcc -static-libstdc++ -static-libgcc and that means the -static-libgcc gets treated as the argument to -l My guess is you have something defined in your environment, like LDFLAGS=-l or something like that. Check the output of 'env' and unset anything you don't need.