The openrisc bugtracker has been moved to: bugzilla.opencores.org. This page is read-only
Patch or1ksim to build on Mac OS X (Snow Leopard)
Information:
Type :: REQUEST
Status :: CLOSED
Assigned to ::
Jeremy, Bennett
Description:
There are a few minor issues that prevent or1ksim from building on Mac OS X; the following patch should resolve them.
Index: configure.ac
===================================================================
--- configure.ac (revision 59)
+++ configure.ac (working copy)
@@ -137,6 +137,8 @@
# check for GNU readline
AC_CHECK_LIB(readline, add_history)
+# Not all versions of readline have rl_event_hook (e.g., Mac OS X)
+AC_CHECK_DECLS(rl_event_hook, [], [], [#include
Comments:
| Bennett, Jeremy | Apr 20, 2010 |
|---|---|
|
Patches committed to SVN tree. |
|
| Bennett, Jeremy | Dec 30, 2009 |
|---|---|
|
Hi Mark, Thanks for the update. The autobuild structure for Or1ksim needs reviewing (see your bug Move/remove or1ksim/downloads and or1ksim/build. There seem to be some dependencies on which version of autobuild is being used. I did the 0.3.0 work with Fedora 9, which uses autoconf 2.61, automake 1.10.1 and libtool 1.5.24. I'll try to resolve this with the next release of Or1ksim. Jeremy
-- |
|
| Jarvin, Mark | Dec 23, 2009 |
|---|---|
Thanks for applying the patch. The code more-or-less builds cleanly from SVN on my Macbook (10.6.2). Presently, I have to execute the following to get the build to complete:
svn co --username=${OCUSER} http://opencores.org/ocsvn/openrisc/openrisc/trunk/or1ksim
cd or1ksim
automake --add-missing
autoreconf
./configure --target=or32-elf --prefix=${OR32TOOLS}/or32-elf
sed -i.bak -e's/^ECHO=/echo=/' libtool
make all install
|
|
| Bennett, Jeremy | Dec 23, 2009 |
|---|---|
|
I've applied your patch to the Or1ksim SVN tree and also provided a patch for the Or1ksim 0.3.0 distribution on the downloads page. |
|
| Bennett, Jeremy | Dec 22, 2009 |
|---|---|
|
Hi Mark, Thanks for this. I'll get your patch uploaded to the website, so it's immediately available. I'll also update the Or1ksim page with information about the patch. May take a day or two. When I do an update of Or1ksim, I'll incorporate these changes. I have no way to test on Mac OS X, so I hope you'll be able to test things when we get to that stage. I'll leave the bug open until then. Formatting of bugs is a pain in the neck. You have to do them explicitly as HTML. Here is what you submitted for the record: Index: configure.ac =================================================================== --- configure.ac (revision 59) +++ configure.ac (working copy) @@ -137,6 +137,8 @@ # check for GNU readline AC_CHECK_LIB(readline, add_history) +# Not all versions of readline have rl_event_hook (e.g., Mac OS X) +AC_CHECK_DECLS(rl_event_hook, [], [], [#include Jeremy
-- |
|
| Jarvin, Mark | Dec 21, 2009 |
|---|---|
| Er... formatting didn't come through. At any rate, the patch is clean if you "View source" on the page. I've uploaded a copy to http://jarv.in/or1ksim.svn.min.patch, just in case. | |
Post a comment:
Login to post comments!
