Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#158 closed task (fixed)

Help with compiling the gcc In chapter 6.4.

Reported by: Nicolas Coronel Owned by: clfs-commits@…
Priority: major Milestone: CLFS Embedded 1.0.0
Component: BOOK Version: CLFS Embedded 1.0.0
Keywords: Cc:

Description

Good could give me a help: I am trying to make a linux for a router board rb153 MIPS architecture used for this purpose I am using the following document:

Cross-Compiled Linux From Scratch - Version 1.0.0-MIPS In chapter 6.4. GCC-4.1.1 performed everything that indicates the documentation when I arrive until

make AS_FOR_TARGET="${AS}" \

LD_FOR_TARGET="${LD}"

I introduced the following error.

make[1]: Entering directory `/mnt/clfs/sources/gcc-build' make[2]: Entering directory `/mnt/clfs/sources/gcc-build/libiberty' make[3]: Entering directory `/mnt/clfs/sources/gcc-build/libiberty/testsuite' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/mnt/clfs/sources/gcc-build/libiberty/testsuite' make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/libiberty' make[2]: Entering directory `/mnt/clfs/sources/gcc-build/fixincludes' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/fixincludes' make[2]: Entering directory `/mnt/clfs/sources/gcc-build/intl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/intl' make[2]: Entering directory `/mnt/clfs/sources/gcc-build/build-i686-cross-linux-gnu/libiberty' make[3]: Entering directory `/mnt/clfs/sources/gcc-build/build-i686-cross-linux-gnu/libiberty/testsuite' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/mnt/clfs/sources/gcc-build/build-i686-cross-linux-gnu/libiberty/testsuite' make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/build-i686-cross-linux-gnu/libiberty' make[2]: Entering directory `/mnt/clfs/sources/gcc-build/build-i686-cross-linux-gnu/fixincludes' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/build-i686-cross-linux-gnu/fixincludes' make[2]: Entering directory `/mnt/clfs/sources/gcc-build/libcpp' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/libcpp' make[2]: Entering directory `/mnt/clfs/sources/gcc-build/gcc' mips-unknown-linux-gnu-gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/. -I../../gcc-4.1.1/gcc/../include -I../../gcc-4.1.1/gcc/../libcpp/include -I. -I. -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/. -I../../gcc-4.1.1/gcc/../include -I../../gcc-4.1.1/gcc/../libcpp/include \

../../gcc-4.1.1/gcc/config/host-linux.c

../../gcc-4.1.1/gcc/config/host-linux.c: In function 'linux_gt_pch_use_address': ../../gcc-4.1.1/gcc/config/host-linux.c:208: error: 'SSIZE_MAX' undeclared (first use in this function) ../../gcc-4.1.1/gcc/config/host-linux.c:208: error: (Each undeclared identifier is reported only once ../../gcc-4.1.1/gcc/config/host-linux.c:208: error: for each function it appears in.) make[2]: * [host-linux.o] Error 1 make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/gcc' make[1]: * [all-gcc] Error 2 make[1]: Leaving directory `/mnt/clfs/sources/gcc-build' make: * [all] Error 2

Change History (3)

comment:1 Changed 12 years ago by Nicolas Coronel

It was possible to solve my problem by adding the following file

/ Mnt/clfs/sources/gcc-4.1.1/gcc/config/host-linux.c

The following line

# Include <bits/posix1_lim.h>

I must also thank William Harrington for his valuable collaboration

Thank you

comment:2 Changed 12 years ago by William Harrington

Resolution: fixed
Status: newclosed

header issue

Note: See TracTickets for help on using tickets.