port to NetBSD

Nikolay via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed Jan 6 10:18:26 PST 2016


I am trying compile ldc (git master) on NetBSD 7.0 Currently I 
stuck on link error for ldc2:

/usr/pkg/bin/cmake -E cmake_link_script 
CMakeFiles/ldc2.dir/link.txt --verbose=1
/usr/bin/c++     CMakeFiles/ldc2.dir/driver/cl_options.cpp.o 
CMakeFiles/ldc2.dir/driver/codegenerator.cpp.o 
CMakeFiles/ldc2.dir/driver/configfile.cpp.o 
CMakeFiles/ldc2.dir/driver/exe_path.cpp.o 
CMakeFiles/ldc2.dir/driver/targetmachine.cpp.o 
CMakeFiles/ldc2.dir/driver/toobj.cpp.o 
CMakeFiles/ldc2.dir/driver/tool.cpp.o 
CMakeFiles/ldc2.dir/driver/linker.cpp.o 
CMakeFiles/ldc2.dir/driver/main.cpp.o 
CMakeFiles/ldc2.dir/driver/ldc-version.cpp.o  -o bin/ldc2  
lib/libldc.a /usr/pkg/lib/libconfig.so -lpthread -lterminfo 
-lLLVMOption -lLLVMLTO -lLLVMObjCARCOpts -lLLVMLinker 
-lLLVMIRReader -lLLVMInstrumentation -lLLVMBitWriter 
-lLLVMAsmParser -lLLVMR600CodeGen -lLLVMipo -lLLVMVectorize 
-lLLVMR600AsmParser -lLLVMR600Desc -lLLVMR600Info 
-lLLVMR600AsmPrinter -lLLVMSystemZDisassembler 
-lLLVMSystemZCodeGen -lLLVMSystemZAsmParser -lLLVMSystemZDesc 
-lLLVMSystemZInfo -lLLVMSystemZAsmPrinter 
-lLLVMHexagonDisassembler -lLLVMHexagonCodeGen -lLLVMHexagonDesc 
-lLLVMHexagonInfo -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc 
-lLLVMNVPTXInfo -lLLVMNVPTXAsmPrinter -lLLVMCppBackendCodeGen 
-lLLVMCppBackendInfo -lLLVMMSP430CodeGen -lLLVMMSP430Desc 
-lLLVMMSP430Info -lLLVMMSP430AsmPrinter -lLLVMXCoreDisassembler 
-lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo 
-lLLVMXCoreAsmPrinter -lLLVMMipsDisassembler -lLLVMMipsCodeGen 
-lLLVMMipsAsmParser -lLLVMMipsDesc -lLLVMMipsInfo 
-lLLVMMipsAsmPrinter -lLLVMAArch64Disassembler 
-lLLVMAArch64CodeGen -lLLVMAArch64AsmParser -lLLVMAArch64Desc 
-lLLVMAArch64Info -lLLVMAArch64AsmPrinter -lLLVMAArch64Utils 
-lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser 
-lLLVMARMDesc -lLLVMARMInfo -lLLVMARMAsmPrinter 
-lLLVMPowerPCDisassembler -lLLVMPowerPCCodeGen 
-lLLVMPowerPCAsmParser -lLLVMPowerPCDesc -lLLVMPowerPCInfo 
-lLLVMPowerPCAsmPrinter -lLLVMSparcDisassembler 
-lLLVMSparcCodeGen -lLLVMSparcAsmParser -lLLVMSparcDesc 
-lLLVMSparcInfo -lLLVMSparcAsmPrinter -lLLVMX86Disassembler 
-lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG 
-lLLVMAsmPrinter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMProfileData 
-lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis 
-lLLVMTarget -lLLVMX86Desc -lLLVMObject -lLLVMMCParser 
-lLLVMBitReader -lLLVMMCDisassembler -lLLVMX86Info 
-lLLVMX86AsmPrinter -lLLVMMC -lLLVMX86Utils -lLLVMCore 
-lLLVMSupport -L/usr/pkg/lib -lz -lpthread -ledit -lterminfo -lm 
-lpthread -lterminfo -Wl,-rpath,/usr/pkg/lib:
CMakeFiles/ldc2.dir/driver/main.cpp.o: In function `main':
main.cpp:(.text.startup.main+0x146b): undefined reference to 
`Port::stricmp(char const*, char const*)'
main.cpp:(.text.startup.main+0x1c5b): undefined reference to 
`Port::stricmp(char const*, char const*)'
lib/libldc.a(builtin.c.o): In function `eval_sqrt(Loc, 
FuncDeclaration*, Array<Expression*>*)':


It looks like problem with dmd2/root/port.c 
CMakeFiles/LDCShared.dir/dmd2/root/port.c.o is not included into 
CMakeFiles/ldc2.dir/link.txt

Also I can not find any symbols inside port.c.o file

Can somebody give advice how to resolve this problem?






More information about the digitalmars-d-ldc mailing list