xref: /aosp_15_r20/external/llvm/docs/HistoricalNotes/2003-01-23-CygwinNotes.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerDate: Mon, 20 Jan 2003 00:00:28 -0600
2*9880d681SAndroid Build Coastguard WorkerFrom: Brian R. Gaeke <[email protected]>
3*9880d681SAndroid Build Coastguard WorkerSubject: windows vs. llvm
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard WorkerIf you're interested, here are some of the major problems compiling LLVM
6*9880d681SAndroid Build Coastguard Workerunder Cygwin and/or Mingw.
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker1. Cygwin doesn't have <inttypes.h> or <stdint.h>, so all the INT*_MAX
9*9880d681SAndroid Build Coastguard Worker   symbols and standard int*_t types are off in limbo somewhere. Mingw has
10*9880d681SAndroid Build Coastguard Worker   <stdint.h>, but Cygwin doesn't like it.
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker2. Mingw doesn't have <dlfcn.h> (because Windows doesn't have it.)
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker3. SA_SIGINFO and friends are not around; only signal() seems to work.
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker4. Relink, aka ld -r, doesn't work (probably an ld bug); you need
17*9880d681SAndroid Build Coastguard Worker   DONT_BUILD_RELINKED. This breaks all the tools makefiles; you just need to
18*9880d681SAndroid Build Coastguard Worker   change them to have .a's.
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker5. There isn't a <values.h>.
21*9880d681SAndroid Build Coastguard Worker
22*9880d681SAndroid Build Coastguard Worker6. There isn't a mallinfo() (or, at least, it's documented, but it doesn't seem
23*9880d681SAndroid Build Coastguard Worker   to link).
24*9880d681SAndroid Build Coastguard Worker
25*9880d681SAndroid Build Coastguard Worker7. The version of Bison that cygwin (and newer Linux versions) comes with
26*9880d681SAndroid Build Coastguard Worker   does not like = signs in rules. Burg's gram.yc source file uses them. I think
27*9880d681SAndroid Build Coastguard Worker   you can just take them out.
28*9880d681SAndroid Build Coastguard Worker
29