Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fail #5

Closed
bioinfornatics opened this issue Sep 19, 2011 · 1 comment
Closed

Build fail #5

bioinfornatics opened this issue Sep 19, 2011 · 1 comment

Comments

@bioinfornatics
Copy link
Contributor

when i try to build ldc from latest revision this error appear

Linking CXX executable bin/ldc2
/usr/bin/cmake -E cmake_link_script CMakeFiles/ldc2.dir/link.txt --verbose=2
/usr/bin/c++   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic     CMakeFiles/ldc2.dir/dmd2/id.c.o CMakeFiles/ldc2.dir/dmd2/impcnvtab.c.o CMakeFiles/ldc2.dir/dmd2/init.c.o CMakeFiles/ldc2.dir/dmd2/intrange.c.o CMakeFiles/ldc2.dir/dmd2/inline.c.o CMakeFiles/ldc2.dir/dmd2/optimize.c.o CMakeFiles/ldc2.dir/dmd2/html.c.o CMakeFiles/ldc2.dir/dmd2/staticassert.c.o CMakeFiles/ldc2.dir/dmd2/dump.c.o CMakeFiles/ldc2.dir/dmd2/root/array.c.o CMakeFiles/ldc2.dir/dmd2/root/stringtable.c.o CMakeFiles/ldc2.dir/dmd2/root/lstring.c.o CMakeFiles/ldc2.dir/dmd2/root/gnuc.c.o CMakeFiles/ldc2.dir/dmd2/root/dchar.c.o CMakeFiles/ldc2.dir/dmd2/root/root.c.o CMakeFiles/ldc2.dir/dmd2/root/port.c.o CMakeFiles/ldc2.dir/dmd2/root/speller.c.o CMakeFiles/ldc2.dir/dmd2/root/aav.c.o CMakeFiles/ldc2.dir/dmd2/root/man.c.o CMakeFiles/ldc2.dir/dmd2/root/response.c.o CMakeFiles/ldc2.dir/dmd2/root/async.c.o CMakeFiles/ldc2.dir/dmd2/cppmangle.c.o CMakeFiles/ldc2.dir/dmd2/inifile.c.o CMakeFiles/ldc2.dir/dmd2/mtype.c.o CMakeFiles/ldc2.dir/dmd2/scope.c.o CMakeFiles/ldc2.dir/dmd2/argtypes.c.o CMakeFiles/ldc2.dir/dmd2/clone.c.o CMakeFiles/ldc2.dir/dmd2/irstate.c.o CMakeFiles/ldc2.dir/dmd2/unittests.c.o CMakeFiles/ldc2.dir/dmd2/access.c.o CMakeFiles/ldc2.dir/dmd2/expression.c.o CMakeFiles/ldc2.dir/dmd2/aliasthis.c.o CMakeFiles/ldc2.dir/dmd2/version.c.o CMakeFiles/ldc2.dir/dmd2/struct.c.o CMakeFiles/ldc2.dir/dmd2/arrayop.c.o CMakeFiles/ldc2.dir/dmd2/declaration.c.o CMakeFiles/ldc2.dir/dmd2/unialpha.c.o CMakeFiles/ldc2.dir/dmd2/dsymbol.c.o CMakeFiles/ldc2.dir/dmd2/cond.c.o CMakeFiles/ldc2.dir/dmd2/imphint.c.o CMakeFiles/ldc2.dir/dmd2/opover.c.o CMakeFiles/ldc2.dir/dmd2/lexer.c.o CMakeFiles/ldc2.dir/dmd2/doc.c.o CMakeFiles/ldc2.dir/dmd2/attrib.c.o CMakeFiles/ldc2.dir/dmd2/identifier.c.o CMakeFiles/ldc2.dir/dmd2/entity.c.o CMakeFiles/ldc2.dir/dmd2/cast.c.o CMakeFiles/ldc2.dir/dmd2/macro.c.o CMakeFiles/ldc2.dir/dmd2/mem.c.o CMakeFiles/ldc2.dir/dmd2/template.c.o CMakeFiles/ldc2.dir/dmd2/mars.c.o CMakeFiles/ldc2.dir/dmd2/import.c.o CMakeFiles/ldc2.dir/dmd2/func.c.o CMakeFiles/ldc2.dir/dmd2/json.c.o CMakeFiles/ldc2.dir/dmd2/mangle.c.o CMakeFiles/ldc2.dir/dmd2/class.c.o CMakeFiles/ldc2.dir/dmd2/interpret.c.o CMakeFiles/ldc2.dir/dmd2/delegatize.c.o CMakeFiles/ldc2.dir/dmd2/statement.c.o CMakeFiles/ldc2.dir/dmd2/constfold.c.o CMakeFiles/ldc2.dir/dmd2/builtin.c.o CMakeFiles/ldc2.dir/dmd2/traits.c.o CMakeFiles/ldc2.dir/dmd2/parse.c.o CMakeFiles/ldc2.dir/dmd2/enum.c.o CMakeFiles/ldc2.dir/dmd2/hdrgen.c.o CMakeFiles/ldc2.dir/dmd2/module.c.o CMakeFiles/ldc2.dir/dmd2/utf.c.o CMakeFiles/ldc2.dir/gen/statements.cpp.o CMakeFiles/ldc2.dir/gen/toir.cpp.o CMakeFiles/ldc2.dir/gen/warnings.cpp.o CMakeFiles/ldc2.dir/gen/tocall.cpp.o CMakeFiles/ldc2.dir/gen/linkage.cpp.o CMakeFiles/ldc2.dir/gen/main.cpp.o CMakeFiles/ldc2.dir/gen/logger.cpp.o CMakeFiles/ldc2.dir/gen/abi-x86-64.cpp.o CMakeFiles/ldc2.dir/gen/nested.cpp.o CMakeFiles/ldc2.dir/gen/abi.cpp.o CMakeFiles/ldc2.dir/gen/declarations.cpp.o CMakeFiles/ldc2.dir/gen/rttibuilder.cpp.o CMakeFiles/ldc2.dir/gen/programs.cpp.o CMakeFiles/ldc2.dir/gen/cl_helpers.cpp.o CMakeFiles/ldc2.dir/gen/todebug.cpp.o CMakeFiles/ldc2.dir/gen/configfile.cpp.o CMakeFiles/ldc2.dir/gen/structs.cpp.o CMakeFiles/ldc2.dir/gen/dvalue.cpp.o CMakeFiles/ldc2.dir/gen/toobj.cpp.o CMakeFiles/ldc2.dir/gen/typinf.cpp.o CMakeFiles/ldc2.dir/gen/asmstmt.cpp.o CMakeFiles/ldc2.dir/gen/llvmhelpers.cpp.o CMakeFiles/ldc2.dir/gen/irstate.cpp.o CMakeFiles/ldc2.dir/gen/aa.cpp.o CMakeFiles/ldc2.dir/gen/linker.cpp.o CMakeFiles/ldc2.dir/gen/binops.cpp.o CMakeFiles/ldc2.dir/gen/optimizer.cpp.o CMakeFiles/ldc2.dir/gen/classes.cpp.o CMakeFiles/ldc2.dir/gen/passes/GarbageCollect2Stack.cpp.o CMakeFiles/ldc2.dir/gen/passes/StripExternals.cpp.o CMakeFiles/ldc2.dir/gen/passes/SimplifyDRuntimeCalls.cpp.o CMakeFiles/ldc2.dir/gen/complex.cpp.o CMakeFiles/ldc2.dir/gen/tollvm.cpp.o CMakeFiles/ldc2.dir/gen/arrays.cpp.o CMakeFiles/ldc2.dir/gen/runtime.cpp.o CMakeFiles/ldc2.dir/gen/cl_options.cpp.o CMakeFiles/ldc2.dir/gen/functions.cpp.o CMakeFiles/ldc2.dir/gen/naked.cpp.o CMakeFiles/ldc2.dir/ir/irclass.cpp.o CMakeFiles/ldc2.dir/ir/irtype.cpp.o CMakeFiles/ldc2.dir/ir/irtypefunction.cpp.o CMakeFiles/ldc2.dir/ir/irmodule.cpp.o CMakeFiles/ldc2.dir/ir/irfunction.cpp.o CMakeFiles/ldc2.dir/ir/irstruct.cpp.o CMakeFiles/ldc2.dir/ir/irtypeclass.cpp.o CMakeFiles/ldc2.dir/ir/ir.cpp.o CMakeFiles/ldc2.dir/ir/irvar.cpp.o CMakeFiles/ldc2.dir/ir/irtypestruct.cpp.o CMakeFiles/ldc2.dir/ir/irsymbol.cpp.o CMakeFiles/ldc2.dir/ir/irdsymbol.cpp.o CMakeFiles/ldc2.dir/ir/irlandingpad.cpp.o  -o bin/ldc2 -rdynamic -L/usr/lib64/llvm  -lpthread -lffi -ldl -lm /usr/lib64/llvm/libLLVMX86Disassembler.a /usr/lib64/llvm/libLLVMX86AsmParser.a /usr/lib64/llvm/libLLVMX86CodeGen.a /usr/lib64/llvm/libLLVMSelectionDAG.a /usr/lib64/llvm/libLLVMAsmPrinter.a /usr/lib64/llvm/libLLVMMCParser.a /usr/lib64/llvm/libLLVMCodeGen.a /usr/lib64/llvm/libLLVMX86AsmPrinter.a /usr/lib64/llvm/libLLVMX86Utils.a /usr/lib64/llvm/libLLVMX86Info.a /usr/lib64/llvm/libLLVMInstrumentation.a /usr/lib64/llvm/libLLVMipo.a /usr/lib64/llvm/libLLVMScalarOpts.a /usr/lib64/llvm/libLLVMInstCombine.a /usr/lib64/llvm/libLLVMLinker.a /usr/lib64/llvm/libLLVMTransformUtils.a /usr/lib64/llvm/libLLVMipa.a /usr/lib64/llvm/libLLVMAnalysis.a /usr/lib64/llvm/libLLVMTarget.a /usr/lib64/llvm/libLLVMMC.a /usr/lib64/llvm/libLLVMArchive.a /usr/lib64/llvm/libLLVMBitReader.a /usr/lib64/llvm/libLLVMBitWriter.a /usr/lib64/llvm/libLLVMCore.a /usr/lib64/llvm/libLLVMSupport.a -lconfig++ -lconfig++ 
`.text._ZN4llvm13RGPassManagerD2Ev' referenced in section `.text._ZN4llvm13RGPassManagerD1Ev[non-virtual thunk to llvm::RGPassManager::~RGPassManager()]' of /usr/lib64/llvm/libLLVMAnalysis.a(RegionPass.o): defined in discarded section `.text._ZN4llvm13RGPassManagerD2Ev[_ZN4llvm13RGPassManagerD5Ev]' of /usr/lib64/llvm/libLLVMAnalysis.a(RegionPass.o)
collect2: ld returned 1 exit status
make[3]: *** [bin/ldc2] Error 1
@bioinfornatics
Copy link
Contributor Author

