>>> instructions in README.md)
>>
>> Is it the master branch if the cfe fork that I should be using?
>
>master for cfe, standalone for cbe.
>
>> I’m
>> getting a number of errors when compiling with llvm-3.8.0.
>>
>
>I'm using LLVM 3.8.1, and the cfe fork is based on the cfe from 3.8.1.
>But I don't know if that is the cause of your problems.
LLVM 3.8.1 isn't getting any further. The CFE source code doesn't look
compatible with LLVM 3.8.1.
The first source code error:
llvm-3.8.1/tools/clang/utils/TableGen/ClangAttrEmitter.cpp: (line 1220)
ArrayRef<std::pair<Record*, SMRange>> Bases = Search->getSuperClasses();
"Search" is a lllvm::Record*
llvm-3.8.1/include/llvm/TableGen/Record.h/Record.h: (line 1230)
ArrayRef<Record *> Record::getSuperClasses() const { return SuperClasses; }
The CFE is expecting an incompatible return value from that function. This is
definitely an error.
There were also a few errors during cmake which I ignored or tried a minor
workaround to get further but one of them complained about a missing component
"Coverage" in LLVM which may also indicate incompatible LLVM version.
Is 3.8.1 the only version of LLVM installed on your system? I am compiling the
whole works from source code but I got similar errors when I installed
LLVM-3.8.0 rather than compiled it. I think I will look into the LLVM releases
and see if there is one of them that defines Record::getSuperClasses() in the
way expected by the CFE. And if that doesn't work, go back to installing LLVM
and compiling the CFE separately.
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user