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/gc,
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/gc directory. Do
18 CONFIG_SITE=/home/arm/config.site ./configure --target=arm-linux
19 --prefix=/home/arm/gc
20 21 On your desktop, do:
22 make
23 make install
24 The main garbage collector library should now be in ../gc/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 check" (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 HOSTCC=gcc
44 45 # Names of the cross-compilers
46 CC=/skiff/local/bin/arm-linux-gcc
47 CXX=/skiff/local/bin/arm-linux-gcc
48 49 # The cross compiler specific options
50 CFLAGS="-O2 -fno-exceptions"
51 CXXFLAGS="-O2 -fno-exceptions"
52 CPPFLAGS="-O2 -fno-exceptions"
53 LDFLAGS=""
54 55 # Some other programs
56 AR=/skiff/local/bin/arm-linux-ar
57 RANLIB=/skiff/local/bin/arm-linux-ranlib
58 NM=/skiff/local/bin/arm-linux-nm
59 ac_cv_path_NM=/skiff/local/bin/arm-linux-nm
60 ac_cv_func_setpgrp_void=yes
61 x_includes=/skiff/local/arm-linux/include/X11
62 x_libraries=/skiff/local/arm-linux/lib/X11
63