public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* RE: GCC Cross-compile to MIPS target (any SO)
@ 2001-01-10  6:31 Yves Rutschle
  2001-04-01  0:00 ` Yves Rutschle
  0 siblings, 1 reply; 4+ messages in thread
From: Yves Rutschle @ 2001-01-10  6:31 UTC (permalink / raw)
  To: 'Francisco Rodriguez', 'crossgcc@sourceware.cygnus.com'

> I'm trying to build gcc to target MIPS processors on a 
> i386-Linux box. The processor has no
> operating system, so the toolchain I need will end in an 
> absolute binary image with the opcodes
> (in intel-hex or motorola-S-records) using objcopy.
> 
> I've already read the docs, and the how-to you can find at 
> http://www.village.org/villagers/imp/build.html .
> I'm using current snapshot of gcc from CVS (2.97 i think) and 
> binutils 2.10.1
> 
> The params in configure are --target=mipsel-linuxelf 
> --prefix=/gcc-mipsel
> The binutils part goes fine. The problem arises when 
> compiling gcc, and i think is because of the libraries.

If you don't have an operating system on the target, then you
most probably do not want to compile for linux.. Nor use glibc.
You should have a try at getting newlib and building with
that one instead.

To build with newlib, I suggest you have a look at
http://sources.redhat.com/ml/crossgcc/2000-q4/msg00042.html

Cheers,
Yves



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: GCC Cross-compile to MIPS target (any SO)
  2001-01-10  6:31 GCC Cross-compile to MIPS target (any SO) Yves Rutschle
@ 2001-04-01  0:00 ` Yves Rutschle
  0 siblings, 0 replies; 4+ messages in thread
From: Yves Rutschle @ 2001-04-01  0:00 UTC (permalink / raw)
  To: 'Francisco Rodriguez', 'crossgcc@sourceware.cygnus.com'

> I'm trying to build gcc to target MIPS processors on a 
> i386-Linux box. The processor has no
> operating system, so the toolchain I need will end in an 
> absolute binary image with the opcodes
> (in intel-hex or motorola-S-records) using objcopy.
> 
> I've already read the docs, and the how-to you can find at 
> http://www.village.org/villagers/imp/build.html .
> I'm using current snapshot of gcc from CVS (2.97 i think) and 
> binutils 2.10.1
> 
> The params in configure are --target=mipsel-linuxelf 
> --prefix=/gcc-mipsel
> The binutils part goes fine. The problem arises when 
> compiling gcc, and i think is because of the libraries.

If you don't have an operating system on the target, then you
most probably do not want to compile for linux.. Nor use glibc.
You should have a try at getting newlib and building with
that one instead.

To build with newlib, I suggest you have a look at
http://sources.redhat.com/ml/crossgcc/2000-q4/msg00042.html

Cheers,
Yves



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* GCC Cross-compile to MIPS target (any SO)
  2001-01-10  5:11 Francisco Rodriguez
@ 2001-04-01  0:00 ` Francisco Rodriguez
  0 siblings, 0 replies; 4+ messages in thread
From: Francisco Rodriguez @ 2001-04-01  0:00 UTC (permalink / raw)
  To: 'crossgcc@sourceware.cygnus.com'

Hello all

I'm trying to build gcc to target MIPS processors on a i386-Linux box. The processor has no
operating system, so the toolchain I need will end in an absolute binary image with the opcodes
(in intel-hex or motorola-S-records) using objcopy.

I've already read the docs, and the how-to you can find at http://www.village.org/villagers/imp/build.html .
I'm using current snapshot of gcc from CVS (2.97 i think) and binutils 2.10.1

The params in configure are --target=mipsel-linuxelf --prefix=/gcc-mipsel
The binutils part goes fine. The problem arises when compiling gcc, and i think is because of the libraries.

I've tried installing libc-960619-2.tar.gz and glibc-960501.tar.gz on /gcc-mipsel, and got this message from
the make-fragment libgcc.mk (trying to resolve "./libgcc_s.so" target:
"/gcc-mipsel/mipsel-linuxelf/bin/ld: cannot find libc.so.1
collect2: ld returned 1 exit status
make[1]: *** [libgcc_s.so] Error 1"

The file libc.so.1 does not appear in the libc / glibc distribution. It should?
Nevertheless I've tried copying libc.so to libc.so.1 and the error message is the same.

Then I've modified the ligcc.mk make to insert "Wl,-L /gcc-mipsel/lib", in the hope to pass the linker
a library search directory where I'm sure the file can be found (I've made the copy there!), without success.


Any hints?


Thanks everyone
	Francisco Rodriguez


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* GCC Cross-compile to MIPS target (any SO)
@ 2001-01-10  5:11 Francisco Rodriguez
  2001-04-01  0:00 ` Francisco Rodriguez
  0 siblings, 1 reply; 4+ messages in thread
From: Francisco Rodriguez @ 2001-01-10  5:11 UTC (permalink / raw)
  To: 'crossgcc@sourceware.cygnus.com'

Hello all

I'm trying to build gcc to target MIPS processors on a i386-Linux box. The processor has no
operating system, so the toolchain I need will end in an absolute binary image with the opcodes
(in intel-hex or motorola-S-records) using objcopy.

I've already read the docs, and the how-to you can find at http://www.village.org/villagers/imp/build.html .
I'm using current snapshot of gcc from CVS (2.97 i think) and binutils 2.10.1

The params in configure are --target=mipsel-linuxelf --prefix=/gcc-mipsel
The binutils part goes fine. The problem arises when compiling gcc, and i think is because of the libraries.

I've tried installing libc-960619-2.tar.gz and glibc-960501.tar.gz on /gcc-mipsel, and got this message from
the make-fragment libgcc.mk (trying to resolve "./libgcc_s.so" target:
"/gcc-mipsel/mipsel-linuxelf/bin/ld: cannot find libc.so.1
collect2: ld returned 1 exit status
make[1]: *** [libgcc_s.so] Error 1"

The file libc.so.1 does not appear in the libc / glibc distribution. It should?
Nevertheless I've tried copying libc.so to libc.so.1 and the error message is the same.

Then I've modified the ligcc.mk make to insert "Wl,-L /gcc-mipsel/lib", in the hope to pass the linker
a library search directory where I'm sure the file can be found (I've made the copy there!), without success.


Any hints?


Thanks everyone
	Francisco Rodriguez


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2001-04-01  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-10  6:31 GCC Cross-compile to MIPS target (any SO) Yves Rutschle
2001-04-01  0:00 ` Yves Rutschle
  -- strict thread matches above, loose matches on Subject: below --
2001-01-10  5:11 Francisco Rodriguez
2001-04-01  0:00 ` Francisco Rodriguez

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).