Page 1 of 1

crosstool-ng

Posted: Sat Jun 03, 2017 10:33 pm
by eryjus
Hi,

While I know it has not been explicitly discouraged, is there some reason crosstool-ng is not recommended for building a cross-compiler? The web site is: http://crosstool-ng.github.io/

Re: crosstool-ng

Posted: Tue Jun 06, 2017 5:31 am
by dchapiesky
my experience has been that I have specific work flow requirements for the order in which I build the cross compilers and libraries. When I tried to integrate crosstool-ng it just became a pain trying to get my requirements met... literally was easier to just use cmake.

others will probably disagree but there you have it.

Re: crosstool-ng

Posted: Tue Jun 06, 2017 7:22 am
by Solar
eryjus wrote:While I know it has not been explicitly discouraged, is there some reason crosstool-ng is not recommended for building a cross-compiler?
Well, the instructions in the OSDev Wiki predate crosstool-ng (v0.0.1 released Apr 10, 2007) by a comfortable margin, and are known to work. 8)

Re: crosstool-ng

Posted: Wed Jun 07, 2017 2:51 pm
by Jezze
I think it is an excellent toolchain and Ive used it to compile my os for a long time.

Re: crosstool-ng

Posted: Thu Jun 08, 2017 1:28 am
by Solar
Not as long as I have been using the wiki instructions. ;-)

The other point is, while it would be OK to mention crosstool-ng in the Wiki, or even write an introduction on its use, replacing the existing instructions with those for a third-party tool would be suboptimal IMHO. It would mean that we would have to handle any issues encountered with present and future versions of crosstool-ng here in the forum. By not relying on crosstool-ng, we only have to handle problems with the cross-building process itself, and the occassional "why do I need a crosscompiler in the first place" question. I also think that the current way is more... instructive (no pun intended) as to what's really going on.

I don't say that these are "killer arguments", just that there are benefits to describing the "manual" path.

Re: crosstool-ng

Posted: Thu Jun 08, 2017 4:22 am
by dozniak
I'm pretty sure that if you're able to undestand and execute manual instructions in the wiki you will be qualified to check and even perhaps fix any crosstool-ng issues.

The opposite is not true.

Re: crosstool-ng

Posted: Thu Jun 08, 2017 10:33 am
by eryjus
Solar wrote:replacing the existing instructions with those for a third-party tool would be suboptimal
I never intended to suggest that.
Solar wrote:I also think that the current way is more... instructive (no pun intended) as to what's really going on.
I can also see the value of the "weed-out" instructions. That answer is good enough for me for why not to mention it.