opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

Verilator compilation error (jtagdpi) on macOS

Open eunchan opened this issue 7 years ago • 3 comments

I am seeing below error(jtagdpi.c) on macOS with verilator.

      ssize_t num_written = send(ctx->cfd, &tdo_ascii, sizeof(tdo_ascii),
                                 MSG_NOSIGNAL);

It complains MSG_NOSIGNAL isn't defined. Does anyone see this?

eunchan avatar Jun 23 '19 17:06 eunchan

OSX doesn't define MSG_NOSIGNAL even though it's in POSIX. There are a couple of workarounds, like this one: https://nwat.xyz/blog/2014/01/16/porting-msg_more-and-msg_nosigpipe-to-osx/

I can't really work on it, since I cannot test it, however, I'd appreciate a patch for it.

imphil avatar Jun 26 '19 12:06 imphil

On a mission to clean up old issues, scraping from stalest to freshest.

@eunchan can you try this again? Is this something that we want to support @asb @imphil ?

sjgitty avatar Dec 05 '19 02:12 sjgitty

Oh... I have no longer macOS. We can close this.

On Wed, Dec 04, 2019 at 06:29:16PM -0800, Scott Johnson wrote:

On a mission to clean up old issues, scraping from stalest to freshest.

@eunchan can you try this again? Is this something that we want to support @asb @imphil ?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/lowRISC/opentitan/issues/39#issuecomment-561938403

eunchan avatar Dec 05 '19 17:12 eunchan