This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
ada/4719: Error building Ada tools with srcdir and objdir on different filesystems
- To: gcc-gnats at gcc dot gnu dot org
- Subject: ada/4719: Error building Ada tools with srcdir and objdir on different filesystems
- From: mattheww at chiark dot greenend dot org dot uk
- Date: 28 Oct 2001 16:33:02 -0000
- Reply-To: mattheww at chiark dot greenend dot org dot uk
>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: