[tor-bugs] #31188 [Core Tor/Tor]: make[1]: don't know how to make ./src/rust/target/release/libtor_rust.a

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jul 19 11:11:11 UTC 2019


#31188: make[1]: don't know how to make ./src/rust/target/release/libtor_rust.a
--------------------------+------------------------------
 Reporter:  ng0           |          Owner:  (none)
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:
Component:  Core Tor/Tor  |        Version:  Tor: 0.4.0.5
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------

Comment (by nickm):

 Replying to [ticket:31188 ng0]:
 > Hi,
 >
 > I'm trying to add the option to build tor with Rust to pkgsrc. On NetBSD
 9 (8.99.48) amd64, this fails at the moment:
 >
 >
 > ...
 >
 >   CC       src/trunnel/libor_trunnel_a-socks5.oCC       src/trunnel
 /libor_trunnel_a-netinfo.oCC       src/trunnel/libor_trunnel_a-
 circpad_negotiation.oAR       src/trunnel/libor-trunnel.aCC
 src/lib/trace/trace.oAR       src/lib/libtor-trace.a

 Oh, very odd.  I hadn't seen that before!  It sounds like for some reason
 the Makefile isn't getting a rule that tells it how to build
 libtor_rust.a.  If you're comfortable looking through automake output, I'd
 suggest maybe looking through the Makefile to see what it is actually
 doing?

 Also, maybe try running "make build-rust" manually to see whether that
 works, and builds a rust library?

 > rust and cargo are available in the build environment, and the crates
 are made available ahead of time and TOR_RUST_DEPENDENCIES points to the
 directory they are in.
 >
 > Questions: to verify if I hit an error on tor's side or Rust specifics
 wrt NetBSD, and not on my side, do you support verbose builds?

 Yes -- run "make V=1" instead of "make".

 > If you have seen this kind of error before in to on other platforms, was
 there a resolution (I have seen 3 vaguely similar tickets).
 >
 > Disclaimer: I'm a contributor to pkgsrc, but I'm not the pkgsrc
 maintainer for tor, so this is more of a personal exploration to see if I
 can propose it.
 >
 > Thanks.

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


More information about the tor-bugs mailing list