[haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?
- From: "Thomas Mueller" <mueller6723@xxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Wed, 19 Apr 2017 09:27:15 +0000
I believe cross-tools-prefix is where to put the cross-tools to be built,
or where to find
cross-tools already built.
Is this wrong? I ought to be able to use the same build tools with
bootstrap and non-bootstrap but
with different BuildConfig.
Apparently configure rebuilds the tools every time even if already built.
--build-cross-tools tell configure to build the cross tools.
--cross-tools-prefix tells it to use already existing buildtools
It does not make sense to use both at the same time, I think: either you use
existing tools, or you rebuild them?
I was under the impression that build-cross-tools would not rebuild the tools
if up-to-date but now see this was the wrong impression.
If I want to build hybrid x86 and x86_gcc2 using already-built tools, would I
use cross-tools-prefix twice, like
--cross-tools-prefix /home/nbarlene/nb32generated/cross-tools-x86
--cross-tools-prefix /home/nbarlene/nb32generated/cross-tools-x86_gcc2 ?
In this case I would use two different output directories but would want
the same build tools.
Then you first run with --build-cross-tools in your buildtools directory.
Then, you use these tools in the two other directories by using
--cross-tools-prefix.
So I guess I could configure for bootstrap, and if that configure is
successful, use those same tools for non-bootstrap build?
I also tried non-bootstrap with clang, also tried a build with gcc-aux
where gcc version was 4.9.0
(too old? This build fell short of success.)
This should work, as long as it can compile our compilers (gcc 2.95.3 and
5.something), and a little set of tools used on the host machine.
Now I see installations of NetBSD with gcc-aux, gcc version 4.9.2, and FreeBSD
with gcc-aux, gcc version 4.9.3 .
When I rebuild/update systems, I would hope to get gcc5-aux (gcc 5.4) and
gcc6-aux, the latter being for synth in FreeBSD and NetBSD.
One big concern now is even if build is successful from directory off the
Haiku tree, would
configure create, and would jam find, the Jamfile and build/BuildConfig.
Yes, this should work fine. The configure script can locate himself and uses
that as a base to know where the Haiku sources are.
Adrien.
I still wonder how/why jam looked for Jamfile and build/BuildConfig in the
wrong places.
Tom
Other related posts:
- » [haiku-development] Cross-building Haiku, does output (generated) directory need to be under source tree path?- Thomas Mueller
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- François Revol
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- François Revol
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Thomas Mueller
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Adrien Destugues
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Thomas Mueller
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Adrien Destugues
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path? - Thomas Mueller
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Ingo Weinhold
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Thomas Mueller
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Jessica Hamilton
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Thomas Mueller
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Adrien Destugues
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Ingo Weinhold
- » [haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?- Thomas Mueller