[cfe-dev] UNREACHABLE executed when conpiling Python code
Shang Yu
yusunn at gmail.com
Tue Jul 24 06:55:57 PDT 2012
Got it! There is a header file which has following declaration:
extern __declspec(dllimport) int (*PyOS_InputHook)(void);
and in myreadline.c there is a line:
int (*PyOS_InputHook)(void) = NULL;
these 2 lines will trigger assert failing. Is there some switch to
avoid this ? In MSVC this is just a C4273 warning. Many thanks!
2012/7/24 Shang Yu <yusunn at gmail.com>:
> I've retried with clang debug build, got following asserts:
>
> Global is marked as dllimport, but not external
> i32 ()** @PyOS_InputHook
> Global is marked as dllimport, but not external
> %struct._ts** @_PyOS_ReadlineTState
> Global is marked as dllimport, but not external
> i8* (%struct._iobuf*, %struct._iobuf*, i8*)** @PyOS_ReadlineFunctionPointer
> Broken module found, compilation aborted!
>
> these message are issued from Verifier::visitGlobalValue, what's wrong
> with this ? e.g. PyOS_InputHook is just an ordinary function pointer,
> please help !
>
> 2012/7/24 Shang Yu <yusunn at gmail.com>:
>> Hi dear all,
>> When I'm compiling a Python code, clang got crashed , following is the
>> commandline
>> clang.exe -c -IH:\PYTHON\Python-2.7.3\PC
>> -IH:\PYTHON\Python-2.7.3\Include -ID:/WinSDK/Windows/v6.1/Include
>> -ID:/VCRT/VS9.0/include myreadline.c
>> and the attachment is the log . Thanks in advance.
More information about the cfe-dev
mailing list