Hi Julius,

most certainly. The requirements are also listed under the wiki topic:
http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Newlib_toolchain_.28or1k-elf.29_2

I used the new kid Homebrew. But you don't need much. It must be compiled
with Apple's clang due to some restrictions on the linker of self
compiled Binutils/GCC. Their lds do not support the mac target and are
mostly also not compiled. So, these are the requirements:

 Apple Developer: Command Line Tools
 Brew installations: gmp libmpc mpfr cloog isl
 Variables ~/.bash_profile: export CC=cc / export CXX=c++
 Add toolchain to PATH: /opt/or1k-toolchain/bin



On Sun, Oct 13, 2013 at 5:03 PM, Julius Baxter <[email protected]>wrote:

> On Sun, Oct 13, 2013 at 2:44 PM, Raul Fajardo <[email protected]> wrote:
> > Don't forget to run autoconf under bfd after applying the patch.
> >
> >
> > On Sun, Oct 13, 2013 at 3:43 PM, Raul Fajardo <[email protected]>
> wrote:
> >>
> >> I successfully installed the newlib toolchain under OSX Mountain Lion.
> >>
> >> Binutils has compiled with -disable-werror. But GCC compilation failed
> >> then because libbfd.a was not correctly linked to gettext. The error
> was:
> >>
> >>
> >>
> http://gcc.gnu.org/wiki/FAQ#Configuration_fails_with_.27.27configure:_error:_cannot_compute_suffix_of_object_files:_cannot_compile.27.27._What_is_the_problem.3F
> >>
> >> And occurred because the binutil tools failed with something like:
> >>
> >> collect2: ld terminated with signal 5 [Trace/BPT trap]
> >> dyld: lazy symbol binding failed: Symbol not found: _libintl_dgettext
> >>   Referenced from:
> >>
> /Volumes/btc-0.12/gcc-4.4/i386-apple-darwin9.8.0/powerpc-linux-gnu/lib/libb
> >> fd-2.20.1.20100303.dylib
> >>   Expected in: dynamic lookup
> >>
> >>
> >> I found out that a link from libbfd.a to libintl.a had to be created
> under
> >> the following url:
> >>
> http://www.telegraphics.com.au/~fthain/sw/build-tool-chain/btc-20110616/patches/binutils-2.20.1-darwin-libbfd-link.diff
> >>
> >> However, this workaround failed when compiling GCC with binutils because
> >> it was compiling libintl.a into libbfd.a instead of linking.
> >> Relevant warning:
> >> *** Warning: Linking the shared library libbfd.la against the
> >> *** static library ../intl/libintl.a is not portable!
> >>
> >> Giving a try to some reading about autobuild, I have came up with a
> patch
> >> that worked under both cases. (below)
> >>
> >> I will post the recipe to install the newlib toolchain under OSX
> Mountain
> >> Lion to OpenCores Wiki next.
>
> Hi Raul
>
> Great to read you've got it building on OS X. Adding the instructions
> to the GNU toolchain page on the wiki would be appreciated.
>
> Any chance you could also outline what other prerequisites you
> required. Are you using either fink or MacPorts to get any other
> required libraries?
>
> Cheers!
>
> Julius
>
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to