On 23/03/11 5:39 AM, Jacob Schaffner wrote:
> A couple years ago, I successfully installed GHDL on Mac OS X (10.5.1) with
> much help from Tristan. Below are my notes. Trying to reinstall on OS X 10.6.6
> with the current version of GHDL I have no such success. It appears that the 
> GHDL
> package has changed substantially in the interim, so some of my notes are no
> longer even applicable.
> 
> Anyone have any luck on OS X recently? Can anyone point me to some install 
> instructions that might get me back on track here?
> 
> I've also attached the ghdl.diff patch file below, which I think Tristan 
> created
> for me and got me going last time. Of course, this patch appears to reference
> files that have moved.
> 
> Any help would be very much appreciated.
> 

I looked through ghdl.diff and found that all of the patches appear to be
incorporated in the current svn revision (revision 143) except the first one
for the Makefile.  That includes the manual patch (which was also included
in ghdl.diff).

I think there's probably a way to do without the Makefile patch, depending
on your make command.  It's been a decade and a half since I last thought
about command line argument precedence.  The single definition change is to
set  target=i686-darwin.

Also your svn command line yields /Applications/ghdl/ without a trunk suffix
today.

You can build ghdl anywhere. it doesn't have to be in /Applications.  It's a
bad precedent to build something that isn't a bundle or package there, perhaps.

> ------d--
> Installing GHDL on Mac OS X (10.5.1)
> --------
> Install gnat using the gcc-4.3 package downloaded from www.macada.org.
> 
> Add gnat to the search path by adding the following line to the ~/.profile 
> file:
> 
>             export PATH="$PATH:/usr/local/ada-4.3/bin"
> Create a directory called GHDL in the /Applications directory


Also the www.macada.org provided in /usr/local/ada-4.3/bin is a 32 bit
compiler environment (i386).  The Xcode gcc environment (darwin10) builds 64
bit binaries by default.  This came in to effect in the first Xcode release
after 10.6.

This comes into play when you don't have the gcc in /usr/local/ada-4.3/bin
found in your path before another gcc, and also says you are building a 32
bit ghdl.  A long term goal might be to get a 64 bit gnat and matching gcc.

You can define which GCC by command line arguments to make more than likely,
patch a make file to provide it, pass it in the execution environment or if
you're particularly lazy you can set /usr/local/ada-4.3/bin earlier than
/usr/bin when building ghdl.  I'm a C Shell user and have a couple of alias
for putting it first then putting it back.

If you are using a 64 bit gcc to compile the C files in ghdl you'll fail at
linking.  (I then remembered why I had the CSH aliases).

I've got to run some errands or I'd see if it would complete, I will do it
later. I was about to upgrade to 10.6.7 when I saw your post, and because I
had built ghdl before under 10.5.X  before I thought I'd give it a try
again.  I'll see if it will complete with a matching gcc when I get back.

The first make passes:

Macbook: ghdl_mcode --version
GHDL 0.29 (20100109) [Sokcho edition]
 Compiled with GNAT Version: 4.4.0 20080314 (experimental)
 mcode code generator
Written by Tristan Gingold.

Copyright (C) 2003 - 2010 Tristan Gingold.
GHDL is free software, covered by the GNU General Public License.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to