intel / intel/intel-graphics-compiler

add_strerror_r_to_error missing int overload

Open
#373 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
718
Forks
191
PR merge metrics
No merged PRs in 30d

Description

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) {
|
```

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.