2016-10-19 2 views
0

Ich habe Probleme bei der Erstellung von unter Mac OS X El Capitan 10.11.6.Erstellen des P-Compilers unter Mac OS X

relevante Teile des Build log (cd Bld; ./build.sh):

~/workspace/P/Bld 
-- The C compiler identification is AppleClang 8.0.0.8000038 
-- The CXX compiler identification is AppleClang 8.0.0.8000038 
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc 
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works 
-- Detecting C compiler ABI info 
-- Detecting C compiler ABI info - done 
-- Detecting C compile features 
-- Detecting C compile features - done 
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works 
-- Detecting CXX compiler ABI info 
-- Detecting CXX compiler ABI info - done 
-- Detecting CXX compile features 
-- Detecting CXX compile features - done 
-- Looking for pthread.h 
-- Looking for pthread.h - found 
-- Looking for pthread_create 
-- Looking for pthread_create - found 
-- Found Threads: TRUE 
-- Configuring done 
-- Generating done 
-- Build files have been written to: /Users/jlieberm/workspace/P/Bld/build 
Scanning dependencies of target Prt 
[ 12%] Building C object Prt/CMakeFiles/Prt.dir/API/PrtUser.c.o 
In file included from /Users/jlieberm/workspace/P/Src/Prt/API/PrtUser.c:1: 
In file included from /Users/jlieberm/workspace/P/Src/Prt/API/PrtUser.h:9: 
In file included from /Users/jlieberm/workspace/P/Src/Prt/Core/PrtExecution.h:4: 
In file included from /Users/jlieberm/workspace/P/Src/Prt/API/Prt.h:9: 
In file included from /Users/jlieberm/workspace/P/Src/Prt/API/PrtProgram.h:14: 
/Users/jlieberm/workspace/P/Src/Prt/API/PrtValues.h:255:8: error: unknown type 
     name 'PRT_FUN_PARAM_STATUS' 
       _In_ PRT_FUN_PARAM_STATUS status, 
        ^
/Users/jlieberm/workspace/P/Src/Prt/API/PrtValues.h:326:8: error: unknown type 
     name 'PRT_FUN_PARAM_STATUS' 
       _In_ PRT_FUN_PARAM_STATUS status, 
        ^
/Users/jlieberm/workspace/P/Src/Prt/API/PrtValues.h:436:8: error: unknown type 
     name 'PRT_FUN_PARAM_STATUS' 
       _In_ PRT_FUN_PARAM_STATUS status, 
        ^
In file included from /Users/jlieberm/workspace/P/Src/Prt/API/PrtUser.c:1: 
In file included from /Users/jlieberm/workspace/P/Src/Prt/API/PrtUser.h:9: 
/Users/jlieberm/workspace/P/Src/Prt/Core/PrtExecution.h:164:122: error: unknown 
     type name 'PRT_FUN_PARAM_STATUS' 
    ...PRT_MACHINEINST_PRIV * context, _In_ PRT_UINT32 varIndex, _In_ PRT_FUN_P... 
                    ^
/Users/jlieberm/workspace/P/Src/Prt/Core/PrtExecution.h:184:8: error: unknown 
     type name 'PRT_FUN_PARAM_STATUS' 
       _In_ PRT_FUN_PARAM_STATUS status, 
        ^
/Users/jlieberm/workspace/P/Src/Prt/Core/PrtExecution.h:500:8: error: unknown 
     type name 'PRT_FUN_PARAM_STATUS' 
       _In_ PRT_FUN_PARAM_STATUS  payloadStatus, 
        ^
/Users/jlieberm/workspace/P/Src/Prt/API/PrtUser.c:508:3: error: use of 
     undeclared identifier 'PRT_FUN_PARAM_STATUS' 
       PRT_FUN_PARAM_STATUS argStatus = va_arg(argp, PRT_FUN_PA... 
       ^
7 errors generated. 
make[2]: *** [Prt/CMakeFiles/Prt.dir/API/PrtUser.c.o] Error 1 
make[1]: *** [Prt/CMakeFiles/Prt.dir/all] Error 2 
make: *** [all] Error 2 

Ich verwende mono 4.6.0 stabil und Cmake 3.6.2, die die Mindestanforderungen in der P build guide for OS X and Linux erfüllen.

Was mache ich falsch?

+0

In Verbindung stehendes meta: [Welches Tag sollte ich verwenden, um Fragen über die P-Programmiersprache zu stellen?] (Http://meta.stackoverflow.com/q/335975/2415822) – JAL

Antwort

2

Dies war ein Fehler mit dem Quellcode. Das P-Team konnte die PRT_FUN_PARAM_STATUS Enum-Deklaration in PrtValues.h enthalten:

typedef enum PRT_FUN_PARAM_STATUS 
{ 
    PRT_FUN_PARAM_CLONE, 
    PRT_FUN_PARAM_SWAP, 
    PRT_FUN_PARAM_XFER 
} PRT_FUN_PARAM_STATUS; 

Fest mit 1fd291c.