Date: Mon, 4 Jul 2016 09:31:52 -0600 From: Warner Losh <imp@bsdimp.com> To: Mori Hiroki <yamori813@yahoo.co.jp> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: How to change gcc from clang at build kernel and world? Message-ID: <CANCZdfry1ETOL23wG--Q3-yBZAwFRHpm8kMMunwV6-SCc8D5LA@mail.gmail.com> In-Reply-To: <800231.77121.qm@web101710.mail.ssk.yahoo.co.jp> References: <800231.77121.qm@web101710.mail.ssk.yahoo.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
You should be able to get the build with WITH_GCC_BOOTSTRAP=YES WITH_GCC=YES WITHOUT_CLANG_BOOTSTRAP=YES and WITHOUT_CLANG=YES There's also supposed to be a command line arg to clang to keep it from using bx instructions. So that's messed up. But if the compiler-rt stuff, which I haven't looked at, has a naked bx instruction, we'll need an ifdef. Warner On Sun, Jul 3, 2016 at 6:46 PM, Mori Hiroki <yamori813@yahoo.co.jp> wrote: > Hi. > > I make support Eventtimer and FDT and INTRNG to cns11xx code. > > This is almost done. But hang up at init. I think it's a interrupt issue. > > https://gist.github.com/yamori813/ae047a28a825aac255e436fd8ccaf785 > > > https://github.com/yamori813/freebsd/tree/zrouter/sys/arm/cavium/cns11xx > > > cns11xx is arm4(not arm4t). arm build on head is change to use clang > several month ago. I want use gcc at buildworld and buildkernel. > > Because of clang use bx instruction. bx instruction not support arm4. > > How do I change to gcc from clang? > > I found bx instruction at > > contrib/compiler-rt/lib/builtins/arm/ > > It must be changed bx to mov instruction. > > Regards. > > Hiroki Mori > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfry1ETOL23wG--Q3-yBZAwFRHpm8kMMunwV6-SCc8D5LA>