cesanta / homebrew-mos

6 stars 3 forks source link

Fails to build on m1/big sur #8

Open berkus opened 3 years ago

berkus commented 3 years ago
==> Installing cesanta/mos/mos
==> make mos
Last 15 lines from /Users/berkus/Library/Logs/Homebrew/mos/01.make:
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_02_override_with_cli/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_03_extend_with_cli/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_01_app_cond_adds_lib/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_02_lib_cond_adds_lib/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_03_lib_and_app_conds_add_same_lib/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_04_lib_conds_recursive/libs
go version go1.16.2 darwin/arm64
GOOS= GOARCH= CC= CXX= \
      go build -mod=vendor -tags '' -ldflags '-s -w ''' -o mos github.com/mongoose-os/mos/cli
# github.com/cesanta/hid
vendor/github.com/cesanta/hid/hid_darwin.go:6:10: fatal error: 'IOKit/hid/IOHIDManager.h' file not found
#include <IOKit/hid/IOHIDManager.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [build-mos] Error 2

Looks like a problem on big sur/m1 as IOHIDManager.h only exists in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/hid/IOHIDManager.h