From mboxrd@z Thu Jan 1 00:00:00 1970 From: mattheww@chiark.greenend.org.uk To: gcc-gnats@gcc.gnu.org Subject: ada/4719: Error building Ada tools with srcdir and objdir on different filesystems Date: Sun, 28 Oct 2001 08:36:00 -0000 Message-id: <20011028163302.32248.qmail@sourceware.cygnus.com> X-SW-Source: 2001-10/msg00609.html List-Id: >Number: 4719 >Category: ada >Synopsis: Error building Ada tools with srcdir and objdir on different filesystems >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Oct 28 08:36:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Matthew Woodcraft >Release: 3.1 20011027 (experimental) >Organization: >Environment: i686-pc-linux-gnu configured with --prefix=/home/mjw/src/gcc/install --enable-languages=c,ada using Debian's Gnat 3.13p-8 as the host Ada compiler >Description: After bootstrapping, I got the following error during 'make gnatlib_and_tools': ln /home/mjw/src/gcc/gcc-cvs/gcc/ada/5lml-tgt.adb tools/mlib-tgt.adb ln: creating hard link `tools/mlib-tgt.adb' to `/home/mjw/src/gcc/gcc-cvs/gcc/ada/5lml-tgt.adb': Invalid cross-device link After this, the build failed to continue. I have srcdir and objdir on different filesystems. Replacing '$(LN)' with 'cp' in the following fragment of gcc/ada/Makefile was sufficient to let the build complete: stamp-tool_src_dir: -$(RMDIR) tools -$(MKDIR) tools -$(LN) $(fsrcdir)/$(MLIB_TGT).adb tools/mlib-tgt.adb touch stamp-tool_src_dir >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: