[Bug c/53529] assembler errors while building a cross compiler if . (dot) is in your PATH

karlson2k at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Feb 9 20:31:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53529

Evgeny Grin <karlson2k at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |karlson2k at gmail dot com

--- Comment #3 from Evgeny Grin <karlson2k at gmail dot com> 2013-02-09 20:30:33 UTC ---
Similar error is always on MinGW hosts. MinGW has '.' in front of PATH by
default.
So if try to build GCC with language that require C++ or to build GCC by C++,
you'll always get 

g++.exe: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found

when building inside sources/gcc/gcc subdirectory.

When building GCC using C, there no such problem as temporal GCC renamed to
xgcc.exe . But when building GCC using C++, temporal g++.exe is placed in gcc
subdirectory and erroneously called instead of host g++ if PATH variable is
prefixed by '.:'

That's the reason because all MinGW GCC builds are failed when building using
C++.
Tried with GCC 4.7.2



More information about the Gcc-bugs mailing list