This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11894] gcc cross compiler work with error
- From: "lshulov at arabellasw dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2003 07:35:03 -0000
- Subject: [Bug c++/11894] gcc cross compiler work with error
- References: <20030812130534.11894.lshulov@arabellasw.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11894
------- Additional Comments From lshulov at arabellasw dot com 2003-08-13 07:34 -------
Subject: Re: gcc cross compiler work with error
pinskia at gcc dot gnu dot org wrote:
>PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11894
>
>
>pinskia at gcc dot gnu dot org changed:
>
> What |Removed |Added
>----------------------------------------------------------------------------
> Status|UNCONFIRMED |WAITING
>
>
>------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-12 23:47 -------
>Where did you get these diffs from (debain?)?
>binutils_2.14.90.0.5-0.2.diff (hjl's linux's binutils?)
>You really should be using --with-sysroot= instead of --with-headers=, can you try with
>that option and report back?
>
>
>
>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>
>
>
All files I get from ftp.de.debian.org.
With your recomendation I did config and make with --with-sysroot=
option. After that I receved :
.........
/home/GNU/obj/gcc/gcc/xgcc -B/home/GNU/obj/gcc/gcc/
-B/opt/Arabella/powerpc-linux/bin/ -B/opt/Arabella/powerpc-linux/lib/
-isystem /opt/Arabella/powerpc-linux/include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I/home/GNU/gcc-3.3/gcc -I/home/GNU/gcc-3.3/gcc/.
-I/home/GNU/gcc-3.3/gcc/config -I/home/GNU/gcc-3.3/gcc/../include -fPIC
-mstrict-align -DL_floatdisf -c /home/GNU/gcc-3.3/gcc/libgcc2.c -o
libgcc/./_floatdisf.o
/home/GNU/obj/gcc/gcc/xgcc -B/home/GNU/obj/gcc/gcc/
-B/opt/Arabella/powerpc-linux/bin/ -B/opt/Arabella/powerpc-linux/lib/
-isystem /opt/Arabella/powerpc-linux/include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I/home/GNU/gcc-3.3/gcc -I/home/GNU/gcc-3.3/gcc/.
-I/home/GNU/gcc-3.3/gcc/config -I/home/GNU/gcc-3.3/gcc/../include -fPIC
-mstrict-align -DL_fixunsdfsi -c /home/GNU/gcc-3.3/gcc/libgcc2.c -o
libgcc/./_fixunsdfsi.o
In file included from
/opt/Arabella/powerpc-linux/include/bits/posix1_lim.h:130,
from /opt/Arabella/powerpc-linux/include/limits.h:144,
from /home/GNU/obj/gcc/gcc/include/limits.h:122,
from /home/GNU/obj/gcc/gcc/include/syslimits.h:7,
from /home/GNU/obj/gcc/gcc/include/limits.h:11,
from /home/GNU/gcc-3.3/gcc/libgcc2.c:1153:
/opt/Arabella/powerpc-linux/include/bits/local_lim.h:36:26:
linux/limits.h: No such file or directory
make[2]: *** [libgcc/./_fixunsdfsi.o] Error 1
make[2]: Leaving directory `/home/GNU/obj/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/GNU/obj/gcc/gcc'
make: *** [all-gcc] Error 2
I find limits.h:
find -name limits.h
./obj/gcc/gcc/include/limits.h
./glibc-2.3.2/glibc-2.3.2/include/limits.h
./gcc-3.3/gcc/fixinc/tests/base/sys/limits.h
./gcc-3.3/libstdc++-v3/include/c_compatibility/limits.h
./kernel-2.4.21/include/linux/limits.h
./kernel-2.4.21/include/asm-arm/limits.h
In file /opt/Arabella/powerpc-linux/include/bits/local_lim.h:
I read this :
......
/* The kernel sources contain a file with all the needed information. */
#include <linux/limits.h>
......
Best regards
Leonid