Date: Mon, 9 Oct 2017 19:16:38 +0200 From: Tarjei Jensen <tarjei99@gmail.com> To: freebsd-ports@freebsd.org Subject: Cross compiling GCC for aarch64 Message-ID: <CAGxNqfBWVZ%2BTOORraANBaJweHnws_1b%2BfprOB2kojuy1wBrgUQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, This does NOT concern making a cross compiler. It is about cross compiling gcc from ports so that it will work on aarch64 FreeBSD 12-CURRENT. I have managed to create my own ports which allow me to use gcc6 as a cross compiler on x86 Freebsd 11.1 with aarch64 FreeBSD 12-CURRENT being the target. It seems to work fine. The problem is that I want the GNU Ada compiler (gnat). It requires a working Ada compiler to compile parts of the compiler. There is a gcc6-aux pkg and port which uses v11 binaries. However it does *not* work on FreeBSD 12. It can compile, but the resulting executables does not work. And the gdb skills needed to find out why is simply beyond me. As I understand, what I am attempting is called a Canadian Cross. My plan would be to use the ports system to do this. e.g. by doing a "make build". Create a tarball of the result and unpack on the target system and do a "make install". Or make a pkg. Whatever works. I seem to have found the parameters to use for running the configure script, but I would very much like to use the ports way. Can anybody explain or point to an article which explains how to use the Canadian Cross to cross compile gcc? Suggestions and pointers to documentation are very much appreciated. Greetings,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGxNqfBWVZ%2BTOORraANBaJweHnws_1b%2BfprOB2kojuy1wBrgUQ>