[LLVMdev] LLVM on Windows (cygwin?)
anthonyevans8475 at btinternet.com
Sat May 1 07:33:01 PDT 2004
I was wondering whether anyone has attempted to port LLVM to windows
running with a POSIX layer, such as cygwin?
I recently tried to build and run llvm on cygwin, and I got the llvm tools
working. There were a few problems in the configure script, namely the
mmap test fails due to MAP_FIXED not working on windows (all other mmap()
stuff works), which I simply commented out since its not used by llvm.
I could not get the gcc frontend to build:
-I../../src/gcc/../winsup/cygwin/include -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I.
-I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include -DL_chkstk
-xassembler-with-cpp -c ../../src/gcc/config/i386/cygwin.asm -o
gccas: /tmp/ccSFlVhW.s:1: syntax error, unexpected $undefined
/tmp/ccSFlVhW.s:1: while reading token: '#'
Which seems to be a libgcc problem.
Any ideas where to start digging for more information on how to port the
gcc frontend to cygwin?
GCC natively build and runs happily on cygwin, however, it seems that with
the gcc FE using gccas rather than as breaks the build due to some x86 asm
being used as part of the build.
Thanks in advance,
More information about the llvm-dev