[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #22818 [Core Tor/Tor]: Improve documentation for building Tor with Rust
#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 isis):
Replying to [comment:2 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?
Yeah, I think we should probably make the documentation easier to find
than a wiki page that we don't tell anyone where it is. :)
Perhaps if it's going into doc/HACKING/ we should just note that building
with non-cargo-obtained dependencies is not currently supported?
> > 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?
#22830
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22818#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs