Skip to content

./configure fails when spaces are in the directory tree. #4242

Closed
@pnathan

Description

@pnathan

Hi,

I found this error from my local Jenkins instance. I was trivially able to reproduce it on the command-line with my local clone by executing mv "rust" "rust directory" and running ./configure.

You'll observe occasional "could not find" type bugs in the dump.

Jenkins dump:

19:13:11 Started by user anonymous
19:13:11 Building in workspace /Users/pnathan/.jenkins/jobs/Rust build/workspace
19:13:11 Checkout:workspace / /Users/pnathan/.jenkins/jobs/Rust build/workspace - hudson.remoting.LocalChannel@6f45ee7f
19:13:11 Using strategy: Default
19:13:11 Last Built Revision: Revision 76a2891febd8b54fb8bea07cdb60184d24c324d9 (origin/master)
19:13:11 Fetching changes from 1 remote Git repository
19:13:11 Fetching upstream changes from git://github.com/mozilla/rust.git
19:13:13 Commencing build of Revision 76a2891febd8b54fb8bea07cdb60184d24c324d9 (origin/master)
19:13:13 Checking out Revision 76a2891febd8b54fb8bea07cdb60184d24c324d9 (origin/master)
19:13:15 [workspace] $ /bin/sh -xe /var/folders/IL/IL8pH45qEfSfxG92fl4+eU+++TQ/-Tmp-/hudson8235423927195602819.sh
19:13:15 + ./configure
19:13:15 configure: looking for configure programs
19:13:15 configure: found cmp
19:13:15 configure: found mkdir
19:13:15 configure: found printf
19:13:15 configure: found cut
19:13:15 configure: found head
19:13:15 configure: found grep
19:13:15 configure: found xargs
19:13:15 configure: found cp
19:13:15 configure: found find
19:13:15 configure: found uname
19:13:15 configure: found date
19:13:15 configure: found tr
19:13:15 configure: found sed
19:13:15 configure: inspecting environment
19:13:15 configure: recreating config.tmp
19:13:15 configure: 
19:13:15 configure: processing /Users/pnathan/.jenkins/jobs/Rust build/workspace/configure args
19:13:15 configure: 
19:13:15 configure: CFG_PREFIX           := /usr/local 
19:13:15 configure: CFG_LOCAL_RUST_ROOT  := /usr/local 
19:13:15 configure: CFG_LLVM_ROOT        :=  
19:13:15 configure: CFG_HOST_TRIPLE      := x86_64-apple-darwin 
19:13:15 configure: CFG_TARGET_TRIPLES   := x86_64-apple-darwin 
19:13:15 configure: 
19:13:15 configure: validating /Users/pnathan/.jenkins/jobs/Rust build/workspace/configure args
19:13:15 configure: 
19:13:15 configure: 
19:13:15 configure: looking for build programs
19:13:15 configure: 
19:13:15 configure: CFG_PERL             := /usr/local/bin//perl 
19:13:15 configure: CFG_CURL             := /usr/bin/curl (curl 7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3)
19:13:15 configure: CFG_PYTHON           := /usr/local/bin//python2.6 
19:13:15 ./configure: line 376: [: /Users/pnathan/.jenkins/jobs/Rust: binary operator expected
19:13:15 configure: CFG_GIT              := /usr/local/git/bin/git (git version 1.7.10.1)
19:13:15 configure: CFG_CLANG            :=  
19:13:15 configure: CFG_GCC              := /usr/bin/gcc (i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3))
19:13:15 configure: CFG_LD               := /usr/bin/ld 
19:13:15 configure: CFG_LLVM_CONFIG      :=  
19:13:15 configure: CFG_VALGRIND         :=  
19:13:15 configure: CFG_PERF             :=  
19:13:15 configure: CFG_ISCC             :=  
19:13:15 configure: CFG_LLNEXTGEN        :=  
19:13:15 configure: CFG_PANDOC           :=  
19:13:15 configure: CFG_PDFLATEX         := /sw/bin/pdflatex (pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4))
19:13:15 configure: CFG_XETEX            :=  
19:13:15 configure: CFG_LUATEX           :=  
19:13:15 configure: CFG_NODE             :=  
19:13:15 configure: 
19:13:15 configure: making directories
19:13:15 configure: 
19:13:15 configure: 
19:13:15 configure: configuring submodules
19:13:15 configure: 
19:13:15 ./configure: line 637: cd: /Users/pnathan/.jenkins/jobs/Rust: No such file or directory
19:13:15 configure: git: submodule sync
19:13:16 configure: git: submodule update
19:13:16 configure: git: submodule foreach sync
19:13:16 Synchronizing submodule url for 'projects/compiler-rt'
19:13:16 Synchronizing submodule url for 'tools/clang'
19:13:17 configure: git: submodule foreach update
19:13:18 configure: git: submodule status
19:13:18  1170ffba3ac5191930b40c897d4569a9d8a296a3 src/libuv (remotes/origin/ipc-listen-228-g1170ffb)
19:13:18  accc36b3e3f22319b16609460f4cdf964f33f6cb src/llvm (heads/master)
19:13:18  414db777757e25fcb14f6ddea2bc00a949372ff0 src/llvm/projects/compiler-rt (heads/master)
19:13:18  169ad141fff082283dd7a6c26a1b4b5024d9b8da src/llvm/tools/clang (heads/master)
19:13:18 configure: git: submodule clobber
19:13:20 ./configure: line 665: cd: /Users/pnathan/.jenkins/jobs/Rust: No such file or directory
19:13:20 configure: 
19:13:20 configure: looking at LLVM
19:13:20 configure: 
19:13:20 ./configure: line 706: test: too many arguments
19:13:20 ./configure: line 706: test: too many arguments
19:13:20 ./configure: line 706: test: too many arguments
19:13:20 ./configure: line 706: test: too many arguments
19:13:20 configure: configuring LLVM for x86_64-apple-darwin
19:13:20 configure: configuring LLVM with:
19:13:20 configure: --enable-targets=x86,x86_64 --enable-optimized --disable-docs                    --enable-bindings=none --disable-threads                    --disable-pthreads --build=x86_64-apple-darwin                         --host=x86_64-apple-darwin --target=x86_64-apple-darwin
19:13:20 ./configure: line 786: cd: /Users/pnathan/.jenkins/jobs/Rust: No such file or directory
19:13:20 ./configure: line 789: /Users/pnathan/.jenkins/jobs/Rust: No such file or directory
19:13:20 configure: error: LLVM
19:13:20 Build step 'Execute shell' marked build as failure
19:13:20 Finished: FAILURE


Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.O-macosOperating system: macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions