[LLVMbugs] [Bug 848] NEW: PROJ_SRC_DIR != PROJ_OBJ_DIR in srcdir=objdir build due to symlinks

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jul 26 13:27:36 PDT 2006


http://llvm.org/bugs/show_bug.cgi?id=848

           Summary: PROJ_SRC_DIR != PROJ_OBJ_DIR in srcdir=objdir build due
                    to symlinks
           Product: Build scripts
           Version: 1.7
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


I have the following source layout:

~/cvs/llvm is my llvm tree
~/llvm is a symlink to ~/cvs/llvm

Because PROJ_OBJ_DIR and PROJ_OBJ_ROOT are defined as:

PROJ_OBJ_DIR  := $(shell pwd)
PROJ_OBJ_ROOT := $(subst //,/,$(shell cd $(PROJ_OBJ_DIR)/$(LEVEL); pwd))

They fully resolve the symlink to ~/cvs/llvm, but PROJ_SRC_ROOT is the un-fully-resolved path ~/llvm.  
This breaks stuff that checks to see if SRCDIR==OBJDIR, such as 'make dist' and other stuff:

# If the Makefile in the source tree has been updated, copy it over into the
# build tree.

# We MUST build distribution with OBJ_DIR != SRC_DIR

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list