Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macOS_SDK_headers_for_macOS_10.14.pkg to osx install #1359

Closed
ryarnyah opened this issue Sep 29, 2018 · 0 comments
Closed

Add macOS_SDK_headers_for_macOS_10.14.pkg to osx install #1359

ryarnyah opened this issue Sep 29, 2018 · 0 comments

Comments

@ryarnyah
Copy link

ryarnyah commented Sep 29, 2018

Please answer the following before submitting your issue:

Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.

  1. What version of Delve are you using (dlv version)?
    master branch
  2. What version of Go are you using? (go version)?
    1.11
  3. What operating system and processor architecture are you using?
    osx 10.14
  4. What did you do?
    $ go get -u github.com/derekparker/delve/cmd/dlv
  5. What did you expect to see?
    No error
  6. What did you see instead?
# github.com/derekparker/delve/pkg/proc/native
In file included from Devel/Devel_go/src/github.com/derekparker/delve/pkg/proc/native/proc_darwin.go:3:
./proc_darwin.h:1:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
         ^~~~~~~~~~~~~
1 error generated.

To resolve it, i needed to install /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg manually. (See https://forums.developer.apple.com/thread/104296)

aarzilli added a commit to aarzilli/delve that referenced this issue Oct 1, 2018
On macOS 10.14 Apple changed the command line tools so that system
headers now need to be manually installed.

Instead of adding one extra install step to the install procedure add a
build tag to allow compilation of delve without the native backend on
macOS. By default (i.e. when using `go get`) this is how delve will be
compiled on macOS, the make script is changed to enable compiling the
native backend if the required dependencies have been installed.

Insure that both configuration still build correctly on Travis CI and
change the documentation to describe how to compile the native backend
and that it isn't normally needed.

Fixes go-delve#1359
aarzilli added a commit to aarzilli/delve that referenced this issue Oct 2, 2018
On macOS 10.14 Apple changed the command line tools so that system
headers now need to be manually installed.

Instead of adding one extra install step to the install procedure add a
build tag to allow compilation of delve without the native backend on
macOS. By default (i.e. when using `go get`) this is how delve will be
compiled on macOS, the make script is changed to enable compiling the
native backend if the required dependencies have been installed.

Insure that both configuration still build correctly on Travis CI and
change the documentation to describe how to compile the native backend
and that it isn't normally needed.

Fixes go-delve#1359
cgxxv pushed a commit to cgxxv/delve that referenced this issue Mar 25, 2022
On macOS 10.14 Apple changed the command line tools so that system
headers now need to be manually installed.

Instead of adding one extra install step to the install procedure add a
build tag to allow compilation of delve without the native backend on
macOS. By default (i.e. when using `go get`) this is how delve will be
compiled on macOS, the make script is changed to enable compiling the
native backend if the required dependencies have been installed.

Insure that both configuration still build correctly on Travis CI and
change the documentation to describe how to compile the native backend
and that it isn't normally needed.

Fixes go-delve#1359
abner-chenc pushed a commit to loongson/delve that referenced this issue Mar 1, 2024
On macOS 10.14 Apple changed the command line tools so that system
headers now need to be manually installed.

Instead of adding one extra install step to the install procedure add a
build tag to allow compilation of delve without the native backend on
macOS. By default (i.e. when using `go get`) this is how delve will be
compiled on macOS, the make script is changed to enable compiling the
native backend if the required dependencies have been installed.

Insure that both configuration still build correctly on Travis CI and
change the documentation to describe how to compile the native backend
and that it isn't normally needed.

Fixes go-delve#1359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants