docs/0 - Table of content.txt
author "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
Wed Dec 14 16:55:22 2011 +0100 (2011-12-14)
branch1.13
changeset 2848 1ff89596dab0
parent 2563 e17f35b05539
child 2908 dcdb309b7967
permissions -rw-r--r--
libc/eglibc: fix localedef 2.14 build

The localedef of eglibc 2.14 requires NOT_IN_libc to be defined in order to
compile intl/l10nflist.c.

This is because localedef is built separately from eglibc and uses some parts of
eglibc that don't compile in standalone without this preprocessor definition.

This fixes the following error:

[ALL ] gcc -g -O2 -DNO_SYSCONF -DNO_UNCOMPRESS
-DLOCALE_PATH='"/usr/lib/locale:/usr/share/i18n"'
-DLOCALEDIR='"/usr/lib/locale"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"'
-DCHARMAP_PATH='"/usr/share/i18n/charmaps"'
-DREPERTOIREMAP_PATH='"/usr/share/i18n/repertoiremaps"'
-DLOCSRCDIR='"/usr/share/i18n/locales"' -Iglibc/locale/programs -Iglibc/locale
-I/<snip>/.build/src/eglibc-localedef-2_14/include
-I/<snip>/.build/src/eglibc-localedef-2_14 -I.
-include /<snip>/.build/src/eglibc-localedef-2_14/include/always.h -Wall
-Wno-format -c -o locarchive.o glibc/locale/programs/locarchive.c
[ALL ] glibc/locale/programs/locarchive.c: In function 'enlarge_archive':
[ALL ] glibc/locale/programs/locarchive.c:303:21: warning: variable
'oldlocrectab' set but not used [-Wunused-but-set-variable]
[ALL ] In file included from glibc/locale/programs/locarchive.c:651:0:
[ALL ] glibc/locale/programs/../../intl/l10nflist.c: In function
'_nl_normalize_codeset':
[ERROR] glibc/locale/programs/../../intl/l10nflist.c:342:9: error:
'_nl_C_locobj_ptr' undeclared (first use in this function)
[ALL ] glibc/locale/programs/../../intl/l10nflist.c:342:9: note: each
undeclared identifier is reported only once for each function it appears in
[ALL ] glibc/locale/programs/locarchive.c: In function
'add_locales_to_archive':
[ALL ] glibc/locale/programs/locarchive.c:1450:7: warning: passing argument
1 of '__xpg_basename' discards 'const' qualifier from pointer target type
[enabled by default]
[ALL ] /usr/include/libgen.h:35:14: note: expected 'char *' but argument is
of type 'const char *'
[ERROR] make[1]: *** [locarchive.o] Error 1

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
(transplanted from 4cd9134739b594451794cf61a6e1b137422cdafd)
yann@2076
     1
File.........: 0 - Table of content.txt
antony@2563
     2
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
yann@2076
     3
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5
yann@2076
     4
yann@2076
     5
yann@2076
     6
Table Of Content  /
yann@2076
     7
_________________/
yann@2076
     8
yann@2076
     9
yann@2076
    10
1- Introduction
yann@2076
    11
    - History
yann@2076
    12
    - Referring to crosstool-NG
yann@2076
    13
yann@2076
    14
2- Installing crosstool-NG
yann@2076
    15
    - Install method
yann@2076
    16
    - The hacker's way
yann@2076
    17
    - Preparing for packaging
yann@2076
    18
    - Shell completion
yann@2076
    19
    - Contributed code
yann@2076
    20
yann@2076
    21
3- Configuring a toolchain
yann@2076
    22
    - Interesting config options
yann@2076
    23
    - Re-building an existing toolchain
yann@2076
    24
    - Using as a backend for a build-system
yann@2076
    25
yann@2076
    26
4- Building the toolchain
yann@2076
    27
    - Stopping and restarting a build
yann@2076
    28
    - Testing all toolchains at once
yann@2076
    29
    - Overriding the number of // jobs
yann@2076
    30
    - Note on // jobs
yann@2076
    31
    - Tools wrapper
yann@2076
    32
yann@2076
    33
5- Using the toolchain
yann@2076
    34
    - The 'populate' script
yann@2076
    35
yann@2076
    36
6- Toolchain types
yann@2076
    37
    - Seemingly-native toolchains
yann@2076
    38
yann@2076
    39
7- Contributing
yann@2076
    40
    - Sending a bug report
yann@2076
    41
    - Sending patches
yann@2076
    42
yann@2076
    43
8- Internals
yann@2076
    44
    - Makefile front-end
yann@2076
    45
    - Kconfig parser
yann@2076
    46
    - Architecture-specific
yann@2076
    47
    - Adding a new version of a component
yann@2076
    48
    - Build scripts
yann@2076
    49
yann@2321
    50
9 - How is a toolchain constructed?
yann@2321
    51
    - I want a cross-compiler! What is this toolchain you're speaking about?
yann@2321
    52
    - So, what are those components in a toolchain?
yann@2321
    53
    - And now, how do all these components chained together?
yann@2321
    54
    - So the list is complete. But why does crosstool-NG have more steps?
yann@2321
    55
yann@2076
    56
A- Credits
yann@2076
    57
yann@2076
    58
B- Known issues
yann@2385
    59
    - gcc is not found, although I *do* have gcc installed
yann@2385
    60
    - The extract and/or path steps fail under Cygwin
yann@2385
    61
    - uClibc fails to build under Cygwin
yann@2385
    62
    - On 64-bit build systems, the glibc (possibly eglibc too) build
yann@2385
    63
      fails for 64-bit targets, because it can not find libgcc
yann@2569
    64
    - libtool.m4: error: problem compiling FC test program
yann@2569
    65
    - unable to detect the exception model
yann@2569
    66
    - configure: error: forced unwind support is required
yann@2569
    67
    - glibc start files and headers fail with: [/usr/include/limits.h] Error 1
yann@2076
    68
yann@2076
    69
C- Misc. tutorials
yann@2076
    70
    - Using crosstool-NG on FreeBSD (and other *BSD)
yann@2076
    71
    - Using crosstool-NG on MacOS-X
yann@2077
    72
    - Using Mercurial to hack crosstool-NG