Error compiling LDC (again...)

matovitch via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Mar 15 07:10:48 PDT 2015


Hi,

Me again (it's been some time but it's about the same
problem)...I tried to compile LDC with the knew LLVM/clang I just
compile and stumble (not sure of the orthographe here) upon this
make error :

/home/cbrugel/Downloads/ldc/gen/dvalue.cpp:21:13: warning: ‘bool
checkVarValueType(llvm::Type*, bool)’ defined but not used
[-Wunused-function]
    static bool checkVarValueType(LLType* t, bool extraDeref)
                ^
[  9%] Building CXX object
CMakeFiles/LDCShared.dir/gen/warnings.cpp.o
[  9%] Building CXX object
CMakeFiles/LDCShared.dir/gen/typinf.cpp.o
[  9%] Building CXX object
CMakeFiles/LDCShared.dir/gen/abi-win64.cpp.o
[  9%] Building CXX object
CMakeFiles/LDCShared.dir/gen/llvmhelpers.cpp.o
/home/cbrugel/Downloads/ldc/gen/llvmhelpers.cpp: In function
‘DValue* DtoCastPtr(Loc&, DValue*, Type*)’:
/home/cbrugel/Downloads/ldc/gen/llvmhelpers.cpp:582:11: warning:
unused variable ‘fromtype’ [-Wunused-variable]
        Type* fromtype = val->getType()->toBasetype();
              ^
/home/cbrugel/Downloads/ldc/gen/llvmhelpers.cpp: In function
‘llvm::Constant* DtoConstExpInit(Loc&, Type*, Expression*)’:
/home/cbrugel/Downloads/ldc/gen/llvmhelpers.cpp:1368:28: warning:
unused variable ‘source’ [-Wunused-variable]
            llvm::IntegerType* source =
llvm::cast<llvm::IntegerType>(llType);
                               ^
/home/cbrugel/Downloads/ldc/gen/llvmhelpers.cpp: In function
‘DValue* DtoSymbolAddress(Loc&, Type*, Declaration*)’:
/home/cbrugel/Downloads/ldc/gen/llvmhelpers.cpp:1794:33: warning:
unused variable ‘t’ [-Wunused-variable]
                        llvm::Type* t =
llvm::cast<llvm::PointerType>(val->getType())->getElementType();
                                    ^
[  9%] Building CXX object
CMakeFiles/LDCShared.dir/gen/asmstmt.cpp.o
[  9%] Building CXX object
CMakeFiles/LDCShared.dir/gen/binops.cpp.o
[  9%] Building CXX object
CMakeFiles/LDCShared.dir/gen/optimizer.cpp.o
In file included from
/home/cbrugel/Downloads/ldc/gen/optimizer.cpp:12:0:
/home/cbrugel/Downloads/ldc/./gen/cl_helpers.h:32:11: error:
cannot derive from ‘final’ base ‘llvm::cl::parser<bool>’ in
derived type ‘opts::FlagParser’
        class FlagParser : public cl::parser<bool> {
              ^
CMakeFiles/LDCShared.dir/build.make:1883: recipe for target
'CMakeFiles/LDCShared.dir/gen/optimizer.cpp.o' failed
make[2]: *** [CMakeFiles/LDCShared.dir/gen/optimizer.cpp.o] Error
1
CMakeFiles/Makefile2:61: recipe for target
'CMakeFiles/LDCShared.dir/all' failed
make[1]: *** [CMakeFiles/LDCShared.dir/all] Error 2
Makefile:143: recipe for target 'all' failed
make: *** [all] Error 2

Any idea ? Anyway thanks a lot in advance for your help ! :)


More information about the digitalmars-d-ldc mailing list