* Re: [ trouble building MIPS gcc on Linux pc]
@ 2003-11-11 7:34 Dara Hazeghi
0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2003-11-11 7:34 UTC (permalink / raw)
To: rtrask; +Cc: gcc-help
Hello,
building a cross compiler is a relatively involved
process. For an overview, see the CrossGCC FAQ (a bit
outdated, but still pretty good):
<http://www.sthoward.com/CrossGCC/FAQ-4.html#ss4.2>.
For your problem, you need to download and install
cross binutils (configuring with
--target=mips-linux-gnu should be good enough).
However, to build gcc you'll need mips-linux libraries
and headers. You'll either need to extrac them from an
existing installation, or build them as part of the
process. Simpler approach is using prebuilt ones. See
<http://bytesex.org/cross-compiler.html> for an
example of how. If you actually want to build
everything from scratch, Dan Kegel's crosstool is
likely to help considerably
<http://www.kegel.com/crosstool/>.
Also, you may want to address future questions to the
crossgcc mailing list: crossgcc@sources.redhat.com
(see <http://sources.redhat.com/ml/crossgcc>).
Cheers,
Dara
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ trouble building MIPS gcc on Linux pc]
@ 2003-11-11 5:02 Robert Trask
2003-11-11 5:07 ` Rogelio M.Serrano Jr.
0 siblings, 1 reply; 3+ messages in thread
From: Robert Trask @ 2003-11-11 5:02 UTC (permalink / raw)
To: gcc-help
Hello,
I'm trying to build a MIPS big-endian cross compiler for gcc ver 3.0.4
on a Linux pc (Intel cpu) using [native] gcc ver 3.2.
I configure with the following:
./configure --target=mips-\*-linux-gnu
OR
./configure --target=mipsbe-\*-linux-gnu
then just run make.
In either case I get an error message:
/export/home/bob/tools/gcc/gcc-3.0.4/gcc/xgcc
-B/export/home/bob/tools/gcc/gcc-3.0.4/gcc/
-B/usr/local/mips-*-linux-gnu/bin/ -B/usr/local/mips-*-linux-gnu/lib/
-isystem /usr/local/mips-*-linux-gnu/include -DCROSS_COMPILE -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-isystem ./include -I. -I. -I. -I./. -I./config -I./../include -g0 \
-finhibit-size-directive -fno-inline-functions \
-fno-exceptions -Dinhibit_libc \
-c ./crtstuff.c -DCRT_BEGIN -o crtbegin.o
as: unrecognized option `-EB'
It seems the big-endian option is being passed to the native assembler
which chokes on it.
What should I do differently? The same behavior occurs when I use an
earlier [native] version of gcc.
Any insights would be appreciated.
Robert T. Trask
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ trouble building MIPS gcc on Linux pc]
2003-11-11 5:02 Robert Trask
@ 2003-11-11 5:07 ` Rogelio M.Serrano Jr.
0 siblings, 0 replies; 3+ messages in thread
From: Rogelio M.Serrano Jr. @ 2003-11-11 5:07 UTC (permalink / raw)
To: gcc-help
On 2003-11-11 11:04:36 +0800 Robert Trask <rtrask@earthlink.net> wrote:
>
>
> Hello,
> I'm trying to build a MIPS big-endian cross compiler for gcc ver
> 3.0.4 on a
> Linux pc (Intel cpu) using [native] gcc ver 3.2.
>
>
> I configure with the following:
> ./configure --target=mips-\*-linux-gnu
>
> OR
> ./configure --target=mipsbe-\*-linux-gnu
>
you need to specify --host and/or --build
> then just run make.
>
> In either case I get an error message:
> /export/home/bob/tools/gcc/gcc-3.0.4/gcc/xgcc
> -B/export/home/bob/tools/gcc/gcc-3.0.4/gcc/
> -B/usr/local/mips-*-linux-gnu/bin/ -B/usr/local/mips-*-linux-gnu/lib/
> -isystem /usr/local/mips-*-linux-gnu/include -DCROSS_COMPILE -DIN_GCC
> -W
> -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -isystem
> ./include -I. -I. -I. -I./. -I./config -I./../include -g0 \
> -finhibit-size-directive -fno-inline-functions \
> -fno-exceptions -Dinhibit_libc \
> -c ./crtstuff.c -DCRT_BEGIN -o crtbegin.o
> as: unrecognized option `-EB'
>
>
> It seems the big-endian option is being passed to the native
> assembler which
> chokes on it.
> What should I do differently? The same behavior occurs when I use an
> earlier
> [native] version of gcc.
>
> Any insights would be appreciated.
>
> Robert T. Trask
>
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-11 7:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 7:34 [ trouble building MIPS gcc on Linux pc] Dara Hazeghi
-- strict thread matches above, loose matches on Subject: below --
2003-11-11 5:02 Robert Trask
2003-11-11 5:07 ` Rogelio M.Serrano Jr.
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).