Configure error with "--enable-lto" on mingw
Ian Lance Taylor
iant@google.com
Thu Dec 9 19:17:00 GMT 2010
"Naveen H. S" <Naveen.S@kpitcummins.com> writes:
> We are building the linux and windows toolchain configured with
> "--enable-lto" option.
> There were no problems while building linux toolchain.
>
> However, we are facing the following error while building
> windows toolchain on mingw environment.
>
> ===================== Error Encountered============================
> checking libelf.h usability... no
> checking libelf.h presence... no
> checking for libelf.h... no
> checking gelf.h usability... no
> checking gelf.h presence... no
> checking for gelf.h... no
> checking libelf/libelf.h usability... no
> checking libelf/libelf.h presence... no
> checking for libelf/libelf.h... no
> checking libelf/gelf.h usability... no
> checking libelf/gelf.h presence... no
> checking for libelf/gelf.h... no
> configure: error: LTO support requires libelf.h or libelf/libelf.h.
> ===================== Error Encountered============================
>
> We could not get any useful information to solve the above problem.
> Can anyone please help us to solve the issue?
I assume you are using gcc 4.5. This has been fixed in gcc mainline and
the fix will be in the upcoming gcc 4.6 release. I don't think LTO
works on Windows in gcc 4.5.
Ian
More information about the Gcc-help
mailing list