View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014064CMakeCMakepublic2013-04-08 09:422014-06-02 08:37
ReporterDave Abrahams 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionsuspended 
PlatformmacOSOS XOS Version10.8
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0014064: Xcode generator creating incorrect relative paths
DescriptionThis came up in an Xcode project generated by CMake.
Basic problem looks like this:


eno:quack dave$ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -L/tmp/tst/build/quack/lib/Debug/quack -filelist /tmp/tst/build/quack/runtime/Quack.build/Debug/quack_runtime.build/Objects-normal/x86_64/quack_runtime.LinkFileList /tmp/tst/src/quack/../../build/quack/loon/Hoot.o -o /tmp/tst/build/quack/lib/Debug/quack/libquack_runtime.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /tmp/tst/src/quack/../../build/quack/loon/Hoot.o (No such file or directory)
eno:quack dave$ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -L/tmp/tst/build/quack/lib/Debug/quack -filelist /tmp/tst/build/quack/runtime/Quack.build/Debug/quack_runtime.build/Objects-normal/x86_64/quack_runtime.LinkFileList /tmp/tst/build/quack/loon/Hoot.o -o /tmp/tst/build/quack/lib/Debug/quack/libquack_runtime.a
eno:quack dave$


The problem here is that /tmp/tst/src/quack/ is a symlink to /tmp/quack. Therefore, the path traversal of /tmp/tst/src/quack/../../build leads to /build, which doesn't exist.

CMake generated this relative path as far as I can tell; “../..” doesn’t appear anywhere in my CMakeLists or my cmake command The Ninja generator works fine.
Steps To ReproduceSorry I don’t have a small reproducer for you.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032775)
Brad King (manager)
2013-04-08 09:59

Please attach the generated *.xcodeproj/project.pbxproj file.
(0032778)
Dave Abrahams (reporter)
2013-04-08 11:04

Sorry, I can’t. It contains information that my employer wouldn’t want me to distribute. I could try to answer some questions about it, perhaps.
(0032779)
Brad King (manager)
2013-04-08 11:18

Re 0014064:0032778: Okay, does project.pbxproj have any "../.." in it?
(0034579)
Dave Abrahams (reporter)
2013-11-26 22:38

Sorry, it's been to long; that project is long gone. How did I only get a notice about the posting from April 8th yesterday?! Email works in strange ways.
(0034590)
Brad King (manager)
2013-11-27 11:02

Okay. I'm resolving as "suspended" for now.

I don't know why you didn't get notification about 0014064:0032779 but you got the recent notification because the status was changed to request feedback.
(0036041)
Robert Maynard (manager)
2014-06-02 08:37

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-04-08 09:42 Dave Abrahams New Issue
2013-04-08 09:59 Brad King Note Added: 0032775
2013-04-08 11:04 Dave Abrahams Note Added: 0032778
2013-04-08 11:18 Brad King Note Added: 0032779
2013-11-26 06:01 Peter Kuemmel Status new => feedback
2013-11-26 22:38 Dave Abrahams Note Added: 0034579
2013-11-26 22:38 Dave Abrahams Status feedback => new
2013-11-27 11:02 Brad King Note Added: 0034590
2013-11-27 11:02 Brad King Status new => resolved
2013-11-27 11:02 Brad King Resolution open => suspended
2014-06-02 08:37 Robert Maynard Note Added: 0036041
2014-06-02 08:37 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team