[LLVMdev] Building llvm and cfrontend under cygwin

Oleg Smolsky Oleg.Smolsky at pacific-simulators.co.nz
Sun Dec 5 13:27:59 PST 2004

Hi there,

I'm trying to build llvm under cygwin running under windows xp, and have
struck the following problem:
-- llvm: tools-only built ok
-- cfrontend: built ok
-- llvm: full build failed at the following point:

make[3]: Entering directory
Compiling crtend.c to bytecode
Compiling listend.ll to bytecode
Linking comp_main.bc component...
/cygdrive/d/3rd-party/llvm/tools/Debug/gccld: Error linking in bytecode
nd.bc': Bytecode file
nd.bc' could not be loaded: Invalid Top Level Block Length! Type:1,
(Vers=16, Pos=12)
make[3]: ***
_main.bc] Error 1
make[3]: Leaving directory
make[2]: *** [crtend/.makeall] Error 2
make[2]: Leaving directory
make[1]: *** [GCCLibraries/.makeall] Error 2
make[1]: Leaving directory `/cygdrive/d/3rd-party/llvm/runtime'
make: *** [all] Error 1

Any clues? Here are a few bits of information that may be relevant:
-- I'm using gcc 3.3.3 (cygwin special)
-- I have changed gcc.c as per 

Thanks in advance,

More information about the llvm-dev mailing list