[PATCH] D104305: [flang][driver] Add `-fdebug-dump-all`
Pete Steinfeld via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 15 10:28:00 PDT 2021
PeteSteinfeld added a comment.
Thanks for doing this. These changes look good, but I can't get them to build successfully. I'm using the GNU 9.3 C++ compiler. My build fails to link the bin/flang-new executable. Here's an excerpt of the error messages:
[4436/4439] Generating ../../../../include/flang/iso_fortran_env.f18.mod
[4437/4439] Linking CXX executable bin/flang-new
FAILED: bin/flang-new
: && /home/sw/thirdparty/gcc/gcc-9.3.0/linux86-64/bin/g++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Werror -Wno-deprecated-copy -fno-strict-aliasing -fno-semantic-interposition -O3 -DNDEBUG -Wl,-rpath,/home/sw/thirdparty/gcc/gcc-9.3.0/linux86-64/lib64:/usr/local/lib:/home/sw/envmod/modules/linux86-64/latest/lib: -Wl,-rpath-link,/local/home/psteinfeld/main/tot/build/./lib -Wl,-O3 -Wl,--gc-sections tools/flang/tools/flang-driver/CMakeFiles/flang-new.dir/driver.cpp.o tools/flang/tools/flang-driver/CMakeFiles/flang-new.dir/fc1_main.cpp.o -o bin/flang-new -L/local/home/psteinfeld/main/tot/build/./lib -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMX86CodeGen.a lib/libLLVMX86AsmParser.a lib/libLLVMX86Desc.a lib/libLLVMX86Disassembler.a lib/libLLVMX86Info.a lib/libLLVMOption.a lib/libLLVMSupport.a -lpthread lib/libflangFrontend.a lib/libflangFrontendTool.a lib/libclangDriver.a lib/libclangBasic.a lib/libLLVMGlobalISel.a lib/libLLVMSelectionDAG.a lib/libLLVMCFGuard.a lib/libLLVMMCDisassembler.a lib/libflangFrontend.a lib/libFortranLower.a lib/libFortranSemantics.a lib/libFortranEvaluate.a lib/libFortranParser.a lib/libFortranDecimal.a lib/libFortranCommon.a lib/libFIROptimizer.a lib/libLLVMAsmPrinter.a lib/libLLVMCodeGen.a lib/libLLVMScalarOpts.a lib/libLLVMAggressiveInstCombine.a lib/libLLVMInstCombine.a lib/libLLVMTarget.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMDebugInfoMSF.a lib/libMLIRAffineTransforms.a lib/libMLIRAsyncTransforms.a lib/libMLIRGPU.a lib/libMLIRAsync.a lib/libMLIRDLTI.a lib/libMLIRLLVMToLLVMIRTranslation.a lib/libMLIRNVVMIR.a lib/libMLIRROCDLIR.a lib/libMLIRVectorToLLVM.a lib/libMLIRArmNeon.a lib/libMLIRArmSVETransforms.a lib/libMLIRArmSVE.a lib/libMLIRAMXTransforms.a lib/libMLIRAMX.a lib/libMLIRTargetLLVMIRExport.a lib/libMLIRLLVMIRTransforms.a lib/libMLIRTranslation.a lib/libMLIRMathTransforms.a lib/libMLIRMemRefTransforms.a lib/libMLIROpenACC.a lib/libMLIROpenMP.a lib/libMLIRSDBM.a lib/libMLIRShapeOpsTransforms.a lib/libMLIRShape.a lib/libMLIRSparseTensorTransforms.a lib/libMLIRLinalgTransforms.a lib/libMLIRComplex.a lib/libMLIRLinalgAnalysis.a lib/libMLIRLinalgUtils.a lib/libMLIRSCFTransforms.a lib/libMLIRVectorToSCF.a lib/libMLIRSparseTensor.a lib/libMLIRSPIRVModuleCombiner.a lib/libMLIRSPIRVTransforms.a lib/libMLIRSPIRVConversion.a lib/libMLIRSPIRVUtils.a lib/libMLIRSPIRV.a lib/libMLIRStandardOpsTransforms.a lib/libMLIRTensorTransforms.a lib/libMLIRTosaTransforms.a lib/libMLIRX86VectorTransforms.a lib/libMLIRX86Vector.a lib/libMLIRStandardToLLVM.a lib/libMLIRLLVMIR.a lib/libLLVMBitWriter.a lib/libLLVMAsmParser.a lib/libMLIRMath.a lib/libMLIRTosaTestPasses.a lib/libMLIRTosa.a lib/libMLIRQuant.a lib/libMLIRAffineToStandard.a lib/libMLIRSCFToStandard.a lib/libMLIRTransforms.a lib/libMLIRVector.a lib/libMLIRAffineUtils.a lib/libMLIRTransformUtils.a lib/libMLIRLoopAnalysis.a lib/libMLIRPresburger.a lib/libMLIRRewrite.a lib/libMLIRPDLToPDLInterp.a lib/libMLIRPDLInterp.a lib/libMLIRPDL.a lib/libMLIRPass.a lib/libMLIRAnalysis.a lib/libMLIRLinalg.a lib/libMLIRAffine.a lib/libMLIRDialectUtils.a lib/libMLIRParser.a lib/libMLIRSCF.a lib/libMLIRMemRef.a lib/libMLIRMemRefUtils.a lib/libMLIRDialect.a lib/libMLIRStandard.a lib/libMLIRTensor.a lib/libMLIRViewLikeInterface.a lib/libMLIRCastInterfaces.a lib/libMLIRVectorInterfaces.a lib/libMLIRLoopLikeInterface.a lib/libMLIRSideEffectInterfaces.a lib/libMLIRDataLayoutInterfaces.a lib/libMLIRInferTypeOpInterface.a lib/libMLIRCallInterfaces.a lib/libMLIRControlFlowInterfaces.a lib/libMLIRCopyOpInterface.a lib/libMLIRIR.a lib/libMLIRSupport.a lib/libLLVMFrontendOpenACC.a lib/libLLVMFrontendOpenMP.a lib/libLLVMTransformUtils.a lib/libLLVMAnalysis.a lib/libLLVMObject.a lib/libLLVMMCParser.a lib/libLLVMMC.a lib/libLLVMDebugInfoCodeView.a lib/libLLVMBitReader.a lib/libLLVMTextAPI.a lib/libclangDriver.a lib/libLLVMOption.a lib/libLLVMProfileData.a lib/libLLVMCore.a lib/libLLVMRemarks.a lib/libLLVMBitstreamReader.a lib/libLLVMBinaryFormat.a lib/libclangBasic.a lib/libLLVMSupport.a -lrt -ldl -lpthread -lm /usr/lib64/libtinfo.so lib/libLLVMDemangle.a && :
lib/libflangFrontendTool.a(ExecuteCompilerInvocation.cpp.o): In function `Fortran::frontend::CreateFrontendBaseAction(Fortran::frontend::CompilerInstance&)':
ExecuteCompilerInvocation.cpp:(.text._ZN7Fortran8frontendL24CreateFrontendBaseActionERNS0_16CompilerInstanceE+0x35d): undefined reference to `vtable for Fortran::frontend::DebugDumpAllAction'
collect2: error: ld returned 1 exit status
[4438/4439] Generating ../../../../include/flang/ieee_arithmetic.mod
ninja: build stopped: subcommand failed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104305/new/
https://reviews.llvm.org/D104305
More information about the cfe-commits
mailing list