[Bug driver/48520] New: "make install" for cross-compile silently clobbers target-gcc
tim.vanholder at anubex dot com
gcc-bugzilla@gcc.gnu.org
Fri Apr 8 20:13:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48520
Summary: "make install" for cross-compile silently clobbers
target-gcc
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: tim.vanholder@anubex.com
GCC 4.6.0 (from the svn tag)
configured on i686-pc-linux-gnu with
--prefix=/opt/experimental --target=mingw32 target_alias=mingw32
--program-prefix=mingw32- --program-suffix=-4.6.0
--enable-targets=mingw32,x86_64-w64-mingw32 --enable-multilib
--disable-lto --disable-shared --enable-languages=c,c++
make all-gcc works fine (after adding w32api and mingwrt to the winsup
subdirectory of the source tree)
make install-gcc also apparently completes successfully
however, mingw32-gcc-4.6.0 is NOT present in /opt/experimental/bin
Looking more closely, make install-gcc does have messages on stderr:
ln: accessing `mingw32-gcc-4.6.0': No such file or directory
make: [install-driver] Error 1 (ignored)
but they're buried in the many lines of output produced and apparently make is
instructed not to care if the installation does not succeed...
Looking at the commands run for the C++ driver, things are fine:
rm -f /opt/experimental/bin/mingw32-g++-4.6.0
/usr/bin/install -c g++ /opt/experimental/bin/mingw32-g++-4.6.0
chmod a+x /opt/experimental/bin/mingw32-g++-4.6.0
rm -f /opt/experimental/bin/mingw32-c++-4.6.0
( cd /opt/experimental/bin && \
ln mingw32-g++-4.6.0 mingw32-c++-4.6.0 )
same goes for the preprocessor:
rm -f /opt/experimental/bin/mingw32-cpp-4.6.0
/usr/bin/install -c -m 755 cpp /opt/experimental/bin/mingw32-cpp-4.6.0
but for the C driver, it goes wrong:
rm -f /opt/experimental/bin/mingw32-gcc-4.6.0
/usr/bin/install -c xgcc /opt/experimental/bin/mingw32-gcc-4.6.0
rm -f /opt/experimental/bin/mingw32-gcc-4.6.0
( cd /opt/experimental/bin && \
ln mingw32-gcc-4.6.0 mingw32-gcc-4.6.0 )
so first it's installed fine, but then it gets removed and an attempt is made
to hardlink the removed file to itself
More information about the Gcc-bugs
mailing list