* cross compiling for strongarm
@ 2000-10-12 17:50 Arvind Krishnaswamy
2000-10-13 10:01 ` Alexandre Oliva
0 siblings, 1 reply; 9+ messages in thread
From: Arvind Krishnaswamy @ 2000-10-12 17:50 UTC (permalink / raw)
To: gcc-help
I'm having some trouble cross compiling for the strongarm.
Any help will be appreciated.
My host machine is an Intel x86. This what I do
./configure --target=arm-linux --prefix=/arvind/local;
make >& errors;
I used the same options to cross compile binutils.
When I try to make gcc I get the following errors :
tail errors
make GCC_FOR_TARGET="/arvind/local/gcc/gcc/xgcc -B/arvind/local/gcc/gcc/ -B/arvind/local/arm-linux/bin/ -B/arvind/local/arm-linux/lib/ -isystem /arvind/local/arm-linux/include" \
HOST_PREFIX="" HOST_PREFIX_1="loser-" \
AR_FOR_TARGET="arm-linux-ar" \
AR_CREATE_FOR_TARGET="arm-linux-ar rc" \
AR_FLAGS_FOR_TARGET="" \
OLDCC="cc" CCLIBFLAGS="-O" \
CFLAGS="-g -O2 -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long" \
RANLIB_FOR_TARGET="arm-linux-ranlib" \
RANLIB_TEST_FOR_TARGET="[ -f arm-linux-ranlib ] || ( [ "i686-pc-linux-gnu" = "arm-unknown-linux-gnu" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC `echo -g -O2 -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -isystem ./include -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
INCLUDES="-I. -I. -I./config -I./../include" MAYBE_USE_COLLECT2="" \
CONFIG_H="" MACHMODE_H="machmode.h machmode.def" \
LIB1ASMSRC='arm/lib1funcs.asm' \
-f libgcc.mk all
make[2]: Entering directory `/arvind/local/gcc/gcc'
for d in libgcc soft-float libgcc/soft-float; do \
if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/arvind/local/gcc/gcc/xgcc -B/arvind/local/gcc/gcc/ -B/arvind/local/arm-linux/bin/ -B/arvind/local/arm-linux/lib/ -isystem /arvind/local/arm-linux/include -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -isystem ./include -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I./config -I./../include -DL_dvmd_lnx -xassembler-with-cpp -c ./config/arm/lib1funcs.asm -o libgcc/./_dvmd_lnx.o
./config/arm/lib1funcs.asm:633:24: asm/unistd.h: No such file or directory
make[2]: *** [libgcc/./_dvmd_lnx.o] Error 1
make[2]: Leaving directory `/arvind/local/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/arvind/local/gcc/gcc'
make: *** [all-gcc] Error 2
----------------------------------------------------------------
thanks
Arvind
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cross compiling for strongarm
2000-10-12 17:50 cross compiling for strongarm Arvind Krishnaswamy
@ 2000-10-13 10:01 ` Alexandre Oliva
2000-10-13 11:28 ` Arvind Krishnaswamy
0 siblings, 1 reply; 9+ messages in thread
From: Alexandre Oliva @ 2000-10-13 10:01 UTC (permalink / raw)
To: Arvind Krishnaswamy; +Cc: gcc-help
On Oct 12, 2000, Arvind Krishnaswamy <arvind@CS.Arizona.EDU> wrote:
> I'm having some trouble cross compiling for the strongarm.
You need the headers from glibc and the kernel to complete the build
of GCC.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cross compiling for strongarm
2000-10-13 10:01 ` Alexandre Oliva
@ 2000-10-13 11:28 ` Arvind Krishnaswamy
2000-10-13 11:42 ` Alexandre Oliva
0 siblings, 1 reply; 9+ messages in thread
From: Arvind Krishnaswamy @ 2000-10-13 11:28 UTC (permalink / raw)
To: gcc-help
" > I'm having some trouble cross compiling for the strongarm.
"
" You need the headers from glibc and the kernel to complete the build
" of GCC.
"
The header asm/unistd.h is present in /usr/include
It seems as though it doesn;t look under this dir.
Since I'm building at /arvind/local should I copy these files under
/arvind/local ? What am I doing wrong?
-Arvind
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cross compiling for strongarm
2000-10-13 11:28 ` Arvind Krishnaswamy
@ 2000-10-13 11:42 ` Alexandre Oliva
2000-10-13 12:30 ` Arvind Krishnaswamy
0 siblings, 1 reply; 9+ messages in thread
From: Alexandre Oliva @ 2000-10-13 11:42 UTC (permalink / raw)
To: Arvind Krishnaswamy; +Cc: gcc-help
On Oct 13, 2000, Arvind Krishnaswamy <arvind@CS.Arizona.EDU> wrote:
> " > I'm having some trouble cross compiling for the strongarm.
> "
> " You need the headers from glibc and the kernel to complete the build
> " of GCC.
> "
> The header asm/unistd.h is present in /usr/include
Since you're creating a cross compiler, /usr/include is irrelevant.
> Since I'm building at /arvind/local should I copy these files under
> /arvind/local?
No, you need the headers appropriate for the target machine in there.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cross compiling for strongarm
2000-10-13 11:42 ` Alexandre Oliva
@ 2000-10-13 12:30 ` Arvind Krishnaswamy
2000-10-13 12:37 ` Alexandre Oliva
0 siblings, 1 reply; 9+ messages in thread
From: Arvind Krishnaswamy @ 2000-10-13 12:30 UTC (permalink / raw)
To: gcc-help
On Fri, Oct 13, 2000 at 04:41:55PM -0200, Alexandre Oliva wrote:
"
" Since you're creating a cross compiler, /usr/include is irrelevant.
"
" > Since I'm building at /arvind/local should I copy these files under
" > /arvind/local?
"
" No, you need the headers appropriate for the target machine in there.
"
Where can Iget the headers required for the strongarm? Where exactly should
I put them if I'm buiding under /arvind/local
Thanks
Arvind
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cross compiling for strongarm
2000-10-13 12:30 ` Arvind Krishnaswamy
@ 2000-10-13 12:37 ` Alexandre Oliva
2000-10-18 15:48 ` Arvind Krishnaswamy
0 siblings, 1 reply; 9+ messages in thread
From: Alexandre Oliva @ 2000-10-13 12:37 UTC (permalink / raw)
To: Arvind Krishnaswamy; +Cc: gcc-help
On Oct 13, 2000, Arvind Krishnaswamy <arvind@CS.Arizona.EDU> wrote:
> Where can Iget the headers required for the strongarm?
Presumably, in the sources of the kernel and of glibc.
> Where exactly should I put them if I'm buiding under /arvind/local
Point to them using --with-headers.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cross compiling for strongarm
2000-10-13 12:37 ` Alexandre Oliva
@ 2000-10-18 15:48 ` Arvind Krishnaswamy
0 siblings, 0 replies; 9+ messages in thread
From: Arvind Krishnaswamy @ 2000-10-18 15:48 UTC (permalink / raw)
To: gcc-help
When I use the headers from the kernel and run make, I get the
following error. I made sym links (asm,linux) to point to the
appropriate directories in the kernel source. Do I need to recompile
glibc? Please advise.
Thanks
-Arvind
-------
make GCC_FOR_TARGET="/arvind/local/gcc/gcc/xgcc -B/arvind/local/gcc/gcc/ -B/arvind/local/arm-linux/bin/ -B/arvind/local/arm-linux/lib/ -isystem /arvind/local/arm-linux/include" \
HOST_PREFIX="" HOST_PREFIX_1="loser-" \
AR_FOR_TARGET="arm-linux-ar" \
AR_CREATE_FOR_TARGET="arm-linux-ar rc" \
AR_FLAGS_FOR_TARGET="" \
OLDCC="cc" CCLIBFLAGS="-O" \
CFLAGS="-g -O2 -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long" \
RANLIB_FOR_TARGET="arm-linux-ranlib" \
RANLIB_TEST_FOR_TARGET="[ -f arm-linux-ranlib ] || ( [ "i686-pc-linux-gnu" = "arm-unknown-linux-gnu" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC `echo -g -O2 -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -isystem ./include -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
INCLUDES="-I. -I. -I./config -I./../include" MAYBE_USE_COLLECT2="" \
CONFIG_H="" MACHMODE_H="machmode.h machmode.def" \
LIB1ASMSRC='arm/lib1funcs.asm' \
-f libgcc.mk all
make[2]: Entering directory `/arvind/local/gcc/gcc'
for d in libgcc soft-float libgcc/soft-float; do \
if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/arvind/local/gcc/gcc/xgcc -B/arvind/local/gcc/gcc/ -B/arvind/local/arm-linux/bin/ -B/arvind/local/arm-linux/lib/ -isystem /arvind/local/arm-linux/include -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -isystem ./include -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I./config -I./../include -DL_fixunsdfdi -c ./libgcc2.c -o libgcc/./_fixunsdfdi.o
./libgcc2.c: In function `__fixunsdfdi':
./libgcc2.c:777: Internal compiler error in single_set_1, at rtlanal.c:870
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
make[2]: *** [libgcc/./_fixunsdfdi.o] Error 1
make[2]: Leaving directory `/arvind/local/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/arvind/local/gcc/gcc'
make: *** [all-gcc] Error 2
On Fri, Oct 13, 2000 at 05:37:09PM -0200, Alexandre Oliva wrote:
" On Oct 13, 2000, Arvind Krishnaswamy <arvind@CS.Arizona.EDU> wrote:
"
" > Where can Iget the headers required for the strongarm?
"
" Presumably, in the sources of the kernel and of glibc.
"
" > Where exactly should I put them if I'm buiding under /arvind/local
"
" Point to them using --with-headers.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cross compiling for strongarm
2000-10-08 16:11 Arvind Krishnaswamy
@ 2000-10-09 21:59 ` Alexandre Oliva
0 siblings, 0 replies; 9+ messages in thread
From: Alexandre Oliva @ 2000-10-09 21:59 UTC (permalink / raw)
To: Arvind Krishnaswamy; +Cc: gcc-help
On Oct 8, 2000, Arvind Krishnaswamy <arvind@CS.Arizona.EDU> wrote:
> I'm trying to build a gcc for strongarm on an x86 machine.
Make sure you build cross binutils first.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 9+ messages in thread
* cross compiling for strongarm
@ 2000-10-08 16:11 Arvind Krishnaswamy
2000-10-09 21:59 ` Alexandre Oliva
0 siblings, 1 reply; 9+ messages in thread
From: Arvind Krishnaswamy @ 2000-10-08 16:11 UTC (permalink / raw)
To: gcc-help
I'm trying to build a gcc for strongarm on an x86 machine. I'm using a standard
RedHat 6.2 Linux installation. I get the following error message.
Assembler messages:
Fatal error: invalid listing option `p'
make[2]: *** [libgcc/./_udivsi3.o] Error 1
make[2]: Leaving directory `/arvind/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/arvind/gcc/gcc'
make: *** [all-gcc] Error 2
Any help will be appreciated.
I would typically like to build this on RedHat 5.2 installation with gcc 2.7.2.
Is this possible or are there some conflicts between this earlier version gcc
and the version I'm trying to compile(gcc 2.96)?
thanks
-Arvind
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2000-10-18 15:48 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-12 17:50 cross compiling for strongarm Arvind Krishnaswamy
2000-10-13 10:01 ` Alexandre Oliva
2000-10-13 11:28 ` Arvind Krishnaswamy
2000-10-13 11:42 ` Alexandre Oliva
2000-10-13 12:30 ` Arvind Krishnaswamy
2000-10-13 12:37 ` Alexandre Oliva
2000-10-18 15:48 ` Arvind Krishnaswamy
-- strict thread matches above, loose matches on Subject: below --
2000-10-08 16:11 Arvind Krishnaswamy
2000-10-09 21:59 ` Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).