Opened 9 years ago

Closed 9 years ago

#47412 closed defect (invalid)

uhd @3.8.2: fatal error: 'unistd.h' file not found

Reported by: vmagditch@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: uhd

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Error: org.macports.build for port uhd returned: command execution failed
:info:build /opt/local/include/boost/config/posix_features.hpp:18:15: fatal error: 'unistd.h' file not found

Attachments (1)

main.log (65.3 KB) - added by vmagditch@… 9 years ago.
log

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by vmagditch@…

Attachment: main.log added

log

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: unistd.h file not found removed
Owner: changed from macports-tickets@… to michaelld@…
Summary: uhd 3.8.2 build faileduhd @3.8.2: fatal error: 'unistd.h' file not found

This was not a clean build attempt. Please clean and try again.

The error comes from a boost header, but unistd.h is a standard system header and it should be in /usr/include. If it isn't, perhaps you haven't installed Xcode and the Xcode command line tools. Both are required for MacPorts.

comment:2 Changed 9 years ago by michaelld (Michael Dickens)

I'll 2nd Ryan's post:

1) I'm guessing you updated to the new Xcode, but didn't get the CLI tools. You can do this via:

xcode-select --install

2) In the future, we appreciate full logs starting from "clean", e.g.:

sudo port clean uhd
sudo port install uhd

and, then if the build errors out you'll have a clean log to post.

comment:3 in reply to:  1 Changed 9 years ago by vmagditch@…

Replying to ryandesign@…:

This was not a clean build attempt. Please clean and try again.

The error comes from a boost header, but unistd.h is a standard system header and it should be in /usr/include. If it isn't, perhaps you haven't installed Xcode and the Xcode command line tools. Both are required for MacPorts.

You right, I've missed Xcode command line tools Thank you

comment:4 in reply to:  2 Changed 9 years ago by vmagditch@…

Replying to michaelld@…:

I'll 2nd Ryan's post:

1) I'm guessing you updated to the new Xcode, but didn't get the CLI tools. You can do this via:

xcode-select --install

2) In the future, we appreciate full logs starting from "clean", e.g.:

sudo port clean uhd
sudo port install uhd

and, then if the build errors out you'll have a clean log to post.

:-) Short and sweet :-) Many thinks, I've got it

comment:5 Changed 9 years ago by vmagditch@…

Not a defect

comment:6 Changed 9 years ago by larryv (Lawrence Velázquez)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.