Chris Lattner | c2b5dcb | 2003-01-23 21:17:02 +0000 | [diff] [blame] | 1 | Date: Mon, 20 Jan 2003 00:00:28 -0600 |
| 2 | From: Brian R. Gaeke <gaeke@uiuc.edu> |
| 3 | Subject: windows vs. llvm |
| 4 | |
| 5 | If you're interested, here are some of the major problems compiling LLVM |
| 6 | under Cygwin and/or Mingw. |
| 7 | |
| 8 | 1. Cygwin doesn't have <inttypes.h> or <stdint.h>, so all the INT*_MAX |
| 9 | symbols and standard int*_t types are off in limbo somewhere. Mingw has |
| 10 | <stdint.h>, but Cygwin doesn't like it. |
| 11 | |
| 12 | 2. Mingw doesn't have <dlfcn.h> (because Windows doesn't have it.) |
| 13 | |
| 14 | 3. SA_SIGINFO and friends are not around; only signal() seems to work. |
| 15 | |
| 16 | 4. Relink, aka ld -r, doesn't work (probably an ld bug); you need |
| 17 | DONT_BUILD_RELINKED. This breaks all the tools makefiles; you just need to |
| 18 | change them to have .a's. |
| 19 | |
| 20 | 5. Cygwin's math.h defines log2(); it needs to be #undefed if already defined |
| 21 | in MathExtras.h. |
| 22 | |
| 23 | 6. There isn't a <values.h>. |
| 24 | |
| 25 | 7. There isn't a mallinfo() (or, at least, it's documented, but it doesn't seem |
| 26 | to link). |
| 27 | |
| 28 | 8. The version of Bison that cygwin (and newer Linux versions) comes with |
| 29 | does not like = signs in rules. Burg's gram.yc source file uses them. I think |
| 30 | you can just take them out. |
| 31 | |