Skip to content

add_strerror_r_to_error missing int overload #373

Open

Description

@bl4ckb0ne

I am encountering the following error on Alpinelinux (musl-libc based)

/tmp/src/intel-graphics-compiler-2.16.0/visa/iga/IGALibrary/system.cpp: In function 'std::string iga::FormatLastError(unsigned int)':
/tmp/src/intel-graphics-compiler-2.16.0/visa/iga/IGALibrary/system.cpp:236:35: error: invalid conversion from 'int' to 'char*' [-fpermissive]
  236 |   add_strerror_r_to_error(errMsg, strerror_r_return_value);
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
      |                                   |
      |                                   int
/tmp/src/intel-graphics-compiler-2.16.0/visa/iga/IGALibrary/system.cpp:219:43: note: initializing argument 2 of 'void add_strerror_r_to_error(char*, char*)'
  219 |                                     char *strerror_r_return_value) {
      |          

#213 reported the issue first and was fixed in d5231d0 but github.com/intel/intel-graphics-compiler/commit/f0962ad863a85c4cfc417e57aa046dc73a79e193 actually removed the int overload, probably mistaken as unused with glibc based distros.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions