* Re: problem while building arm-linux-gcc using with-cpu=iwmmxt
[not found] <277543950.28227@eyou.com>
@ 2004-02-23 16:03 ` Dan Kegel
2004-02-26 15:35 ` Dan Kegel
1 sibling, 0 replies; 3+ messages in thread
From: Dan Kegel @ 2004-02-23 16:03 UTC (permalink / raw)
To: add; +Cc: gcc-help, crossgcc, nickc
add wrote:
> Has anybody here before buiding gcc-3.4 cvs version using --with-cpu=iwmmxt
> option?
> I'm doing this based on dan's crosstool-0.27.
> Finally I found out the bootstrap gcc has problem to build glibc-2.3.2 while
> processing glibc/locale/ld-callob.c
> it will say:
> /tmp/ccWwfxuD.s: Assembler messages:
> /tmp/ccWwfxuD.s:6430: Error: bad immediate value for offset (4128)
> /tmp/ccWwfxuD.s:6435: Error: bad immediate value for offset (4112)
>
> while using option --with-cpu=xscale, it will be ok. So I think this is
> related to iwmmxt specific codes in gcc-3.4-cvs.
Interesting. I can't find the source file you mention (ld-callob.c);
can you check the filename? Is it generated during the build?
For what it's worth, here's a link that discusses this error message:
http://gcc.gnu.org/PR11442
Sounds like a glibc issue, offhand.
I haven't tried --with-cpu=iwmmxt myself. It's fairly new
(http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02098.html)
so perhaps nobody's built glibc with it yet.
- Dan
--
US citizens: if you're considering voting for Bush, look at these first:
http://www.misleader.org/
http://www.cbc.ca/news/background/arar/
http://www.house.gov/reform/min/politicsandscience/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem while building arm-linux-gcc using with-cpu=iwmmxt
[not found] <277543950.28227@eyou.com>
2004-02-23 16:03 ` problem while building arm-linux-gcc using with-cpu=iwmmxt Dan Kegel
@ 2004-02-26 15:35 ` Dan Kegel
1 sibling, 0 replies; 3+ messages in thread
From: Dan Kegel @ 2004-02-26 15:35 UTC (permalink / raw)
To: add; +Cc: gcc-help, crossgcc
add wrote:
> Has anybody here before buiding gcc-3.4 cvs version using --with-cpu=iwmmxt
> option?
> I'm doing this based on dan's crosstool-0.27.
> Finally I found out the bootstrap gcc has problem to build glibc-2.3.2 while
> processing glibc/locale/ld-callob.c
> it will say:
> /tmp/ccWwfxuD.s: Assembler messages:
> /tmp/ccWwfxuD.s:6430: Error: bad immediate value for offset (4128)
> /tmp/ccWwfxuD.s:6435: Error: bad immediate value for offset (4112)
>
> while using option --with-cpu=xscale, it will be ok. So I think this is
> related to iwmmxt specific codes in gcc-3.4-cvs.
>
> Who succeeded to build iwmmxt gcc-3.4, pls raise your hand ok? thanks!
gcc-3.4-20040225 builds fine for me here, though I haven't tried
testing the resulting toolchain.
Here is a patch to crosstool to add the needed files.
You might also need to give crosstool an arm-iwmmxt.config for
the kernel, and change arm-iwmmxt.dat to reference that instead
of arm.config. If you find this is the case, please send me the
kernel config file you end up using.
diff -Naur crosstool-0.28-pre2/arm-iwmmxt.dat crosstool-cur/arm-iwmmxt.dat
--- crosstool-0.28-pre2/arm-iwmmxt.dat 1969-12-31 16:00:00.000000000 -0800
+++ crosstool-cur/arm-iwmmxt.dat 2004-02-23 17:40:04.000000000 -0800
@@ -0,0 +1,4 @@
+KERNELCONFIG=$PWD/arm.config
+TARGET=arm-iwmmxt-linux-gnu
+TARGET_CFLAGS="-O"
+GCC_EXTRA_CONFIG="--with-cpu=iwmmxt --enable-cxx-flags=-mcpu=iwmmxt"
diff -Naur crosstool-0.28-pre2/demo-arm-iwmmxt.sh crosstool-cur/demo-arm-iwmmxt.sh
--- crosstool-0.28-pre2/demo-arm-iwmmxt.sh 1969-12-31 16:00:00.000000000 -0800
+++ crosstool-cur/demo-arm-iwmmxt.sh 2004-02-25 22:56:06.000000000 -0800
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -ex
+export TARBALLS_DIR=~/downloads
+export RESULT_TOP=/opt/crosstool
+
+# Really, you should do the mkdir before running this,
+# and chown /opt/crosstool to yourself so you don't need to run as root.
+mkdir -p /opt/crosstool
+
+# Build the toolchain. Takes a couple hours and a couple gigabytes.
+
+eval `cat arm-iwmmxt.dat gcc-3.4-20040225-glibc-2.3.2.dat` sh all.sh --notest
+
+echo Done.
diff -Naur crosstool-0.28-pre2/gcc-3.4-20040225-glibc-2.3.2.dat crosstool-cur/gcc-3.4-20040225-glibc-2.3.2.dat
--- crosstool-0.28-pre2/gcc-3.4-20040225-glibc-2.3.2.dat 1969-12-31 16:00:00.000000000 -0800
+++ crosstool-cur/gcc-3.4-20040225-glibc-2.3.2.dat 2004-02-25 22:56:31.000000000 -0800
@@ -0,0 +1,6 @@
+BINUTILS_DIR=binutils-2.14.90.0.5
+BINUTILS_URL=http://www.kernel.org/pub/linux/devel/binutils
+GCC_DIR=gcc-3.4-20040225
+GLIBC_DIR=glibc-2.3.2
+LINUX_DIR=linux-2.4.21
+GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.2
- Dan
--
US citizens: if you're considering voting for Bush, look at these first:
http://www.misleader.org/
http://www.cbc.ca/news/background/arar/
http://www.house.gov/reform/min/politicsandscience/
^ permalink raw reply [flat|nested] 3+ messages in thread
* problem while building arm-linux-gcc using with-cpu=iwmmxt
[not found] <20040223214548.82324.qmail@eyou.com>
@ 2004-02-23 13:46 ` add
0 siblings, 0 replies; 3+ messages in thread
From: add @ 2004-02-23 13:46 UTC (permalink / raw)
To: gcc-help, crossgcc; +Cc: addsub
Has anybody here before buiding gcc-3.4 cvs version using --with-cpu=iwmmxt
option?
I'm doing this based on dan's crosstool-0.27.
Finally I found out the bootstrap gcc has problem to build glibc-2.3.2 while
processing glibc/locale/ld-callob.c
it will say:
/tmp/ccWwfxuD.s: Assembler messages:
/tmp/ccWwfxuD.s:6430: Error: bad immediate value for offset (4128)
/tmp/ccWwfxuD.s:6435: Error: bad immediate value for offset (4112)
while using option --with-cpu=xscale, it will be ok. So I think this is
related to iwmmxt specific codes in gcc-3.4-cvs.
Who succeeded to build iwmmxt gcc-3.4, pls raise your hand ok? thanks!
--http://www.eyou.com
--Ãö¨¿Ã¿¿µÃµçÃÃÃÃ
Ãä ÃïÃôÃüþ Ãö¯Ãéé ÃÃÃú·þÃñ ÃøÃç´æ´¢...ÃÃÃÃô¾¡
--http://vip.eyou.com
--¿ì¿ìµÃüÃÃÃÃVIPÃÃ
Ãä â²áÃúÃÃÃâµÃÃÃȤÃû
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-26 10:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <277543950.28227@eyou.com>
2004-02-23 16:03 ` problem while building arm-linux-gcc using with-cpu=iwmmxt Dan Kegel
2004-02-26 15:35 ` Dan Kegel
[not found] <20040223214548.82324.qmail@eyou.com>
2004-02-23 13:46 ` add
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).