[cmake-developers] [CMake 0015488]: Strange things happen to paths below "/Volumes/Macintosh HD"
Mantis Bug Tracker
mantis at public.kitware.com
Wed Apr 1 12:33:39 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15488
======================================================================
Reported By: Gregor Jasny
Assigned To:
======================================================================
Project: CMake
Issue ID: 15488
Category: CMake
Reproducibility: always
Severity: minor
Priority: low
Status: new
======================================================================
Date Submitted: 2015-04-01 12:33 EDT
Last Modified: 2015-04-01 12:33 EDT
======================================================================
Summary: Strange things happen to paths below
"/Volumes/Macintosh HD"
Description:
Paths get extra /Volumes/Macintosh HD prepended
Steps to Reproduce:
On a Mac where the HDD is labeled "Macintosh HD" try the following:
Create a Project:
project(Foo CXX)
add_library(foo STATIC foo.cpp)
Create a build dir ad change into it.
The pwd should look like this:
/Volumes/Macintosh HD/Users/jasny/src/pathbug/build
For Makefiles you get:
[100%] Building CXX object
CMakeFiles/foo.dir/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Users/jasny/src/pathbug/foo.cpp.o
Linking CXX static library "/Volumes/Macintosh HD/Volumes/Macintosh
HD/Volumes/Macintosh HD/Users/jasny/src/pathbug/build/libfoo.a"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /Volumes/Macintosh HD/Volumes/Macintosh HD/Volumes/Macintosh
HD/Users/jasny/src/pathbug/build/libfoo.a(foo.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /Volumes/Macintosh HD/Volumes/Macintosh HD/Volumes/Macintosh
HD/Users/jasny/src/pathbug/build/libfoo.a(foo.cpp.o) has no symbols
warning:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
warning for library: /Volumes/Macintosh HD/Volumes/Macintosh
HD/Volumes/Macintosh HD/Users/jasny/src/pathbug/build/libfoo.a the table of
contents is empty (no object file members in the library define global symbols)
[100%] Built target foo
For Ninja:
$ ninja -v
[1/2] "/Volumes/Macintosh HD/Volumes/Macintosh HD/usr/bin/c++" -MMD -MT
CMakeFiles/foo.dir/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Users/jasny/src/pathbug/foo.cpp.o
-MF
CMakeFiles/foo.dir/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Users/jasny/src/pathbug/foo.cpp.o.d
-o
CMakeFiles/foo.dir/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Users/jasny/src/pathbug/foo.cpp.o
-c '/Volumes/Macintosh HD/Volumes/Macintosh HD/Volumes/Macintosh
HD/Volumes/Macintosh HD/Volumes/Macintosh HD/Users/jasny/src/pathbug/foo.cpp'
[2/2] : && /usr/local/Cellar/cmake/3.2.1/bin/cmake -E remove "/Volumes/Macintosh
HD/Volumes/Macintosh HD/Volumes/Macintosh
HD/Users/jasny/src/pathbug/build/libfoo.a" && "/Volumes/Macintosh
HD/Volumes/Macintosh HD/Volumes/Macintosh HD/Volumes/Macintosh HD/usr/bin/ar" cq
"/Volumes/Macintosh HD/Volumes/Macintosh HD/Volumes/Macintosh
HD/Users/jasny/src/pathbug/build/libfoo.a"
CMakeFiles/foo.dir/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Volumes/Macintosh_HD/Users/jasny/src/pathbug/foo.cpp.o
&& "/Volumes/Macintosh HD/Volumes/Macintosh HD/Volumes/Macintosh
HD/Volumes/Macintosh HD/usr/bin/ranlib" "/Volumes/Macintosh HD/Volumes/Macintosh
HD/Volumes/Macintosh HD/Users/jasny/src/pathbug/build/libfoo.a" && :
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /Volumes/Macintosh HD/Volumes/Macintosh HD/Volumes/Macintosh
HD/Users/jasny/src/pathbug/build/libfoo.a(foo.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /Volumes/Macintosh HD/Volumes/Macintosh HD/Volumes/Macintosh
HD/Users/jasny/src/pathbug/build/libfoo.a(foo.cpp.o) has no symbols
warning:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
warning for library: /Volumes/Macintosh HD/Volumes/Macintosh
HD/Volumes/Macintosh HD/Users/jasny/src/pathbug/build/libfoo.a the table of
contents is empty (no object file members in the library define global symbols)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-04-01 12:33 Gregor Jasny New Issue
======================================================================
More information about the cmake-developers
mailing list