[LLVMdev] _gt_ggc_r_gt_darwin_c_h undefined
Duncan Sands
baldrick at free.fr
Sun Apr 4 20:11:41 PDT 2010
Hi Jack,
> While attempting to build llvm-gcc-4.2 from llvm-2.7 release
> branch, I am finding that the build fails at...
Fortran is known not to build on darwin. The same problem occurs when trying to
build Ada there. It would be nice to solve this.
>
> c++ -g -O2 -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -mdynamic-no-pic -DHAVE_CONFIG_H -o f951 \
> fortran/arith.o fortran/array.o fortran/bbt.o fortran/check.o fortran/data.o fortran/decl.o fortran/dump-parse-tree.o fortran/error.o fortran/expr.o fortran/interface.o fortran/intrinsic.o fortran/io.o fortran/iresolve.o fortran/match.o fortran/matchexp.o fortran/misc.o fortran/module.o fortran/openmp.o fortran/options.o fortran/parse.o fortran/primary.o fortran/resolve.o fortran/scanner.o fortran/simplify.o fortran/st.o fortran/symbol.o fortran/convert.o fortran/dependency.o fortran/f95-lang.o fortran/trans.o fortran/trans-array.o fortran/trans-common.o fortran/trans-const.o fortran/trans-decl.o fortran/trans-expr.o fortran/trans-intrinsic.o fortran/trans-io.o fortran/trans-openmp.o fortran/trans-stmt.o fortran/trans-types.o llvm-main.o libbackend.a ../libcpp/libcpp.a /sw/lib/llvm/lib/libLLVMBitReader.a /sw/lib/llvm/lib/libLLVMipo.a /sw/lib/llvm/lib/libLLVMBitWriter.a /sw/lib/llvm/lib/libLLVMX86Disassembler.a /sw/lib/llvm/lib/libLLVMX86AsmParser.a /sw/lib/llvm/lib/libLL
V!
> MMCParser.a /sw/lib/llvm/lib/libLLVMX86AsmPrinter.a /sw/lib/llvm/lib/libLLVMX86CodeGen.a /sw/lib/llvm/lib/libLLVMSelectionDAG.a /sw/lib/llvm/lib/libLLVMAsmPrinter.a /sw/lib/llvm/lib/libLLVMCodeGen.a /sw/lib/llvm/lib/libLLVMScalarOpts.a /sw/lib/llvm/lib/libLLVMInstCombine.a /sw/lib/llvm/lib/libLLVMTransformUtils.a /sw/lib/llvm/lib/libLLVMipa.a /sw/lib/llvm/lib/libLLVMAnalysis.a /sw/lib/llvm/lib/libLLVMTarget.a /sw/lib/llvm/lib/libLLVMMC.a /sw/lib/llvm/lib/libLLVMCore.a /sw/lib/llvm/lib/libLLVMX86Info.a /sw/lib/llvm/lib/libLLVMSupport.a /sw/lib/llvm/lib/libLLVMSystem.a attribs.o stub-objc.o stub-c.o -L/sw/lib -lmpfr -lgmp ../libcpp/libcpp.a -lintl -L/sw/lib -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/sw/lib/llvm/lib -lpthread -lm
> Undefined symbols:
> "_gt_ggc_r_gt_darwin_c_h", referenced from:
> _gt_ggc_rtab in f95-lang.o
This is a garbage collector symbol. I suggest you try to discover which object
file defines this (if any...). It would then be a matter of tweaking the build
to link with this object. If no object file defines it, then that's a clue too.
Ciao,
Duncan.
More information about the llvm-dev
mailing list