Skip to content

Undefined symbols for architecture x86_64 on MAC OS #2703

@patrickkh7788

Description

@patrickkh7788

I just want build ldc2 , not every thing.

make ldc2 -J4 VERBOSE=1

Undefined symbols for architecture x86_64:
  "pruneCache(char const*, unsigned long, unsigned int, unsigned int, unsigned long, unsigned int)", referenced from:
      cache::pruneCache() in libldc.a(cache.cpp.o)
  "createIntegerExp(Loc const&, unsigned long, Type*)", referenced from:
      AsmParserx8632::AsmProcessor::parsePrimaryExp() in libldc.a(asmstmt.cpp.o)
      AsmParserx8632::AsmProcessor::newIntExp(int) in libldc.a(asmstmt.cpp.o)
      AsmParserx8664::AsmProcessor::parsePrimaryExp() in libldc.a(asmstmt.cpp.o)
      AsmParserx8664::AsmProcessor::newIntExp(long long) in libldc.a(asmstmt.cpp.o)
      Target::paintAsType(Expression*, Type*) in libldc.a(target.cpp.o)
  "createIntegerExp(unsigned long)", referenced from:
      AsmParserx8632::AsmProcessor::newRegExp(int) in libldc.a(asmstmt.cpp.o)
      AsmParserx8664::AsmProcessor::newRegExp(int) in libldc.a(asmstmt.cpp.o)
  "Identifier::idPool(char const*, unsigned long)", referenced from:
      AsmParserx8632::AsmProcessor::AsmProcessor(Scope*, AsmStatement*) in libldc.a(asmstmt.cpp.o)
      AsmParserx8664::AsmProcessor::AsmProcessor(Scope*, AsmStatement*) in libldc.a(asmstmt.cpp.o)
      ArmTargetABI::vaListType() in libldc.a(abi-arm.cpp.o)
      X86_64TargetABI::vaListType() in libldc.a(abi-x86-64.cpp.o)
      AArch64TargetABI::vaListType() in libldc.a(abi-aarch64.cpp.o)
  "TypeFunction::create(Array<Parameter*>*, Type*, int, LINK, unsigned long)", referenced from:
      (anonymous namespace)::LazyFunctionDeclarer::declare(Loc const&) in libldc.a(runtime.cpp.o)
      rt_dg1() in libldc.a(runtime.cpp.o)
      rt_dg2() in libldc.a(runtime.cpp.o)
      DtoFunctionType(Type*, IrFuncTy&, Type*, Type*, bool, bool, bool, bool) in libldc.a(functions.cpp.o)
  "FuncDeclaration::genCfunc(Array<Parameter*>*, Type*, char const*, unsigned long)", referenced from:
      TryCatchScope::emitCatchBodies(IRState&, llvm::Value*) in libldc.a(trycatchfinally.cpp.o)
  "Mem::xmalloc(unsigned long)", referenced from:
      Array<Expression*>::reserve(unsigned long) in libldc.a(asmstmt.cpp.o)
      StringExp::toStringz() const in libldc.a(pragma.cpp.o)
      Array<char const*>::reserve(unsigned long) in libldc.a(main.cpp.o)
      CodegenVisitor::visit(PragmaDeclaration*) in libldc.a(declarations.cpp.o)
      Array<char const*>::reserve(unsigned long) in libldc.a(declarations.cpp.o)
      Array<unsigned long>::reserve(unsigned long) in libldc.a(modules.cpp.o)
      StringExp::toStringz() const in libldc.a(uda.cpp.o)
      ...
  "Mem::xrealloc(void*, unsigned long)", referenced from:
      Array<Expression*>::reserve(unsigned long) in libldc.a(asmstmt.cpp.o)
      Array<char const*>::reserve(unsigned long) in libldc.a(main.cpp.o)
      Array<char const*>::reserve(unsigned long) in libldc.a(declarations.cpp.o)
      Array<unsigned long>::reserve(unsigned long) in libldc.a(modules.cpp.o)
      Array<Parameter*>::reserve(unsigned long) in libldc.a(runtime.cpp.o)
      Array<char const*>::reserve(unsigned long) in libldc.a(cl_helpers.cpp.o)
      Array<VarDeclaration*>::reserve(unsigned long) in libldc.a(abi.cpp.o)
      ...
  "OutBuffer::write(void const*, unsigned long)", referenced from:
      IrAggr::getClassInfoSymbol() in libldc.a(irclass.cpp.o)
      IrAggr::defineInterfaceVtbl(BaseClass*, bool, unsigned long) in libldc.a(irclass.cpp.o)
  "Parameter::create(unsigned long, Type*, Identifier*, Expression*)", referenced from:
      (anonymous namespace)::LazyFunctionDeclarer::declare(Loc const&) in libldc.a(runtime.cpp.o)
      rt_dg1() in libldc.a(runtime.cpp.o)
      rt_dg2() in libldc.a(runtime.cpp.o)
  "Parameter::getNth(Array<Parameter*>*, unsigned long, unsigned long*)", referenced from:
      addExplicitArguments(std::__1::vector<llvm::Value*, std::__1::allocator<llvm::Value*> >&, AttrSet&, IrFuncTy&, llvm::FunctionType*, Array<Expression*>&, Array<Parameter*>*) in libldc.a(tocall.cpp.o)
      DtoFunctionType(Type*, IrFuncTy&, Type*, Type*, bool, bool, bool, bool) in libldc.a(functions.cpp.o)
  "StringExp::charAt(unsigned long) const", referenced from:
      buildStringLiteralConstant(StringExp*, bool) in libldc.a(llvmhelpers.cpp.o)
ld: symbol(s) not found for architecture x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions