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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to