[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #9869 [Tor]: configure runs tests with wrong tools for --host if suitable tools are not in $PATH (was: build process with --host=arm-unknown-linux-gnueabihf tries to compile curve25519-donna-c64.c)
#9869: configure runs tests with wrong tools for --host if suitable tools are not
in $PATH
-------------------------+-------------------------------------------------
Reporter: sqrt2 | Owner:
Type: defect | Status: closed
Priority: normal | Milestone: Tor: 0.2.5.x-final
Component: Tor | Version: Tor: unspecified
Resolution: | Keywords: armv6 curve25519 build tor-relay
worksforme | 024-backport
Actual Points: | Parent ID:
Points: |
-------------------------+-------------------------------------------------
Changes (by sqrt2):
* status: new => closed
* resolution: => worksforme
Comment:
I've taken a closer look at my config.log now and it appears that I didn't
have the correct (cross) compiler in $PATH at the time of running
configure, and my native compiler was used instead. This defeats the
purpose of --host.
It appears AC_PROG_CC does not care about not finding arm-unknown-linux-
gnueabihf-gcc as long as it finds ''a'' gcc, nor do the other AC_PROG_*
macros.
Similarly, configure.ac defines a macro AC_PROG_AR with the comment
> dnl check for the correct "ar" when cross-compiling
but this is not actually the case. It will accept ''any'' ar in $PATH
because AC_CHECK_TOOL apparently behaves this way.
This is all very strange.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9869#comment:4>
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