You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the event that HAVE_STRERROR_R is undefined, HAVE_DECL_STRERROR_S evaluates to false, and HAVE_STRERROR is undefined, the portion of text marked above is inserted. Compilation fails with the following error:
@serge-sans-paille It may be worth a look at fbbc41f to see if any of the other 70 deletions in that change are invalid for certain combinations of #defines.
In the event that HAVE_STRERROR_R is undefined, HAVE_DECL_STRERROR_S evaluates to false, and HAVE_STRERROR is undefined, the portion of text marked above is inserted. Compilation fails with the following error:
Does this scenario happen for a known supported OS?
strerror_r has great portability. It may not exist in MSVC but strerror is available there. If we cannot find a supported OS exercising this code path of the following lines, the real fix should be to remove these lines:
In
llvm/lib/Support/Errno.cpp
, we have the following (comments removed for brevity):In the event that
HAVE_STRERROR_R
is undefined,HAVE_DECL_STRERROR_S
evaluates to false, andHAVE_STRERROR
is undefined, the portion of text marked above is inserted. Compilation fails with the following error:llvm\lib\Support\Errno.cpp(66): error C2065: 'raw_string_ostream': undeclared identifier
It appears that
raw_string_ostream
is not defined byErrno.h
,config.h
,errno.h
, or any of their transitive inclusions.L66 was added 11 years ago here, and that commit added an inclusion for
llvm/Support/raw_ostream.h
. That inclusion was deleted here.Adding back that inclusion resolves the compilation error.
The text was updated successfully, but these errors were encountered: