docs/known-issues.txt
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Apr 26 10:47:00 2009 +0000 (2009-04-26)
branch1.4
changeset 1307 39b1c755f19b
parent 1280 46f27896bfc4
permissions -rw-r--r--
1.4: update version to 1.4.0.

-------- diffstat follows --------
/branches/1.4/.version | 2 1 1 0 +-
1 file changed, 1 insertion(+), 1 deletion(-)
     1 This files lists the known issues encountered while developping crosstool-NG,
     2 but that could not be addressed before the release.
     3 
     4 The file has one section for each known issue, each section containing four
     5 sub-sections: Symptoms, Explanations, Fix, and Workaround.
     6 
     7 Each section is separated from the others with a lines of at least 4 dashes.
     8 
     9 The following dummy section explains it all.
    10 
    11     --------------------------------
    12     Symptoms:
    13       A one-liner of what you would observe.
    14 
    15     Explanations:
    16       An as much as possible in-depth explanations of the context, why it
    17       happens, what has been investigated so far, and possible orientations
    18       as how to try to solve this (eg. URLs, code snippets...).
    19 
    20     Fix:
    21       What you have to do to fix it, if at all possible.
    22       The fact that there is a fix, and yet this is a known issue means that
    23       time to incorporate the fix in crosstool-NG was missing, or planned for
    24       a future release.
    25 
    26     Workaround:
    27       What you can do to fix it *temporarily*, if at all possible.
    28       A workaround is not a real fix, as it can break other parts of
    29       crosstool-NG, but at least makes you going in your particular case.
    30 
    31 So now, on for the real issues...
    32 
    33 --------------------------------
    34 Symptoms:
    35   Seemingly native toolchains do not build.
    36 
    37 Explanations:
    38   Seemingly native toolchains are toolchains that target the same architecture
    39   as the one it is built on, and on which it will run, but the machine tuple
    40   may be different (eg i686 vs. i386, or x86_64-unknown-linux-gnu vs.
    41   x86_64-pc-linux-gnu).
    42 
    43   This seems to happen when building glibc-2.7 based toolchains only, for
    44   x86 and for x86_64.
    45 
    46   Only the system part of the tuple (here, linux-gnu) needs to be the same to
    47   trigger the bug. Which means that building a toolchain for either x86 or
    48   x86_64 on either x86 or x86_64 breaks.
    49 
    50   Typically, it is not possible to build the i686-nptl-linux-gnu sample on an
    51   x86_64 machine, although it might build on an x86 machine.
    52 
    53 Fix:
    54   None known.
    55 
    56 Workaround:
    57   If this happens for you, stick with glibc-2.6.1 for now.
    58   Or investigate! :-)
    59 
    60 --------------------------------
    61 Symptoms:
    62   gcc is not found, although I *do* have gcc installed.
    63 
    64 Explanations:
    65   This is an issue on at least RHEL systems, where gcc is a symlink to ccache.
    66   Because crosstool-NG create links to gcc for the build and host environment,
    67   those symlinks are in fact pointing to ccache, which then doesn't know how
    68   to run the compiler.
    69 
    70   A possible fix could probably set the environment variable CCACHE_CC to the
    71   actual compiler used.
    72 
    73 Fix:
    74   None known.
    75 
    76 Workaround:
    77   Uninstall ccache.
    78 
    79 --------------------------------
    80 Symptoms:
    81   The extract and/or path steps fail under Cygwin.
    82 
    83 Explanations:
    84   This is not related to crosstool-NG. Mounts under Cygwin are by default not
    85   case-sensitive. You have to use so-called "managed" mounts. See:
    86   http://cygwin.com/faq.html section 4, question 32.
    87 
    88 Fix:
    89   Use "managed" mounts for the directories where you build *and* install your
    90   toolchains.
    91 
    92 Workaround:
    93   None.
    94 
    95 --------------------------------
    96 Symptoms:
    97   uClibc fails to build under Cygwin.
    98 
    99 Explanations:
   100   With uClibc, it is possible to build a cross-ldd. Unfortunately, it is
   101   not (currently) possible to build this cross-ldd under Cygwin.
   102 
   103 Fix:
   104   None so far.
   105 
   106 Workaround:
   107   Disable the cross-ldd build.
   108 
   109 --------------------------------