This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Crosstool build problem for mips


Hi,

I am facing problem while building gcc-3.4.4 with --enable-thread option.
I get following error message:

In file included from ../../gcc-3.4.4/gcc/crtstuff.c:62:
../../gcc-3.4.4/gcc/tsystem.h:79:19: stdio.h: No such file or directory
../../gcc-3.4.4/gcc/tsystem.h:82:23: sys/types.h: No such file or directory
../../gcc-3.4.4/gcc/tsystem.h:85:19: errno.h: No such file or directory
../../gcc-3.4.4/gcc/tsystem.h:92:20: string.h: No such file or directory
../../gcc-3.4.4/gcc/tsystem.h:93:20: stdlib.h: No such file or directory
../../gcc-3.4.4/gcc/tsystem.h:94:20: unistd.h: No such file or directory
../../gcc-3.4.4/gcc/tsystem.h:100:18: time.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/tmp/mipsel-unknown-linux-gnu-toolchain/build-gcc-bootstrap/gcc'
make: *** [all-gcc] Error 2

Can anyone please point out what could be the problem?

I am able to build compiler with --disable-thread option and could
build kernel 2.6.16 with it.

Thanks and Regards,
Shyamal





On 4/22/06, Niklaus <niklaus@gmail.com> wrote:
On 4/21/06, Shyamal Sadanshio <shyamal.sadanshio@gmail.com> wrote:
> Hi,
>
> I am facing problem while building the crosstools gcc3.4.2-glibc2.2.5
> for mipsel platform.
>
> threads/sysdeps/mips -I../sysdeps/unix/sysv/linux/mips
-I../sysdeps/unix/sysv/li
> nux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdep
> s/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/mips
-I../sysdeps/unix -I..
> /sysdeps/posix -I../sysdeps/mips/mipsel -I../sysdeps/mips/fpu
-I../sysdeps/mips
> -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64
>  -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
-nostdinc -
> isystem
/home/shyamal/crosstool-0.42/build/mipsel-unknown-linux-gnu/gcc-3.4.2-gl
> ibc-2.2.5/gcc-core-prefix/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/include
-isyste
> m
/opt/crosstool/gcc-3.4.2-glibc-2.2.5/mipsel-unknown-linux-gnu/mipsel-unknown-l
> inux-gnu/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h
-DPIC   -
> o
/home/shyamal/crosstool-0.42/build/mipsel-unknown-linux-gnu/gcc-3.4.2-glibc-2.
> 2.5/build-glibc/misc/stty.o
> mipsel-unknown-linux-gnu-gcc  ../sysdeps/unix/sysv/linux/ptrace.c -c -O2
-Wall -
> Winline -Wstrict-prototypes -Wwrite-strings -finline-limit=10000
-fno-unit-at-a-
> time -isystem
/home/shyamal/crosstool-0.42/build/mipsel-unknown-linux-gnu/gcc-3.
> 4.2-glibc-2.2.5/linux-2.6.8/include/asm-mips/mach-generic
-I../include -I.
>
-I/home/shyamal/crosstool-0.42/build/mipsel-unknown-linux-gnu/gcc-3.4.2-glibc-2.
> 2.5/build-glibc/misc -I.. -I../libio
-I/home/shyamal/crosstool-0.42/build/mipse
> l-unknown-linux-gnu/gcc-3.4.2-glibc-2.2.5/build-glibc
-I../sysdeps/mips/elf -I..
> /linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sys
> deps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix
> -I../linuxthreads/sysdeps/mips -I../sysdeps/unix/sysv/linux/mips
-I../sysdeps/un
> ix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -
> I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/mips
-I../sysdeps
> /unix -I../sysdeps/posix -I../sysdeps/mips/mipsel -I../sysdeps/mips/fpu
-I../sys
> deps/mips -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee
> 754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic  -
> nostdinc -isystem
/home/shyamal/crosstool-0.42/build/mipsel-unknown-linux-gnu/gc
>
c-3.4.2-glibc-2.2.5/gcc-core-prefix/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/inclu
> de -isystem
/opt/crosstool/gcc-3.4.2-glibc-2.2.5/mipsel-unknown-linux-gnu/mipsel
> -unknown-linux-gnu/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h
>  -DPIC   -o
/home/shyamal/crosstool-0.42/build/mipsel-unknown-linux-gnu/gcc-3.4.
> 2-glibc-2.2.5/build-glibc/misc/ptrace.o
> In file included from
/opt/crosstool/gcc-3.4.2-glibc-2.2.5/mipsel-unknown-linux-
> gnu/mipsel-unknown-linux-gnu/include/linux/user.h:1,
>                  from ../sysdeps/unix/sysv/linux/sys/user.h:1,
>                  from ../sysdeps/unix/sysv/linux/ptrace.c:22:
>
/opt/crosstool/gcc-3.4.2-glibc-2.2.5/mipsel-unknown-linux-gnu/mipsel-unknown-lin
> ux-gnu/include/asm/user.h:12:21: asm/reg.h: No such file or directory
> In file included from
/opt/crosstool/gcc-3.4.2-glibc-2.2.5/mipsel-unknown-linux-
> gnu/mipsel-unknown-linux-gnu/include/linux/user.h:1,
>                  from ../sysdeps/unix/sysv/linux/sys/user.h:1,
>                  from ../sysdeps/unix/sysv/linux/ptrace.c:22:
>
/opt/crosstool/gcc-3.4.2-glibc-2.2.5/mipsel-unknown-linux-gnu/mipsel-unknown-lin
> ux-gnu/include/asm/user.h:38: error: `EF_SIZE' undeclared here (not in a
functio
> n)
> make[2]: ***
[/home/shyamal/crosstool-0.42/build/mipsel-unknown-linux-gnu/gcc-3.
> 4.2-glibc-2.2.5/build-glibc/misc/ptrace.o] Error 1
> make[2]: Leaving directory
`/home/shyamal/crosstool-0.42/build/mipsel-unknown-li
> nux-gnu/gcc-3.4.2-glibc-2.2.5/glibc-2.2.5/misc'
> make[1]: *** [misc/subdir_lib] Error 2
> make[1]: Leaving directory
`/home/shyamal/crosstool-0.42/build/mipsel-unknown-li
> nux-gnu/gcc-3.4.2-glibc-2.2.5/glibc-2.2.5'
> make: *** [all] Error 2
>
>
> I have referred few releted faqs from the mail archives and the
> suggestion was to revert back to linux 2.4. However, I have come
> across the stable kernel repository of 2.6.12-rc6 for  MIPS specific
> MALTA platform on linux-mips.org site and am interested for compiling
> it.
>
> So I would like to confirm if any crosstool script is availble for it.
>
> My native OS is Red Hat 9 (gcc version 3.2.2 20030222 (Red Hat Linux
3.2.2-5).
>
> Thanks and Regards,
> Shyamal

In the error messages you can see that
"asm/reg.h: No such file or directory"

This is the culprit. Your kernel headers are not copied properly.
Investigate why.
Try doing make config ARCH=mips and find include -name reg.h.

I tried building it and mipsel worked fine.

>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>
>


-- For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]