[cfe-dev] build clang failed under MSYS (windows)

asmwarrior asmwarrior at gmail.com
Wed Dec 8 18:22:37 PST 2010


hi, all.

Today, I just update the llvm and clang trunk to the latest version (rev 
121337).

I'm trying to build clang again under MSYS and Windows. Since it works 
OK several weeks ago.

Here is the steps:

cd build
../llvm/configure
make ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1

Now, in the final stage, build failed. see the log:

---------------------------------------------------------------------



make[4]: Entering directory `/e/svn_llvm/build/tools/clang/lib/Frontend'
llvm[4]: Compiling ASTConsumers.cpp for Release build
llvm[4]: Compiling ASTMerge.cpp for Release build
llvm[4]: Compiling ASTUnit.cpp for Release build
llvm[4]: Compiling BoostConAction.cpp for Release build
llvm[4]: Compiling CacheTokens.cpp for Release build
llvm[4]: Compiling CompilerInstance.cpp for Release build
llvm[4]: Compiling CompilerInvocation.cpp for Release build
llvm[4]: Compiling DeclXML.cpp for Release build
llvm[4]: Compiling DependencyFile.cpp for Release build
llvm[4]: Compiling DiagChecker.cpp for Release build
llvm[4]: Compiling DocumentXML.cpp for Release build
llvm[4]: Compiling FrontendAction.cpp for Release build
llvm[4]: Compiling FrontendActions.cpp for Release build
llvm[4]: Compiling FrontendOptions.cpp for Release build
llvm[4]: Compiling InitHeaderSearch.cpp for Release build
llvm[4]: Compiling InitPreprocessor.cpp for Release build
llvm[4]: Compiling LangStandards.cpp for Release build
llvm[4]: Compiling PrintPreprocessedOutput.cpp for Release build
llvm[4]: Compiling StmtXML.cpp for Release build
llvm[4]: Compiling TextDiagnosticBuffer.cpp for Release build
llvm[4]: Compiling TextDiagnosticPrinter.cpp for Release build
llvm[4]: Compiling TypeXML.cpp for Release build
llvm[4]: Compiling VerifyDiagnosticsClient.cpp for Release build
llvm[4]: Compiling Warnings.cpp for Release build
llvm[4]: Building Release Archive Library libclangFrontend.a
make[4]: Leaving directory `/e/svn_llvm/build/tools/clang/lib/Frontend'
make[4]: Entering directory `/e/svn_llvm/build/tools/clang/lib/FrontendTool'
llvm[4]: Compiling ExecuteCompilerInvocation.cpp for Release build
llvm[4]: Building Release Archive Library libclangFrontendTool.a
make[4]: Leaving directory `/e/svn_llvm/build/tools/clang/lib/FrontendTool'
make[4]: Entering directory `/e/svn_llvm/build/tools/clang/lib/Index'
llvm[4]: Compiling ASTLocation.cpp for Release build
llvm[4]: Compiling Analyzer.cpp for Release build
llvm[4]: Compiling CallGraph.cpp for Release build
llvm[4]: Compiling DeclReferenceMap.cpp for Release build
llvm[4]: Compiling Entity.cpp for Release build
llvm[4]: Compiling GlobalSelector.cpp for Release build
llvm[4]: Compiling Handlers.cpp for Release build
llvm[4]: Compiling IndexProvider.cpp for Release build
llvm[4]: Compiling Indexer.cpp for Release build
llvm[4]: Compiling Program.cpp for Release build
llvm[4]: Compiling SelectorMap.cpp for Release build
llvm[4]: Building Release Archive Library libclangIndex.a
make[4]: Leaving directory `/e/svn_llvm/build/tools/clang/lib/Index'
make[4]: Entering directory `/e/svn_llvm/build/tools/clang/lib/Driver'
llvm[4]: Compiling Action.cpp for Release build
llvm[4]: Compiling Arg.cpp for Release build
llvm[4]: Compiling ArgList.cpp for Release build
llvm[4]: Compiling CC1AsOptions.cpp for Release build
llvm[4]: Compiling CC1Options.cpp for Release build
llvm[4]: Compiling Compilation.cpp for Release build
llvm[4]: Compiling Driver.cpp for Release build
llvm[4]: Compiling DriverOptions.cpp for Release build
llvm[4]: Compiling HostInfo.cpp for Release build
llvm[4]: Compiling Job.cpp for Release build
llvm[4]: Compiling OptTable.cpp for Release build
llvm[4]: Compiling Option.cpp for Release build
llvm[4]: Compiling Phases.cpp for Release build
llvm[4]: Compiling Tool.cpp for Release build
llvm[4]: Compiling ToolChain.cpp for Release build
llvm[4]: Compiling ToolChains.cpp for Release build
llvm[4]: Compiling Tools.cpp for Release build
llvm[4]: Compiling Types.cpp for Release build
llvm[4]: Building Release Archive Library libclangDriver.a
make[4]: Leaving directory `/e/svn_llvm/build/tools/clang/lib/Driver'
make[3]: Leaving directory `/e/svn_llvm/build/tools/clang/lib'
make[3]: Entering directory `/e/svn_llvm/build/tools/clang/tools'
make[4]: Entering directory `/e/svn_llvm/build/tools/clang/tools/driver'
llvm[4]: Compiling cc1_main.cpp for Release build
llvm[4]: Compiling cc1as_main.cpp for Release build
llvm[4]: Compiling driver.cpp for Release build
llvm[4]: Linking Release executable clang (without symbols)
llvm[4]: ======= Finished Linking Release Executable clang (without symbols)
llvm[4]: Creating Release Alias clang++ (without symbols)
llvm[4]: ======= Finished Creating Release Alias clang++ (without symbols)
make[4]: Leaving directory `/e/svn_llvm/build/tools/clang/tools/driver'
make[4]: Entering directory `/e/svn_llvm/build/tools/clang/tools/libclang'
llvm[4]: Compiling CIndex.cpp for Release build (PIC)
llvm[4]: Compiling CIndexCXX.cpp for Release build (PIC)
llvm[4]: Compiling CIndexCodeCompletion.cpp for Release build (PIC)
llvm[4]: Compiling CIndexDiagnostic.cpp for Release build (PIC)
llvm[4]: Compiling CIndexInclusionStack.cpp for Release build (PIC)
llvm[4]: Compiling CIndexUSRs.cpp for Release build (PIC)
llvm[4]: Compiling CIndexer.cpp for Release build (PIC)
llvm[4]: Compiling CXCursor.cpp for Release build (PIC)
llvm[4]: Compiling CXString.cpp for Release build (PIC)
llvm[4]: Compiling CXType.cpp for Release build (PIC)
llvm[4]: Generating libclang.def
llvm[4]: Linking Release Shared Library clang.dll
Cannot export clang_CXCursorSet_insert: symbol not defined
collect2: ld returned 1 exit status
make[4]: *** [/e/svn_llvm/build/Release/bin/clang.dll] Error 1
make[4]: Leaving directory `/e/svn_llvm/build/tools/clang/tools/libclang'
make[3]: *** [all] Error 1
make[3]: Leaving directory `/e/svn_llvm/build/tools/clang/tools'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/e/svn_llvm/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/e/svn_llvm/build/tools'
make: *** [all] Error 1
-----------------------------------------------------------------------------------------


it seems under the folder:
E:\svn_llvm\build\Release\bin

clang.exe and clang++.exe was already there, but there is no file named 
"clang.dll"

can some one fix this problem?

thanks.

asmwarrior
ollydbg from Codeblocks' forum




More information about the cfe-dev mailing list