#15 Opmock2: Building LLVM + Clang

v1.0_(example)
closed
pogn
None
1
2013-11-26
2013-01-09
Anonymous
No

After executing $ make -j4 ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1
The ff error below occurs:

In file included from /usr/include/w32api/windef.h:139:
/usr/include/w32api/winnt.h:375:2: error: Must define a target architecture.

error Must define a target architecture.

^
/usr/include/w32api/winnt.h:2410:7: error: unknown type name 'PCONTEXT'; did you
mean '_CONTEXT'?
PCONTEXT ContextRecord;
^
/usr/include/w32api/excpt.h:84:96: note: '_CONTEXT' declared here
..._EXCEPTION_RECORD, void, struct _CONTEXT, void);
^
In file included from /home/Administrator/llvm31/llvm/tools/clang/tools/libclang/CIndexer.cpp:41:
In file included from /usr/include/w32api/windows.h:69:
In file included from /usr/include/w32api/windef.h:139:
/usr/include/w32api/winnt.h:2410:16: error: field has incomplete type '_CONTEXT'
PCONTEXT ContextRecord;
^
/usr/include/w32api/excpt.h:84:96: note: forward declaration of '_CONTEXT'
..._EXCEPTION_RECORD, void, struct _CONTEXT, void);
^
In file included from /home/Administrator/llvm31/llvm/tools/clang/tools/libclang/CIndexer.cpp:41:
In file included from /usr/include/w32api/windows.h:69:
In file included from /usr/include/w32api/windef.h:139:
/usr/include/w32api/winnt.h:5668:25: error: variable has incomplete type 'void'
NTSYSAPI VOID NTAPI RtlCaptureContext(PCONTEXT ContextRecord);
^
/usr/include/w32api/winnt.h:5668:43: error: use of undeclared identifier
'PCONTEXT'
NTSYSAPI VOID NTAPI RtlCaptureContext(PCONTEXT ContextRecord);
^
In file included from /home/Administrator/llvm31/llvm/tools/clang/tools/libclang/CIndexer.cpp:41:
In file included from /usr/include/w32api/windows.h:70:
/usr/include/w32api/winbase.h:611:11: error: unknown type name 'PCONTEXT'; did
you mean '_CONTEXT'?
typedef PCONTEXT LPCONTEXT;
^
/usr/include/w32api/excpt.h:84:96: note: '_CONTEXT' declared here
..._EXCEPTION_RECORD, void, struct _CONTEXT, void);
^
In file included from /home/Administrator/llvm31/llvm/tools/clang/tools/libclang/CIndexer.cpp:41:
In file included from /usr/include/w32api/windows.h:70:
/usr/include/w32api/winbase.h:1375:67: error: unknown type name 'CONTEXT'; did
you mean '_CONTEXT'?
...WINAPI SetThreadContext(HANDLE hThread,CONST CONTEXT lpContext);
^
/usr/include/w32api/excpt.h:84:96: note: '_CONTEXT' declared here
..._EXCEPTION_RECORD
, void, struct _CONTEXT, void);
^
llvm[4]: Compiling CXLoadedDiagnostic.cpp for Release build (PIC)
7 errors generated.
/home/Administrator/llvm31/llvm/Makefile.rules:1592: recipe for target /home/Administrator/llvm31/build/tools/clang/tools/libclang/Release/CIndexer.o' failed make[4]: *** [/home/Administrator/llvm31/build/tools/clang/tools/libclang/Release/CIndexer.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory/home/Administrator/llvm31/build/tools/clang/tools/libclang'
/home/Administrator/llvm31/llvm/Makefile.rules:845: recipe for target all' failed make[3]: *** [all] Error 1 make[3]: Leaving directory/home/Administrator/llvm31/build/tools/clang/tools'
/home/Administrator/llvm31/llvm/Makefile.rules:845: recipe for target all' failed make[2]: *** [all] Error 1 make[2]: Leaving directory/home/Administrator/llvm31/build/tools/clang'
/home/Administrator/llvm31/llvm/Makefile.rules:904: recipe for target clang/.makeall' failed make[1]: *** [clang/.makeall] Error 2 make[1]: Leaving directory/home/Administrator/llvm31/build/tools'
/home/Administrator/llvm31/llvm/Makefile.rules:845: recipe for target `all' failed
make:
** [all] Error 1
make: INTERNAL: Exiting with 3 jobserver tokens available; should be 4!

Discussion

  • pogn
    pogn
    2013-04-11

    Hi,

    I would need more information about your setup to help you with this compilation problem:
    -which OS and OS version?
    -Compiler version?
    -Did you use a pre-packaged version of llvm/clang or you compiled it yourself?

    From your logs, it looks like you're including file specific to Windows but on a different target (Linux?)

    Pascal

     
  • pogn
    pogn
    2013-07-25

    As I did not get more informations on this bug, I have to close it.
    I can only assume that you tried to compile opmock 2 on a windows system, maybe using cygwin. I've not tested this configuration even though in theory it should work. Opmock has been tested on Linux/Unix only. I may try to give instructions for a windows build when I have some spare time.

    Pascal

     
  • pogn
    pogn
    2013-07-25

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     After executing $ make -j4 ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1
     The ff error below occurs:
    
    • status: open --> closed
    • assigned_to: pogn
     


Anonymous


Cancel   Add attachments