mostang.com!davidm | 594e7eb | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 1 | -*- mode: Outline -*- |
mostang.com!davidm | 7fbfe0a | 2002-02-15 23:22:05 +0000 | [diff] [blame] | 2 | |
mostang.com!davidm | 594e7eb | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 3 | This is version 0.92 of the unwind library. At the moment, only the |
| 4 | IA-64 Linux (IPF Linux) platform is fully supported. Some very basic |
| 5 | support for x86 exists also. However, the x86 support is based purely |
| 6 | on the frame-chain and does not use unwind information, so its utility |
| 7 | is limited. |
mostang.com!davidm | 7fbfe0a | 2002-02-15 23:22:05 +0000 | [diff] [blame] | 8 | |
mostang.com!davidm | 594e7eb | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 9 | * General Build Instructions |
| 10 | |
| 11 | In general, this library can be built and installed with the following |
| 12 | commands: |
mostang.com!davidm | 7fbfe0a | 2002-02-15 23:22:05 +0000 | [diff] [blame] | 13 | |
mostang.com!davidm | 354f1c7 | 2002-02-23 20:27:03 +0000 | [diff] [blame] | 14 | $ ./configure |
mostang.com!davidm | 7fbfe0a | 2002-02-15 23:22:05 +0000 | [diff] [blame] | 15 | $ make |
| 16 | $ make install prefix=PREFIX |
| 17 | |
mostang.com!davidm | 354f1c7 | 2002-02-23 20:27:03 +0000 | [diff] [blame] | 18 | where 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 |
| 21 | testing, you may want to use a prefix of /usr/local instead. |
mostang.com!davidm | 7fbfe0a | 2002-02-15 23:22:05 +0000 | [diff] [blame] | 22 | |
hp.com!davidm | 3f9c0bc | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 23 | If, 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 | |
| 27 | it indicates that you have a compiler which supports the `__thread' |
| 28 | keyword, but a runtime system (C library), which does not. As of |
| 29 | September 2003, this appears to be a common problem for Debian |
| 30 | "unstable" systems. To work around this issue, run "./configure" with |
| 31 | option "--disable-__thread". |
| 32 | |
| 33 | |
mostang.com!davidm | 594e7eb | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 34 | * Building with Intel ECC |
| 35 | |
| 36 | To build libunwind with the Intel Electron compiler (ECC), it is |
| 37 | recommended to run configure like this: |
| 38 | |
| 39 | $ ./configure CC=ecc CXX=ecc CCAS=gcc |
| 40 | |
| 41 | The reason for this is that ECC uses the Intel assembler, which |
| 42 | doesn't grok some of the IA-64 assembly code in the "tests" directory. |
| 43 | |
| 44 | For an ECC-built version of libunwind to work properly, you also need |
| 45 | to ensure that /usr/include/asm/fpu.h contains a "long double" member |
| 46 | called "__dummy" in the declaration of "struct ia64_fpreg". Without |
| 47 | that member, variables of type unw_context_t won't be aligned |
| 48 | properly. |
| 49 | |
mostang.com!davidm | 8d057cb | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 50 | * Building on HP-UX |
| 51 | |
| 52 | For the time being, libunwind must be built with GCC on HP-UX. |
| 53 | Unfortunately, gcc-3.0 ships with a bad version of sys/types.h. |
| 54 | The 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!davidm | 594e7eb | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 59 | * Regression Testing |
| 60 | |
| 61 | After building the library, you can run a set of regression tests with: |
| 62 | |
| 63 | $ make check |
| 64 | |
hp.com!davidm | b8e952c | 2003-11-19 23:15:58 +0000 | [diff] [blame] | 65 | Unless you have a very recent C library and compiler installed, it is |
mostang.com!davidm | 594e7eb | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 66 | currently expected to have the following tests fail: |
| 67 | |
hp.com!davidm | b8e952c | 2003-11-19 23:15:58 +0000 | [diff] [blame] | 68 | 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 | |
| 73 | This does not mean that libunwind cannot be used with older compilers |
| 74 | or C libraries, it just means that for certain corner cases, unwinding |
| 75 | will fail. Since they're corner cases, it is not likely for |
| 76 | applications to trigger them. |
mostang.com!davidm | 594e7eb | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 77 | |
| 78 | * Contacting the Developers |
| 79 | |
mostang.com!davidm | 7fbfe0a | 2002-02-15 23:22:05 +0000 | [diff] [blame] | 80 | Please direct all questions regarding this library to: |
| 81 | |
| 82 | libunwind@linux.hpl.hp.com |
| 83 | |
| 84 | For spam protection, you'll have to subscribe to this list before |
| 85 | posting a question. You can do this by sending a mail to |
| 86 | libunwind-request@linux.hpl.hp.com with a body of: |
| 87 | |
| 88 | subscribe libunwind |
| 89 | |
| 90 | Note: the host that is running this list is behind a firewall, so |
| 91 | you'll not be able to use the Web interface to manage your |
| 92 | subscription. Send a mail containing "help" to |
| 93 | libunwind-request@linux.hpl.hp.com for information on how to manage |
| 94 | your subscription via email. |