implemented Setup.hs to build boehm cpp libs and install them;
[hs-boehmgc.git] / gc-7.2 / doc / README.arm.cross
1 From: Margaret Fleck
2
3 Here's the key details of what worked for me, in case anyone else needs them.
4 There may well be better ways to do some of this, but ....
5    -- Margaret
6
7
8 The badge4 has a StrongArm-1110 processor and a StrongArm-1111 coprocessor.  
9
10 Assume that the garbage collector distribution is unpacked into /home/arm/gc6.0,
11 which is visible to both the ARM machine and a linux desktop (e.g. via NFS mounting).
12
13 Assume that you have a file /home/arm/config.site with contents something like the
14 example attached below.  Notice that our local ARM toolchain lives in
15 /skiff/local.
16
17 Go to /home/arm/gc6.0 directory.  Do
18   CONFIG_SITE=/home/arm/config.site ./configure --target=arm-linux
19 --prefix=/home/arm/gc6.0
20
21 On your desktop, do:
22    make
23    make install
24 The main garbage collector library should now be in ../gc6.0/lib/libgc.so.  
25
26 To test the garbage collector, first do the following on your desktop
27    make gctest
28    ./gctest
29 Then do the following on the ARM machine
30    cd .libs
31    ./lt-gctest
32
33 Do not try to do "make test" (the usual way of running the test
34 program).  This does not work and seems to erase some of the important
35 files.
36
37 The gctest program claims to have succeeded.  Haven't run any further tests
38 with it, though I'll be doing so in the near future.
39
40 -------------------------------
41 # config.site for configure
42
43 # Modified from the one provided by Bradley D. LaRonde
44 # Edited by Andrej Cedilnik <acedil1@csee.umbc.edu>
45 # Used some of solutions by Tilman Vogel <Tilman.Vogel@web.de>
46 # Ported for iPAQ Familiar by Oliver Kurth <oliver.kurth@innominate.com>
47 # Further modified by Margaret Fleck for the badge4
48
49 HOSTCC=gcc
50
51 # Names of the cross-compilers
52 CC=/skiff/local/bin/arm-linux-gcc
53 CXX=/skiff/local/bin/arm-linux-gcc
54
55 # The cross compiler specific options
56 CFLAGS="-O2 -fno-exceptions"
57 CXXFLAGS="-O2 -fno-exceptions"
58 CPPFLAGS="-O2 -fno-exceptions"
59 LDFLAGS=""
60
61 # Some other programs
62 AR=/skiff/local/bin/arm-linux-ar
63 RANLIB=/skiff/local/bin/arm-linux-ranlib
64 NM=/skiff/local/bin/arm-linux-nm
65 ac_cv_path_NM=/skiff/local/bin/arm-linux-nm
66 ac_cv_func_setpgrp_void=yes
67 x_includes=/skiff/local/arm-linux/include/X11
68 x_libraries=/skiff/local/arm-linux/lib/X11