[LLVMdev] Building llvm and cfrontend under cygwin
reid at x10sys.com
Thu Dec 9 18:50:32 PST 2004
On Thu, 2004-12-09 at 17:44, Oleg Smolsky wrote:
> Hi Chris,
> > Also note, LLVM 1.4 will be released in the next few days, so if
> waiting is
> > an option, you might choose to do so.
> Alright, I've got llvm and llvm-gcc from RELEASE_14 cvs and tried
> building it under cygwin.
> 1) The first problem is with llvm in SysUtils.c:
> int executeProgram(const char *filename, char *const argv, char *const
> execveTy execvePtr = (execveTy) dlsym(RTLD_NEXT, "execve");
> RTLD_NEXT is not defined in cygwin headers.
Yeah, that's bad. Unfortunately, there's not much I can do about that
for 1.4. You should know that my focus for 1.5 is to make LLVM
completely portable by putting all the code that varies from platform to
platform into lib/System. This is partially implemented but there is
much more work to do.
> 2) cfontend built ok
> 3) full llvm failed to build:
> make: Entering directory
> llvm: Compiling Exception.cpp for Debug build (bytecode)
> llvm: Linking comp_genericeh.bc component...
> llvm: Compiling crtend.c for Debug build (bytecode)
> llvm: Compiling listend.ll for Debug build
> llvm: Linking comp_main.bc component...
> assertion "(Result->isFirstClassType() || Result == Type::VoidTy ||
> isa<OpaqueType>(Result)) && "LLVM functions cannot return aggregates""
> failed: file "Type.cpp", line 373
I don't know what's up with that, but I'll do a cygwin build and see
what is happening.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the llvm-dev