Hi Anton, But if I'm ignoring this warning and continue according to the instructions (i.e. copy back the saved tblgen and perform build as usual), then I get a LOT of linkage errors regarding undefined symbols. For instance, smWriterEmitter.cpp:(.text+0x21): undefined reference to `_ZNSs6assignERKSs' AsmWriterEmitter.cpp:(.text+0x39): undefined reference to `_ZNSs6assignERKSs' /homes/aviv/projects/VMP_SDK_llvm1.8_gil/generated-llvm/obj/utils/TableGen/Debug/AsmWriterEmitter.o: In function `_Z41__static_initialization_and_destruction_0ii': AsmWriterEmitter.cpp:(.text+0x70): undefined reference to `_ZNSt8ios_base4InitC1Ev' AsmWriterEmitter.cpp:(.text+0x78): undefined reference to `__dso_handle' AsmWriterEmitter.cpp:(.text+0x8c): undefined reference to `__cxa_atexit' AsmWriterEmitter.cpp:(.text+0x94): undefined reference to `_ZN4llvm19SupportIsInfLinkVarE' AsmWriterEmitter.cpp:(.text+0xa0): undefined reference to `_ZN4llvm11IncludeFileC1EPv' AsmWriterEmitter.cpp:(.text+0xa8): undefined reference to `_ZN4llvm19SupportIsNANLinkVarE' AsmWriterEmitter.cpp:(.text+0xb4): undefined reference to `_ZN4llvm11IncludeFileC1EPv' /homes/aviv/projects/VMP_SDK_llvm1.8_gil/generated-llvm/obj/utils/TableGen/Debug/AsmWriterEmitter.o: In function `_ZNSt4pairISsN138_GLOBAL__N__homes_aviv_projects_VMP_SDK_llvm1.8_gil_generated_llvm_obj_.._.._llvm1.8_utils_TableGen_AsmWriterEmitter.cpp_00000000_4112428B16AsmWriterOperandEEC1ERKS2_': AsmWriterEmitter.cpp:(.text+0x25e): undefined reference to `_ZNSsC1ERKSs' AsmWriterEmitter.cpp:(.text+0x273): undefined reference to `_ZNSsC1ERKSs' AsmWriterEmitter.cpp:(.text+0x28b): undefined reference to `_ZNSsC1ERKSs' AsmWriterEmitter.cpp:(.text+0x2a5): undefined reference to `_ZNSsD1Ev' AsmWriterEmitter.cpp:(.text+0x2ad): undefined reference to `_Unwind_Resume' AsmWriterEmitter.cpp:(.text+0x2b7): undefined reference to `_ZNSsD1Ev' Can you tell what lead to it and how I can avoid it? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081103/b9289b93/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3265 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081103/b9289b93/attachment.bin>
Hi,> AsmWriterEmitter.cpp:(.text+0x78): undefined reference to `__dso_handle' > AsmWriterEmitter.cpp:(.text+0x8c): undefined reference to `__cxa_atexit'This is not connected with that warning. Something is wrong with your compiler / linker. Either it does not provide needed libraries, or broken in other way.> AsmWriterEmitter.cpp:(.text+0x25e): undefined reference to `_ZNSsC1ERKSs'these came from libstdc++> AsmWriterEmitter.cpp:(.text+0x273): undefined reference to `_ZNSsC1ERKSs' > AsmWriterEmitter.cpp:(.text+0x28b): undefined reference to `_ZNSsC1ERKSs' > AsmWriterEmitter.cpp:(.text+0x2a5): undefined reference to `_ZNSsD1Ev' > AsmWriterEmitter.cpp:(.text+0x2ad): undefined reference to `_Unwind_Resume'and this from libgcc -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Hi, I finally gave up building on Linux, in the meantime, and tried to build this version straight on Windows, using mingw32. This is my command line: (running from /c/llvm1.8/generated-llvm/obj) *../../llvm/configure --prefix=/c/llvm1.8/gene* *rated-llvm/install/ --enable-debug-runtime --enable-jit* This is my path definition (it has several redundancies): $ echo $PATH .:/usr/local/bin:/mingw/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program Files/Common Files/Teleca Shared:/mingw:/c/downloads:/c/llvm1.8/generated-llvm/obj/Debug/bin:/c/llvm1.8-mingw32/bin:/c/llvm1.8-frontend/bin:/mingw/bin And this is the error I get while running configure: . . . appending configuration tag CXX to mklib appending configuration tag F77 to mklib checking for llvm-gcc.exe... /c/llvm1.8-mingw32/bin/llvm-gcc.exe checking for llvm-g++.exe... /c/llvm1.8-mingw32/bin/llvm-g++.exe *checking tool compatibility... configure: error: g++|icc required but not found* I searched the file system and couldn't find a file called g++.exe - only gcc.exe (which is located under mingw/bin) and llvm-g++.exe (which is located under llvm1.8-frontend/bin). What seems to be the problem and how can I solve it? guy at MS-WXP-AVIV /c/llvm1.8/generated-llvm/obj Anton Korobeynikov wrote:> Hi, > > >> AsmWriterEmitter.cpp:(.text+0x78): undefined reference to `__dso_handle' >> AsmWriterEmitter.cpp:(.text+0x8c): undefined reference to `__cxa_atexit' >> > This is not connected with that warning. Something is wrong with your > compiler / linker. Either it does not provide needed libraries, or > broken in other way. > > >> AsmWriterEmitter.cpp:(.text+0x25e): undefined reference to `_ZNSsC1ERKSs' >> > these came from libstdc++ > > >> AsmWriterEmitter.cpp:(.text+0x273): undefined reference to `_ZNSsC1ERKSs' >> AsmWriterEmitter.cpp:(.text+0x28b): undefined reference to `_ZNSsC1ERKSs' >> AsmWriterEmitter.cpp:(.text+0x2a5): undefined reference to `_ZNSsD1Ev' >> AsmWriterEmitter.cpp:(.text+0x2ad): undefined reference to `_Unwind_Resume' >> > and this from libgcc > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081104/01be62d3/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3265 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081104/01be62d3/attachment.bin>