On 04.11.2016 01:50, alvin albrecht wrote: > >>>> 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.
On my Debian GNU/Linux amd64 system I currently have the following llvm-related packages installed: clang-3.8 clang-3.8-doc libclang-common-3.8-dev libclang1-3.6 libclang1-3.8 libllvm3.6v5 libllvm3.7 libllvm3.7:i386 libllvm3.8 libllvm3.8:i386 llvm-3.8 llvm-3.8-dev llvm-3.8-doc llvm-3.8-runtime All the 3.8 stuff is 3.8.1 There are no other LLVM bits installed (I run the cfe fork and the cbe from where I built them, didn't install them). Philipp ------------------------------------------------------------------------------ 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 Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user