File: day_72__windows_webapp_not.mdwn

package info (click to toggle)
git-annex 5.20141125%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 37,832 kB
  • sloc: haskell: 42,603; sh: 1,080; ansic: 498; makefile: 316; perl: 125
file content (22 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Got the entire webapp to build on Windows.

Compiling was easy. One line of code had to be #ifdefed out, and the whole
rest of the webapp UI just built!

Linking was epic. It seems that I really am runninginto a 32kb command line length
limit, which causes the link command to fail on Windows. git-annex with all
its bells and whistles enabled is just too big. Filed a 
[ghc bug report](https://ghc.haskell.org/trac/ghc/ticket/8596), and got back a
helpful response about using <http://gcc.gnu.org/wiki/Response_Files> to
work around.

6 hours of slogging through compiling dependencies and fighting with
toolchain later, I have managed to link git-annex with the webapp!

The process is not automated yet. While I was able to automate
passing gcc a @file with its parameters, gcc then calls collect2, which
calls ld, and both are passed too many parameters. I have not found a way
to get gcc to generate a response file. So I did it manually. Urgh.

Also, it crashes on startup with `getAddrInfo` failure. But some more
porting is to be expected, now that the windows webapp links.. ;)