[tor-bugs] #22818 [Core Tor/Tor]: Improve documentation for building Tor with Rust

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jul 5 21:57:12 UTC 2017


#22818: Improve documentation for building Tor with Rust
--------------------------+----------------------------------
 Reporter:  chelseakomlo  |          Owner:
     Type:  enhancement   |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: unspecified
Component:  Core Tor/Tor  |        Version:  Tor: unspecified
 Severity:  Normal        |     Resolution:
 Keywords:  rust          |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+----------------------------------

Comment (by chelseakomlo):

 Replying to [comment:1 isis]:
 > I added documentation on which dependencies are needed and how to get
 them here:
 https://trac.torproject.org/projects/tor/wiki/RustInTor#Usingalocaldependencycache

 Awesome. Do you think it is time to add this and other info on
 building/testing with Rust to docs/HACKING?


 > But now I have a problem in that the build doesn't complete and the
 relevant part of the output is:
 >
 > {{{
 >   AR       src/trace/libor-trace.a
 >   CC       src/or/tor_main.o
 > /usr/bin/gcc-4.9.real -fstack-protector-strong -fPIE -Wformat -Wformat-
 security -Werror=format-security -std=gnu99 -DHAVE_CONFIG_H -I.
 -I./src/ext -Isrc/ext -I./src/ext/trunnel -I./src/trunnel -I./src/common
 -Isrc/common -I./src/ext/trunnel -I./src/trunnel -I./src/or -Isrc/or
 -DSHARE_DATADIR="/usr/local/share" -DLOCALSTATEDIR="/usr/local/var"
 -DBINDIR="/usr/local/bin" -I./src -I./src/common -g -O2 -U_FORTIFY_SOURCE
 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-
 buffer-size=1 -fPIE -fasynchronous-unwind-tables -Wall -fno-strict-
 aliasing -Waddress -Warray-bounds -Wdate-time -Wdouble-promotion -Wextra
 -Wfloat-conversion -Winit-self -Wlogical-op -Wmissing-field-initializers
 -Wmissing-format-attribute -Wmissing-noreturn -Wnormalized=id
 -Woverlength-strings -Woverride-init -Wshadow -Wstrict-overflow=1
 -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wsync-nand
 -Wtrampolines -Wunused-but-set-parameter -Wunused-but-set-variable
 -Wunused-local-typedefs -Wvariadic-macros -W -Wfloat-equal -Wundef
 -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings
 -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings
 -Wnested-externs -Wbad-function-cast -Wswitch-enum -Waggregate-return
 -Wpacked -Wunused -Wunused-parameter -Wold-style-definition -Wmissing-
 declarations -MT src/or/tor_main.o -MD -MP -MF src/or/.deps/tor_main.Tpo
 -c -o src/or/tor_main.o src/or/tor_main.c
 > ( cd "/home/user/code/torproject/tor/src/rust/tor_util" ; \
 >       CARGO_TARGET_DIR="/home/user/code/torproject/tor/src/rust/target"
 \
 >       HOME="/home/user/code/torproject/tor/src/rust" \
 >       cargo build --release --quiet --frozen )
 > error: no default toolchain configured
 > Makefile:10756: recipe for target
 'src/rust/target/release/libtor_util.a' failed
 > make[1]: *** [src/rust/target/release/libtor_util.a] Error 1
 > make[1]: Leaving directory '/home/user/code/torproject/tor'
 > Makefile:3093: recipe for target 'all' failed
 > make: *** [all] Error 2
 > ∃!user(A)rustup:(master=)~/code/torproject/tor ∴
 > }}}
 >
 > I don't know what "no default toolchain configured" is referring to, but
 building other (pure-)Rust projects in that Qube works fine, and it's
 using just the normal nightly rustc and cargo which rustup gives you.

 I also have seen this issue. We should probably open a separate bug for
 it?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22818#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list