Quoting Phil Reid <[EMAIL PROTECTED]>:

> G'day Tristan,
Hi,

> I finally found some time to get GHDL to build under cygwin.
> Pretty much everything worked for me except for processes that do not have a
> sensitive list.
>
> I experienced an exception in the cygwin1.dll which I think is attributed to
> the CreateFiber call not initialising cygwin's TLS memory block.
> Using the teststack.c application I could get the fiber implementation to
> pass provided no cygwin functions were called in one of the created threads.
> Adding a printf in each thread resulted in the same exception.
That's look strange.  I am pretty sure some people have used fibers on cygwin.
We have to understand why this doesn't work.

> Anyway I tried investigating what needed to be done but it all looked to
> hard. So I've gone back to the pthread implmenation under cygwin with the
> following patch. For some reason cygwin on my box at least is doing something
> strange with the mutex, it looks to be creating the mutex as a
> PTHREAD_MUTEX_TIMED_NP if NULL is passed in for the type. I was getting an
> error code indicating that access was denied to the mutex. This doesn't
> follow the mutex documentation.
>
> Anyway with this patch ghdl it all seems to work based on comparison testing
> between the the cygwin version and your windows build.
Good work!

> I haven't traced how you do the windows build but I'm assuming you're using
> mingw and the changes I've done to the makefile.inc for the grt wont affect
> anything.
>
> For anyone interested in building under cygwin:
> I used the latest gcc / gcc-ada binaries to build gcc / gcc-ada 4.1.1 from
> source.
> Installed them.
> Rebuilt gcc / gcc-ada with the new 4.1.1 binaries. (I did try to bootstrap
> the build but ada failed in bootstrap for me.)
> Installed the new bianries.
>
> I then added the ghdl source to the gcc-4.1.1 tree and built gcc / gcc-ada /
> ghdl with the latest 4.1.1 toolchain.
>
> I was also able to follow Tristan's instructions to build a debug version of
> ghdl and that worked without any issue as well.
>
>
> I've also start to see if I could get gcov to work. Unfortunately gcov core
> dumps on most files that are generated. The exe's all build and run fine.
> Just gcov crashes when generating the human readable output. Anyone used this
> recently?
Have you tried gcov on a simple C program ?

> Arnim Läuger documenation for this was with gcc 3.3.3 so I'm unsure at the
> moment if this is a cygwin issue or a gcc 4.1.1 issue.


Thank you for the port effort.
Tristan.

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

Reply via email to