Skip to content

Instantly share code, notes, and snippets.

@dckc
Created November 27, 2012 03:37
Show Gist options
  • Save dckc/4152211 to your computer and use it in GitHub Desktop.
Save dckc/4152211 to your computer and use it in GitHub Desktop.
rust build error: unexpected token
connolly@pav:~/src/rust$ git pull origin
remote: Counting objects: 5323, done.
remote: Compressing objects: 100% (1656/1656), done.
remote: Total 4469 (delta 3494), reused 3682 (delta 2804)
Receiving objects: 100% (4469/4469), 1.26 MiB | 783 KiB/s, done.
Resolving deltas: 100% (3494/3494), completed with 396 local objects.
From https://github.com/mozilla/rust
4dc67c5..de0268b incoming -> origin/incoming
07edf90..68c73dc master -> origin/master
cd6f24f..be6613e snap-stage3 -> origin/snap-stage3
+ d324a42...aee0b76 try -> origin/try (forced update)
+ d0c6ce3...a28cdc8 try2 -> origin/try2 (forced update)
Fetching submodule src/llvm
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 5 (delta 4), reused 5 (delta 4)
Unpacking objects: 100% (5/5), done.
From git://github.com/brson/llvm
dc4cdbf..accc36b master -> origin/master
You asked to pull from the remote 'origin', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.
connolly@pav:~/src/rust$ git pull origin/master
fatal: 'origin/master' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
connolly@pav:~/src/rust$ ^C
connolly@pav:~/src/rust$ make
cfg: shell host triple x86_64-unknown-linux-gnu
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore.so
/home/connolly/src/rust/src/libcore/path.rs:66:8: 66:9 error: unexpected token: `+`
/home/connolly/src/rust/src/libcore/path.rs:66 + str::connect(self.components, "/")
^
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore.so] Error 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment