Skip to content

ELF Loader Apple Compilation Issues #5649

Closed

Description

@stellaraccident

From the CI. Would be good for someone with a mac to fix.

2021-04-27T10:18:33.9872880Z FAILED: iree/hal/local/elf/CMakeFiles/iree_hal_local_elf_platform.dir/platform/apple.c.o 
2021-04-27T10:18:33.9987890Z /usr/bin/clang  -isystem /Users/runner/work/iree/iree/main_checkout -isystem . -O3 -DNDEBUG -isysroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.9 -fPIC -Wall -Wno-ambiguous-member-template -Wno-char-subscripts -Wno-deprecated-declarations -Wno-extern-c-compat -Wno-gnu-alignof-expression -Wno-gnu-variable-sized-type-not-at-end -Wno-ignored-optimization-argument -Wno-invalid-offsetof -Wno-invalid-source-encoding -Wno-mismatched-tags -Wno-pointer-sign -Wno-reserved-user-defined-literal -Wno-return-type-c-linkage -Wno-self-assign-overloaded -Wno-sign-compare -Wno-signed-unsigned-wchar -Wno-strict-overflow -Wno-trigraphs -Wno-unknown-pragmas -Wno-unknown-warning-option -Wno-unused-command-line-argument -Wno-unused-const-variable -Wno-unused-function -Wno-unused-local-typedef -Wno-unused-private-field -Wno-user-defined-warnings -Wctad-maybe-unsupported -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wformat-security -Wgnu-redeclared-enum -Wimplicit-fallthrough -Winfinite-recursion -Wliteral-conversion -Wnon-virtual-dtor -Woverloaded-virtual -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety -Wthread-safety-beta -Wunused-comparison -Wvla -Wno-strict-prototypes -Wno-shadow-uncaptured-local -Wno-gnu-zero-variadic-macro-arguments -Wno-shadow-field-in-constructor -Wno-unreachable-code-return -Wno-missing-variable-declarations -Wno-gnu-label-as-value -Wno-unused-parameter -Wno-unused-variable -Wno-undef -fvisibility=hidden -std=gnu11 -MD -MT iree/hal/local/elf/CMakeFiles/iree_hal_local_elf_platform.dir/platform/apple.c.o -MF iree/hal/local/elf/CMakeFiles/iree_hal_local_elf_platform.dir/platform/apple.c.o.d -o iree/hal/local/elf/CMakeFiles/iree_hal_local_elf_platform.dir/platform/apple.c.o -c /Users/runner/work/iree/iree/main_checkout/iree/hal/local/elf/platform/apple.c
2021-04-27T10:18:34.0076820Z /Users/runner/work/iree/iree/main_checkout/iree/hal/local/elf/platform/apple.c:47:40: warning: 'pthread_jit_write_protect_np' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
2021-04-27T10:18:34.0175810Z void iree_memory_jit_context_begin() { pthread_jit_write_protect_np(0); }
2021-04-27T10:18:34.0275940Z                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-04-27T10:18:34.0379830Z /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/pthread.h:561:6: note: 'pthread_jit_write_protect_np' has been marked as being introduced in macOS 11.0 here, but the deployment target is macOS 10.9.0
2021-04-27T10:18:34.0400530Z void pthread_jit_write_protect_np(int enabled);
2021-04-27T10:18:34.0501980Z      ^
2021-04-27T10:18:34.0605080Z /Users/runner/work/iree/iree/main_checkout/iree/hal/local/elf/platform/apple.c:47:40: note: enclose 'pthread_jit_write_protect_np' in a __builtin_available check to silence this warning
2021-04-27T10:18:34.0638190Z void iree_memory_jit_context_begin() { pthread_jit_write_protect_np(0); }
2021-04-27T10:18:34.0840180Z                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-04-27T10:18:34.0943810Z /Users/runner/work/iree/iree/main_checkout/iree/hal/local/elf/platform/apple.c:49:38: warning: 'pthread_jit_write_protect_np' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
2021-04-27T10:18:34.1043470Z void iree_memory_jit_context_end() { pthread_jit_write_protect_np(1); }
2021-04-27T10:18:34.1146000Z                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-04-27T10:18:34.1248600Z /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/pthread.h:561:6: note: 'pthread_jit_write_protect_np' has been marked as being introduced in macOS 11.0 here, but the deployment target is macOS 10.9.0
2021-04-27T10:18:34.1348990Z void pthread_jit_write_protect_np(int enabled);
2021-04-27T10:18:34.1450750Z      ^
2021-04-27T10:18:34.1552990Z /Users/runner/work/iree/iree/main_checkout/iree/hal/local/elf/platform/apple.c:49:38: note: enclose 'pthread_jit_write_protect_np' in a __builtin_available check to silence this warning
2021-04-27T10:18:34.1652750Z void iree_memory_jit_context_end() { pthread_jit_write_protect_np(1); }
2021-04-27T10:18:34.1754530Z                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-04-27T10:18:34.1807540Z /Users/runner/work/iree/iree/main_checkout/iree/hal/local/elf/platform/apple.c:74:15: error: use of undeclared identifier 'IREE_MEMORY_VIEW_FLAG_EXECUTE'; did you mean 'IREE_MEMORY_VIEW_FLAG_MAY_EXECUTE'?
2021-04-27T10:18:34.1909800Z   if (flags & IREE_MEMORY_VIEW_FLAG_EXECUTE) {
2021-04-27T10:18:34.2009960Z               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-04-27T10:18:34.2111510Z               IREE_MEMORY_VIEW_FLAG_MAY_EXECUTE
2021-04-27T10:18:34.2213230Z /Users/runner/work/iree/iree/main_checkout/iree/hal/local/elf/platform.h:120:3: note: 'IREE_MEMORY_VIEW_FLAG_MAY_EXECUTE' declared here
2021-04-27T10:18:34.2313390Z   IREE_MEMORY_VIEW_FLAG_MAY_EXECUTE = 1u << 10,
2021-04-27T10:18:34.2367810Z   ^
2021-04-27T10:18:34.2417650Z 2 warnings and 1 error generated.

Activity

  1. added
    bug 🐞
    help wanted
    on Apr 27, 2021
  2. removed their assignment
    on Apr 27, 2021
  3. GMNGeoffrey commented on Apr 27, 2021

    @GMNGeoffrey
    Member

    "someone with a mac" is definitely not me 😁

    Tangent: Stella, are you deliberately assigning this stuff to me or using the bug template? You should be able to unassign me when filing (it's just the default so we don't lose user issues). Maybe we should create a separate template for user issues intead.

  4. benvanik commented on Apr 27, 2021

    @benvanik
    Collaborator

    (we need mac CI)

  5. stellaraccident commented on Apr 27, 2021

    @stellaraccident
    CollaboratorAuthor

    "someone with a mac" is definitely not me

    Tangent: Stella, are you deliberately assigning this stuff to me or using the bug template? You should be able to unassign me when filing (it's just the default so we don't lose user issues). Maybe we should create a separate template for user issues intead.

    I am not. I just delete everything from the template and select who I want to assign. It must be adding you...

  6. stellaraccident commented on Apr 27, 2021

    @stellaraccident
    CollaboratorAuthor

    (we need mac CI)

    High capacity mac CI's are hard to come by.

  7. GMNGeoffrey commented on Apr 28, 2021

    @GMNGeoffrey
    Member

    I am not. I just delete everything from the template and select who I want to assign. It must be adding you...

    Assigning me and adding "bug" and "help wanted" labels is part of the template. You have to remove me from the assignees. Maybe we do need a separate "user issue" template

    But if you're deleting everything from the template you could just start from a blank issue as well
    BG5xgEQeqK5QdTa

  8. stellaraccident commented on Apr 28, 2021

    @stellaraccident
    CollaboratorAuthor

    Oh I'm sorry - i just squinted and saw the little "create blank" link. Hadn't seen that before.

  9. added 2 commits that reference this issue on Apr 28, 2021
    40a9b61
    2683ed6
  10. added a commit that references this issue on Apr 28, 2021
    5e66689
  11. added a commit that references this issue on Apr 29, 2021
    a715351
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug 🐞help wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions