Skip to content

Snapshot release failing with no IREE_ELF_CLEAR_CACHE on gcc #5617

Closed

Description

@stellaraccident
iree/hal/local/elf/CMakeFiles/iree_hal_local_elf_platform.dir/platform/linux.c.o -c /project/main_checkout/iree/hal/local/elf/platform/linux.c
2021-04-26T11:34:03.1538953Z /project/main_checkout/iree/hal/local/elf/platform/linux.c:155:2: error: #error "no instruction cache clear implementation"
2021-04-26T11:34:03.1540158Z   155 | #error "no instruction cache clear implementation"
2021-04-26T11:34:03.1540883Z       |  ^~~~~
2021-04-26T11:34:03.1542565Z /project/main_checkout/iree/hal/local/elf/platform/linux.c: In function ‘iree_memory_view_flush_icache’:
2021-04-26T11:34:03.1545027Z /project/main_checkout/iree/hal/local/elf/platform/linux.c:160:3: warning: implicit declaration of function ‘IREE_ELF_CLEAR_CACHE’ [-Wimplicit-function-declaration]
2021-04-26T11:34:03.1546548Z   160 |   IREE_ELF_CLEAR_CACHE(base_address, base_address + length);
2021-04-26T11:34:03.1567057Z       |   ^~~~~~~~~~~~~~~~~~~~

Activity

  1. added
    bug 🐞
    help wanted
    on Apr 26, 2021
  2. benvanik commented on Apr 26, 2021

    @benvanik
    Collaborator

    This may be an issue with the builtin detection that differs between gcc and clang - the particular builtin used (__builtin___clear_cache) was originally specified by gcc itself. Maybe we can add || defined(__GNUC__) to: https://github.com/google/iree/blob/96fd277e4424c8a195e4ab3b94a42a1824ae4322/iree/hal/local/elf/platform/linux.c#L148

  3. removed their assignment
    on Apr 26, 2021
  4. added a commit that references this issue on Apr 26, 2021
    a91040e
  5. added 3 commits that reference this issue on Apr 26, 2021
    251c033
    8bb57ac
    08e8756
  6. added a commit that references this issue on Apr 27, 2021
    dadfbd2
  7. added 2 commits that reference this issue on Apr 29, 2021
    26d8574
    3527d60
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