So i have found a problem with current build,
On my system lib 64 are in /usr/lib64 not in /usr/lib,: so build fail. It will be a good thing to add a search lib path.
c++: error: /usr/lib/libLLVMX86Disassembler.a: No such file or directory

$ locate libLLVMX86Disassembler.a
/usr/lib64/llvm/libLLVMX86Disassembler.a

dnadlinger added a commit that referenced this issue Sep 27, 2014
Moved .di files from import/ldc to src/ldc
Robertorosmaninho referenced this issue in Robertorosmaninho/ldc Feb 7, 2020
Robertorosmaninho referenced this issue in Robertorosmaninho/ldc Feb 12, 2020
MLIR: #2 CMake - Adding FindMLIR.cmake
MLIR: #3 CMake - Updating FindMLIR
MLIR: #4 CMake - Updating Path 
MLIR: #5 CMake - Adding MLIRLibs
MLIR: #6 CMake - Supporting Dialect on FindMLIR
MLIR: #7 CMake - Adding Message of Ops.ts
MLIR: ldc-developers#8 CMake - Removing duplicated messages
MLIR: ldc-developers#9 CMake: Updating paths and setting libs
MLIR: ldc-developers#10 CMake - Removing duplicated MLIR Headers
Make MLIR optional, use MLIR_LIBRARIES
Robertorosmaninho referenced this issue in Robertorosmaninho/ldc Feb 15, 2020
MLIR: #1 Introduce MLIRGen - The main component to translation
MLIR: #2 Introduce MLIRGen - Recoganize the BinOps and Translations of it 
MLIR: #3 Code Refactorig - Introducing MLIRStatement and MLIRDeclaration
MLIR: #4 Doing de code generation of a function body on the right way using func->fbody instead of vectors of statements
MLIR: #5 Add function calls support and add static declaration of arrays support -> one-dimensional tensors
MLIR: #6 Add #ifdef to compile MLIR files only if LDC_MLIR_ENABLED is ON
MLIR: #7 Modifications on TensorType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant