Re: cannot find -l-static-libgcc when building gcc from source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I should have trusted the manual. The solution to my problem was just to
perform the build in a directory outside the source
directory as indicated. Sorry for the inconvenience and thx for your help.

On Mon, Nov 2, 2020 at 6:44 PM Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
wrote:

> 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.
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux