Bug 13603 - LLVM fails when project has spaces in its path
Summary: LLVM fails when project has spaces in its path
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 6.3.x
Hardware: PC Mac OS
: --- normal
Target Milestone: 6.4.2
Assignee: Zoltan Varga
: 13859 ()
Depends on: 13779
  Show dependency tree
Reported: 2013-07-30 07:26 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2013-08-08 12:38 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Rolf Bjarne Kvinge [MSFT] 2013-07-30 07:26:55 UTC
To reproduce:
* Create a new project, make sure there's a space in the path to the project.
* Switch to a device configuration and enable LLVM.
* Build

MONO_PATH=/Users/rolf/Projects/sp ace/testz/testz/obj/iPhone/Release/mtouch-cache/Build /Developer/MonoTouch/usr/bin/arm-darwin-mono-boehm --debug --llvm -O=gsharedvt  --aot=mtriple=armv7-ios,full,static,asmonly,direct-icalls,nodebug,dwarfdebug,llvm-path=/Developer/MonoTouch/LLVM/bin/,outfile="/Users/rolf/Projects/sp ace/testz/testz/obj/iPhone/Release/mtouch-cache/testz.exe.armv7.s" "/Users/rolf/Projects/sp ace/testz/testz/obj/iPhone/Release/mtouch-cache/Build/testz.exe"
opt: Too many positional arguments specified!
Can specify at most 1 positional arguments: See: /Developer/MonoTouch/LLVM/bin/opt -help
Mono Ahead of Time compiler - compiling assembly /Users/rolf/Projects/sp ace/testz/testz/obj/iPhone/Release/mtouch-cache/Build/testz.exe
Executing opt: /Developer/MonoTouch/LLVM/bin/opt -f -simplifycfg -domtree -domfrontier -scalarrepl -instcombine -simplifycfg -domtree -domfrontier -scalarrepl -simplify-libcalls -instcombine -simplifycfg -instcombine -simplifycfg -reassociate -domtree -loops -loop-simplify -domfrontier -loop-simplify -lcssa -loop-rotate -licm -lcssa -loop-unswitch -instcombine -scalar-evolution -loop-simplify -lcssa -iv-users -indvars -loop-deletion -loop-simplify -lcssa -loop-unroll -instcombine -memdep -gvn -memdep -memcpyopt -sccp -instcombine -domtree -memdep -dse -adce -simplifycfg -preverify -domtree -verify -o /Users/rolf/Projects/sp ace/testz/testz/obj/iPhone/Release/mtouch-cache/testz.exe.armv7.s.opt.bc /Users/rolf/Projects/sp ace/testz/testz/obj/iPhone/Release/mtouch-cache/testz.exe.armv7.s.bc
Comment 1 Zoltan Varga 2013-07-30 18:27:59 UTC
Fixed in mono 2a4e1e127b31965a29cc68040ded1278f25b6335.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2013-07-31 06:30:36 UTC
Backported to 6.4.

mono/mono-3-2: 4a1716693fc64d42fbb3812ca8ae7476ece5ae54
monotouch/monotouch-6.4-series: 65674dc4215f071cdfd85be81b7f9a15cdb741c9

The fix will be in 6.4.2.
Comment 3 GouriKumari 2013-08-06 12:04:36 UTC
Verification of this bug is blocked by bug 13779
Comment 4 GouriKumari 2013-08-06 13:00:54 UTC
Retested. Applications, with spaces in project path and llvm enabled, builds successfully using latest

Mono-3-2  4a1716693fc64d42fbb3812ca8ae7476ece5ae54 must be included in the beta channel.

Supplemental Info: https://gist.github.com/GouriKumari/ca3fad120862ae8720fe

Test Env:
Xamarin Studio
Version 4.0.10 (build 7)
Installation UUID: fafd3486-1aec-4f9c-ab77-08bf4a000708
    Mono 3.2.2 ((no/4a17166)
    GTK 2.24.20
    GTK# (
    Package version: 302020000

Apple Developer Tools
Xcode 4.6.3 (2068)
Build 4H1503

Xamarin.Mac: 1.4.8

Version: (Trial Edition)
Hash: ed003d4
Build date: 2013-05-08 15:07:27-0400
Comment 5 Rolf Bjarne Kvinge [MSFT] 2013-08-08 12:38:31 UTC
*** Bug 13859 has been marked as a duplicate of this bug. ***