[LLVMdev] Link error with TOOLLINKOPTS=-ldbghelp on MinGW
Henrik Bach
henrik_bach_llvm at hotmail.com
Sat Oct 23 09:22:41 PDT 2004
Hi LLVM'ers
When linking tblgen tool I get below error message on MinGW.
I have put TOOLLINKOPTS=-ldbghelp in Makefile.config.
However, when rearranging library dbghelp to the end of the g++
line, tblgen gets linked.
--------------------------
make[2]: Entering directory `/C/Projects/build/MinGW/llvm/utils/TableGen'
Linking Debug executable tblgen
/C/Projects/build/MinGW/llvm/mklib --tag=disable-shared --tag=CXX
--mode=link g++ -I/C/Projects/build/MinGW/llvm/utils/TableGen
-I/C/Projects/build/MinGW/llvm/../../../src/llvm/utils/TableGen
-I/C/Projects/build/MinGW/llvm/../../../src/llvm/include
-I/C/Projects/build/MinGW/llvm/include
-I/C/Projects/build/MinGW/llvm/include
-I/C/Projects/build/MinGW/llvm/../../../src/llvm/include -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__MINGW -Wall -W -Wwrite-strings -Wno-unused -g
-D_DEBUG -rpath /C/Projects/build/MinGW/llvm/tools/Debug -export-dynamic
-ldbghelp -L/C/Projects/build/MinGW/llvm/lib/Debug
-L/C/Projects/build/MinGW/llvm/lib/Debug -o
/C/Projects/build/MinGW/llvm/tools/Debug/tblgen
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/AsmWriterEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeEmitterGen.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeGenTarget.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileLexer.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileParser.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrInfoEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrSelectorEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/Record.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/RegisterInfoEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGen.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGenBackend.o
-lsupport -lLLVMsystem
/C/Projects/build/MinGW/llvm/mklib --tag=disable-shared --tag=CXX
--mode=link g++ -I/C/Projects/build/MinGW/llvm/utils/TableGen
-I/C/Projects/build/MinGW/llvm/../../../src/llvm/utils/TableGen
-I/C/Projects/build/MinGW/llvm/../../../src/llvm/include
-I/C/Projects/build/MinGW/llvm/include
-I/C/Projects/build/MinGW/llvm/include
-I/C/Projects/build/MinGW/llvm/../../../src/llvm/include -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__MINGW -Wall -W -Wwrite-strings -Wno-unused -g
-D_DEBUG -rpath /C/Projects/build/MinGW/llvm/tools/Debug -export-dynamic
-ldbghelp -L/C/Projects/build/MinGW/llvm/lib/Debug
-L/C/Projects/build/MinGW/llvm/lib/Debug -o
/C/Projects/build/MinGW/llvm/tools/Debug/tblgen
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/AsmWriterEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeEmitterGen.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeGenTarget.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileLexer.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileParser.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrInfoEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrSelectorEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/Record.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/RegisterInfoEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGen.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGenBackend.o
-lsupport -lLLVMsystem
g++ -I/C/Projects/build/MinGW/llvm/utils/TableGen
-I/C/Projects/build/MinGW/llvm/../../../src/llvm/utils/TableGen
-I/C/Projects/build/MinGW/llvm/../../../src/llvm/include
-I/C/Projects/build/MinGW/llvm/include
-I/C/Projects/build/MinGW/llvm/include
-I/C/Projects/build/MinGW/llvm/../../../src/llvm/include -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__MINGW -Wall -W -Wwrite-strings -Wno-unused -g
-D_DEBUG -o /C/Projects/build/MinGW/llvm/tools/Debug/tblgen
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/AsmWriterEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeEmitterGen.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/CodeGenTarget.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileLexer.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/FileParser.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrInfoEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/InstrSelectorEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/Record.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/RegisterInfoEmitter.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGen.o
/C/Projects/build/MinGW/llvm/utils/TableGen/Debug/TableGenBackend.o
-Wl,--export-dynamic -ldbghelp -L/C/Projects/build/MinGW/llvm/lib/Debug
-lsupport -lLLVMsystem -L/C/Projects/build/MinGW/llvm/tools/Debug
c:/Projects/build/MinGW/llvm/lib/Debug/libLLVMsystem.a(Signals.o)(.text+0x8a3):
In function `Z28LLVMUnhandledExceptionFilterP19_EXCEPTION_POINTERS':
--------------------------
Any suggestions?
Henrik
_________________________________________________________________
Find det, du søger på MSN Søg http://search.msn.dk
More information about the llvm-dev
mailing list