On Wed, 2012-03-14 at 17:07 +0000, David Howells wrote: > Jonas Bonn <jonas@xxxxxxxxxxxx> wrote: > > > > > The error I get while building (if asm/system.h is included) is a > > > > circular dependency that I don't see that I can easily resolve: > > > > > > How do I get an openrisc toolchain? > > > > http://openrisc.net/toolchain-build.html > > > > What distro are you on? I might be able to send you a binary version if > > you prefer... > > I'd like to add it to my spec file to build the complete clutch of binutils > and gcc RPMs for Fedora. > > I originally tried --target=openrisc-elf, but whilst that is supported by > binutils, it doesn't seem to be supported by gcc. > That openrisc-elf target in upstream binutils is ancient and has not worked for years... it really should be pulled out of binutils altogether. The current toolchain bits are unfortunately not part of the upstream toolchain components. > According to your URL above, I should be using --target=or32-linux, but > binutils claims not to support that: > > *** ld does not support target or32-unknown-linux-gnu > or32-linux is supported in the toolchain from openrisc.net. Likewise or32-elf... follow the instructions (the easy ones should work) on the link I sent you -- the submodules in the "toolchain" repo are from the openrisc git repo and contain everything that is needed. /Jonas -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html