blob: 6099cd9ea4557be176f27af151124361055d2f72 [file] [log] [blame]
mostang.com!davidm594e7eb2003-03-28 07:43:22 +00001-*- mode: Outline -*-
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +00002
mostang.com!davidm594e7eb2003-03-28 07:43:22 +00003This is version 0.92 of the unwind library. At the moment, only the
4IA-64 Linux (IPF Linux) platform is fully supported. Some very basic
5support for x86 exists also. However, the x86 support is based purely
6on the frame-chain and does not use unwind information, so its utility
7is limited.
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +00008
mostang.com!davidm594e7eb2003-03-28 07:43:22 +00009* General Build Instructions
10
11In general, this library can be built and installed with the following
12commands:
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000013
mostang.com!davidm354f1c72002-02-23 20:27:03 +000014 $ ./configure
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000015 $ make
16 $ make install prefix=PREFIX
17
mostang.com!davidm354f1c72002-02-23 20:27:03 +000018where PREFIX is the installation prefix. By default, a prefix of
19/usr/local is used, such that libunwind.a is installed in
20/usr/local/lib and unwind.h is installed in /usr/local/include. For
21testing, you may want to use a prefix of /usr/local instead.
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000022
hp.com!davidm3f9c0bc2003-09-24 21:51:53 +000023If, during the build, you're getting an error of the form:
24
25 ../src/.libs/libunwind-ia64.so: undefined reference to `__tls_get_addr'
26
27it indicates that you have a compiler which supports the `__thread'
28keyword, but a runtime system (C library), which does not. As of
29September 2003, this appears to be a common problem for Debian
30"unstable" systems. To work around this issue, run "./configure" with
31option "--disable-__thread".
32
33
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000034* Building with Intel ECC
35
36To build libunwind with the Intel Electron compiler (ECC), it is
37recommended to run configure like this:
38
39 $ ./configure CC=ecc CXX=ecc CCAS=gcc
40
41The reason for this is that ECC uses the Intel assembler, which
42doesn't grok some of the IA-64 assembly code in the "tests" directory.
43
44For an ECC-built version of libunwind to work properly, you also need
45to ensure that /usr/include/asm/fpu.h contains a "long double" member
46called "__dummy" in the declaration of "struct ia64_fpreg". Without
47that member, variables of type unw_context_t won't be aligned
48properly.
49
mostang.com!davidm8d057cb2003-04-03 07:59:15 +000050* Building on HP-UX
51
52For the time being, libunwind must be built with GCC on HP-UX.
53Unfortunately, gcc-3.0 ships with a bad version of sys/types.h.
54The workaround for this is:
55
56 $ mkdir $top_dir/include/sys
57 $ cp /usr/include/sys/types.h $top_dir/include/sys
58
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000059* Regression Testing
60
61After building the library, you can run a set of regression tests with:
62
63 $ make check
64
hp.com!davidmb8e952c2003-11-19 23:15:58 +000065Unless you have a very recent C library and compiler installed, it is
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000066currently expected to have the following tests fail:
67
hp.com!davidmb8e952c2003-11-19 23:15:58 +000068 Gtest-init (should pass starting with glibc-2.3.x/gcc-3.4)
69 Ltest-init (should pass starting with glibc-2.3.x/gcc-3.4)
70 test-ptrace (should pass starting with glibc-2.3.x/gcc-3.4)
71 run-ia64-test-dyn1 (should pass starting with glibc-2.3.x)
72
73This does not mean that libunwind cannot be used with older compilers
74or C libraries, it just means that for certain corner cases, unwinding
75will fail. Since they're corner cases, it is not likely for
76applications to trigger them.
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000077
78* Contacting the Developers
79
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000080Please direct all questions regarding this library to:
81
82 libunwind@linux.hpl.hp.com
83
84For spam protection, you'll have to subscribe to this list before
85posting a question. You can do this by sending a mail to
86libunwind-request@linux.hpl.hp.com with a body of:
87
88 subscribe libunwind
89
90Note: the host that is running this list is behind a firewall, so
91you'll not be able to use the Web interface to manage your
92subscription. Send a mail containing "help" to
93libunwind-request@linux.hpl.hp.com for information on how to manage
94your subscription via email.