blob: 0f05ee6a7e8ddb6b910ff306c9566f8805a9adef [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
65Unless you have a very recent library and compiler installed, it is
66currently expected to have the following tests fail:
67
68 Gtest-init (should work with glibc-2.3.1)
69 Ltest-init (should work with glibc-2.3.1)
70 test-ptrace (should work with glibc-2.3.1)
71 run-ia64-test-dyn1 (should work with glibc-2.3.1)
72
73* Contacting the Developers
74
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000075Please direct all questions regarding this library to:
76
77 libunwind@linux.hpl.hp.com
78
79For spam protection, you'll have to subscribe to this list before
80posting a question. You can do this by sending a mail to
81libunwind-request@linux.hpl.hp.com with a body of:
82
83 subscribe libunwind
84
85Note: the host that is running this list is behind a firewall, so
86you'll not be able to use the Web interface to manage your
87subscription. Send a mail containing "help" to
88libunwind-request@linux.hpl.hp.com for information on how to manage
89your subscription via email.