[llvm-bugs] [Bug 25655] New: createUniqueFile's replacement of '%' breaks builds in paths that already have a '%'

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 26 20:03:29 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25655

            Bug ID: 25655
           Summary: createUniqueFile's replacement of '%' breaks builds in
                    paths that already have a '%'
           Product: new-bugs
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: cradnovich at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Overview:
Building fails in paths which include '%' characters, so far only verified on
Mac. One example is Carthage's calling of dsymutil:

A shell task failed with exit code 1:
Failed to create temporary outfile
'/Users/stephen.groom/Developer/project%20name/Carthage/Build/iOS/DateTools.framework.dSYM/DateTools.tmp%%%%%%.dwarf':
No such file or directory

Another instance is attempting to build a new Xcode project with the Derived
Data location set to project-relative instead of in ~/Library:

<unknown>:0: error: error opening
'/Users/craig/develop/p%2/Percentage/build/Percentage.build/Debug-iphoneos/Percentage.build/Objects-normal/armv7/Percentage-Swift.h'
for output: No such file or directory

<unknown>:0: error: merge-module command failed with exit code 1 (use -v to see
invocation)
Command
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
failed with exit code 1
** BUILD FAILED **


The following build commands failed:
    MergeSwiftModule normal armv7
/Users/craig/develop/p%2/Percentage/build/Percentage.build/Debug-iphoneos/Percentage.build/Objects-normal/armv7/Percentage.swiftmodule
    CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler
(2 failures)

Steps to Reproduce:

1) Make a new Xcode project under a folder with a '%' in its name.
2) Build.

Actual Results: 

Build fails.

Expected Results:

Build succeeds.

Additional Builds and Platforms:

- Built llvm-dsymutil 3.8 from trunk (also on OS X 10.11.1) and the error also
occurs when running this example command in a project using Carthage:
llvm-dsymutil "/Users/craig/develop/percent%test/Projects/Amaze
Chase/Carthage/Build/iOS/Alamofire.framework/Alamofire" -o
"/Users/craig/develop/percent%test/Projects/Amaze
Chase/Carthage/Build/iOS/Alamofire.framework.dSYM"

Additional Information: 

- After moving any of these projects to a folder without the '%', builds
succeed.
- Originally found on Carthage project
https://github.com/Carthage/Carthage/issues/929

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151127/635488ff/attachment.html>


More information about the llvm-bugs mailing list