public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Problems compiling gcc-4.1.0
@ 2006-07-14 17:45 Luís Cargnini
  2006-07-14 17:46 ` Luís Cargnini
  2006-07-15  5:06 ` Dirk Behme
  0 siblings, 2 replies; 3+ messages in thread
From: Luís Cargnini @ 2006-07-14 17:45 UTC (permalink / raw)
  To: OMAP

Hi someone knows how to fix this:

/home/lvcargnini/puc/instramed/build/b-gcc/./gcc/xgcc
-B/home/lvcargnini/puc/instramed/build/b-gcc/./gcc/
-B/opt/arm-linux/arm-linux/bin/ -B/opt/arm-linux/arm-linux/lib/ -isystem
/opt/arm-linux/arm-linux/include -isystem
/opt/arm-linux/arm-linux/sys-include -O2 -O2 -g -O2  -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I.
-I../../gcc-4.1.0/gcc -I../../gcc-4.1.0/gcc/. -I../../gcc-4.1.0/gcc/../include
-I../../gcc-4.1.0/gcc/../libcpp/include   -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time   \
          -c ../../gcc-4.1.0/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
In file included from ../../gcc-4.1.0/gcc/crtstuff.c:68:
../../gcc-4.1.0/gcc/tsystem.h:90:19: error: stdio.h: No such file or
directory
../../gcc-4.1.0/gcc/tsystem.h:93:23: error: sys/types.h: No such file or
directory
../../gcc-4.1.0/gcc/tsystem.h:96:19: error: errno.h: No such file or
directory
../../gcc-4.1.0/gcc/tsystem.h:103:20: error: string.h: No such file or
directory
../../gcc-4.1.0/gcc/tsystem.h:104:20: error: stdlib.h: No such file or
directory
../../gcc-4.1.0/gcc/tsystem.h:105:20: error: unistd.h: No such file or
directory
../../gcc-4.1.0/gcc/tsystem.h:111:18: error: time.h: No such file or
directory
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/home/lvcargnini/puc/instramed/build/b-gcc/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/lvcargnini/puc/instramed/build/b-gcc'
make: *** [all] Error 2


i have modified ../gcc-4.1.0/gcc/config/arm/t-linux and added -Dinhibit_libc
-D__gthr_posix_h
what should i do ???
I'm doing this because of the clock erros that are appearing on compiling
time with denx toolchain
Thanks for any help


-- 
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Mastering Degree student @ PUC-RS Electrical Engineer Faculty

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems compiling gcc-4.1.0
  2006-07-14 17:45 Problems compiling gcc-4.1.0 Luís Cargnini
@ 2006-07-14 17:46 ` Luís Cargnini
  2006-07-15  5:06 ` Dirk Behme
  1 sibling, 0 replies; 3+ messages in thread
From: Luís Cargnini @ 2006-07-14 17:46 UTC (permalink / raw)
  To: OMAP

I almost forgot my configure line:
../gcc-4.1.0/configure --prefix=/opt/arm-linux --target=arm-linux
--disable-shared --disable-threads
--with-headers=/opt/arm-linux/arm-linux/include --with-float=soft
--enable-languages=c --build=i686-pc-linux-gnu

On 7/14/06, Luís Cargnini <lvcargnini@gmail.com> wrote:
>
> Hi someone knows how to fix this:
>
> /home/lvcargnini/puc/instramed/build/b-gcc/./gcc/xgcc
> -B/home/lvcargnini/puc/instramed/build/b-gcc/./gcc/
> -B/opt/arm-linux/arm-linux/bin/ -B/opt/arm-linux/arm-linux/lib/ -isystem
> /opt/arm-linux/arm-linux/include -isystem
> /opt/arm-linux/arm-linux/sys-include -O2 -O2 -g -O2  -DIN_GCC
> -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I.
> -I../../gcc- 4.1.0/gcc -I../../gcc-4.1.0/gcc/. -I../../gcc-4.1.0/gcc/../include
> -I../../gcc-4.1.0/gcc/../libcpp/include   -g0 -finhibit-size-directive
> -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
> -fno-unit-at-a-time   \
>           -c ../../gcc-4.1.0/gcc/crtstuff.c -DCRT_BEGIN \
>           -o crtbegin.o
> In file included from ../../gcc-4.1.0/gcc/crtstuff.c:68:
> ../../gcc-4.1.0/gcc/tsystem.h:90:19: error: stdio.h: No such file or
> directory
> ../../gcc-4.1.0/gcc/tsystem.h:93:23: error: sys/types.h: No such file or
> directory
> ../../gcc-4.1.0/gcc/tsystem.h:96:19: error: errno.h: No such file or
> directory
> ../../gcc-4.1.0/gcc/tsystem.h:103:20: error: string.h : No such file or
> directory
> ../../gcc-4.1.0/gcc/tsystem.h:104:20: error: stdlib.h: No such file or
> directory
> ../../gcc-4.1.0/gcc/tsystem.h:105:20: error: unistd.h: No such file or
> directory
> ../../gcc-4.1.0/gcc/tsystem.h:111:18: error: time.h: No such file or
> directory
> make[2]: *** [crtbegin.o] Error 1
> make[2]: Leaving directory
> `/home/lvcargnini/puc/instramed/build/b-gcc/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/home/lvcargnini/puc/instramed/build/b-gcc'
> make: *** [all] Error 2
>
>
> i have modified ../gcc-4.1.0/gcc/config/arm/t-linux and added
> -Dinhibit_libc -D__gthr_posix_h
> what should i do ???
> I'm doing this because of the clock erros that are appearing on compiling
> time with denx toolchain
> Thanks for any help
>
>
> --
> Thanks && Regards
> Msc. Bsc. Luís Vitório Cargnini
> IEEE Member
> Mastering Degree student @ PUC-RS Electrical Engineer Faculty
>



-- 
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Mastering Degree student @ PUC-RS Electrical Engineer Faculty

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems compiling gcc-4.1.0
  2006-07-14 17:45 Problems compiling gcc-4.1.0 Luís Cargnini
  2006-07-14 17:46 ` Luís Cargnini
@ 2006-07-15  5:06 ` Dirk Behme
  1 sibling, 0 replies; 3+ messages in thread
From: Dirk Behme @ 2006-07-15  5:06 UTC (permalink / raw)
  To: lvcargnini; +Cc: OMAP

Luís Cargnini wrote:
> i have modified ../gcc-4.1.0/gcc/config/arm/t-linux and added 
> -Dinhibit_libc
> -D__gthr_posix_h
> what should i do ???

Maybe you should use an other (working?) toolchain?

Building gcc 4.1.0 with crosstool-0.42

http://kegel.com/crosstool/

using crosstool's

eval `cat arm.dat gcc-4.1.0-glibc-2.3.2.dat`  sh all.sh --notest

configuration works for me (except ALSA optimization issue [1]).

Or if you like prebuild toolchain

http://www.codesourcery.com/gnu_toolchains/arm/

Regards

Dirk

[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27363

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-15  5:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-14 17:45 Problems compiling gcc-4.1.0 Luís Cargnini
2006-07-14 17:46 ` Luís Cargnini
2006-07-15  5:06 ` Dirk Behme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox