All of lore.kernel.org
 help / color / mirror / Atom feed
* crt1.o missing
@ 2004-10-16  0:48 thomas_blattmann
  2004-10-16 16:40 ` Ralf Baechle
  0 siblings, 1 reply; 6+ messages in thread
From: thomas_blattmann @ 2004-10-16  0:48 UTC (permalink / raw)
  To: linux-mips

Hi,

I'm trying to crosscompile a hello-world program but it
fails:

/usr/local/lib/gcc-lib/mipsel-linux/2.96-mips3264-000710/../../../../mipsel-linux/bin/ld: cannot open crt1.o:
No such file or directory
collect2: ld returned 1 exit status

There are several postings in the archives but non of
them helped me on so far. I will probably have to get
the libc for mipsel-linux - but where can I get it and
what to do with it ??

Thanks,

Thomas
 

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

* Re: crt1.o missing
  2004-10-16  0:48 crt1.o missing thomas_blattmann
@ 2004-10-16 16:40 ` Ralf Baechle
  0 siblings, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2004-10-16 16:40 UTC (permalink / raw)
  To: thomas_blattmann; +Cc: linux-mips

On Fri, Oct 15, 2004 at 05:48:31PM -0700, thomas_blattmann@canada.com wrote:

> I'm trying to crosscompile a hello-world program but it
> fails:
> 
> /usr/local/lib/gcc-lib/mipsel-linux/2.96-mips3264-000710/../../../../mipsel-linux/bin/ld: cannot open crt1.o:
> No such file or directory
> collect2: ld returned 1 exit status
> 
> There are several postings in the archives but non of
> them helped me on so far. I will probably have to get
> the libc for mipsel-linux - but where can I get it and
> what to do with it ??

You need to install libc; the crt1.o file would end up being in
/usr/local/mipsel-linux/lib/crt1.o then.

  Ralf

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

* Re: crt1.o missing
@ 2004-10-18 23:55 thomas_blattmann
  2004-10-19  8:22 ` Geert Uytterhoeven
  0 siblings, 1 reply; 6+ messages in thread
From: thomas_blattmann @ 2004-10-18 23:55 UTC (permalink / raw)
  To: linux-mips


> 
> On Fri, Oct 15, 2004 at 05:48:31PM -0700,
> thomas_blattmann@canada.com wrote:
> 
> > I'm trying to crosscompile a hello-world program but
> it
> > fails:
> > 
> >
>
/usr/local/lib/gcc-lib/mipsel-linux/2.96-mips3264-000710/../../../../mipsel-linux/bin/ld: cannot open crt1.o:
> > No such file or directory
> > collect2: ld returned 1 exit status
> > 
> > There are several postings in the archives but non
of
> > them helped me on so far. I will probably have to
get
> > the libc for mipsel-linux - but where can I get it
and
> > what to do with it ??
> 
> You need to install libc; the crt1.o file would end up
> being in
> /usr/local/mipsel-linux/lib/crt1.o then.
> 
>   Ralf

Hi,
what libc do I have to install and where can I get it.
I have libc6 installed:

inspiron:~# apt-get install libc6
Reading Package Lists... Done
Building Dependency Tree... Done
libc6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not
upgraded.

inspiron:~# apt-get install libc6-dev
Reading Package Lists... Done
Building Dependency Tree... Done
libc6-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not
upgraded.

inspiron:~# uname -a
Linux inspiron 2.4.26 #7 Thu Sep 9 17:11:08 CEST 2004
i686 GNU/Linux

inspiron:/# find -name crt1.o
./usr/lib/crt1.o
inspiron:~#

Would be very happy if anybody could give me an hint
how to get it work...

thx

Thomas

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

* Re: crt1.o missing
  2004-10-18 23:55 thomas_blattmann
@ 2004-10-19  8:22 ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2004-10-19  8:22 UTC (permalink / raw)
  To: thomas_blattmann; +Cc: Linux/MIPS Development

On Mon, 18 Oct 2004 thomas_blattmann@canada.com wrote:
> > On Fri, Oct 15, 2004 at 05:48:31PM -0700,
> > thomas_blattmann@canada.com wrote:
> > 
> > > I'm trying to crosscompile a hello-world program but
> > it
> > > fails:
> >
> /usr/local/lib/gcc-lib/mipsel-linux/2.96-mips3264-000710/../../../../mipsel-linux/bin/ld: cannot open crt1.o:
> > > No such file or directory
> > > collect2: ld returned 1 exit status
> > > 
> > > There are several postings in the archives but non
> of
> > > them helped me on so far. I will probably have to
> get
> > > the libc for mipsel-linux - but where can I get it
> and
> > > what to do with it ??
> > 
> > You need to install libc; the crt1.o file would end up
> > being in
> > /usr/local/mipsel-linux/lib/crt1.o then.
> > 
> >   Ralf
> 
> Hi,
> what libc do I have to install and where can I get it.
> I have libc6 installed:
> 
> inspiron:~# apt-get install libc6
> Reading Package Lists... Done
> Building Dependency Tree... Done
> libc6 is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 1 not
> upgraded.
> 
> inspiron:~# apt-get install libc6-dev
> Reading Package Lists... Done
> Building Dependency Tree... Done
> libc6-dev is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 1 not
> upgraded.
> 
> inspiron:~# uname -a
> Linux inspiron 2.4.26 #7 Thu Sep 9 17:11:08 CEST 2004
> i686 GNU/Linux

That's the host-libc6. You need a target-libc6.

tpkg-install-libc can do that for you. You need to install dpkg-cross and
toolchain-source first.  More information about this can be found in
/usr/share/doc/toolchain-source/ (toolchain-source is the Debian-recommended
way to build cross-compilers).

But since you're compiler is installed in /usr/local/ and dpkg-cross will
install libc6 in /usr, you'll have to add some symbolic links from (possibly
some parts under) /usr/local/mipsel-linux/ to /usr/lib/mipsel-linux/.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

* Re: crt1.o missing
@ 2004-10-21  0:35 thomas_blattmann
  2004-10-21  7:47 ` Geert Uytterhoeven
  0 siblings, 1 reply; 6+ messages in thread
From: thomas_blattmann @ 2004-10-21  0:35 UTC (permalink / raw)
  To: geert; +Cc: linux-mips


> That's the host-libc6. You need a target-libc6.
> 
> tpkg-install-libc can do that for you. You need to
> install dpkg-cross and
> toolchain-source first.  More information about this
> can be found in
> /usr/share/doc/toolchain-source/ (toolchain-source is
> the Debian-recommended
> way to build cross-compilers).
> 
> But since you're compiler is installed in /usr/local/
> and dpkg-cross will
> install libc6 in /usr, you'll have to add some
symbolic
> links from (possibly
> some parts under) /usr/local/mipsel-linux/ to
> /usr/lib/mipsel-linux/.
> 
> Gr{oetje,eeting}s,
> 
> 						Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond
ia32
> -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I
call
> myself a hacker. But
> when I'm talking to journalists I just say
"programmer"
> or something like that.
> 							    -- Linus 

I tired 'tpkg-install-libc mipsel' and mipsel-linux. It
failed with the error message

Building libc6-mipsel-cross_2.3.2.ds1-18_all.deb
Unpacking libc6-mipsel-cross
dpkg: dependency problems prevent configuration of
libc6-mipsel-cross:
 libc6-mipsel-cross depends on
libdb1-compat-mipsel-cross; however:
  Package libdb1-compat-mipsel-cross is not installed.
dpkg: error processing libc6-mipsel-cross (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libc6-mipsel-cross
dpkg -i failed.


...and I can't find this package
libdb1-compat-mipsel-cross.

I also tried dpgk-make mipsel - got the two
directories, debuild and debi worked well with
binutils-gcc-mipsel-2.15 - debuild failes however in
gcc-mipsel-3.0.4 withdh_testdir
dh_testroot
dh_installdocs
dh_installman
dh_installinfo
dh_undocumented
dh_installchangelogs 
dh_link
dh_strip
strip: Unable to recognise the format of the input file
_m16subsf3.o
dh_strip: command returned error code
make: *** [binary-arch] Error 1
debuild: fatal error at line 456:
dpkg-buildpackage failed!

All I need is to compile hello world to get it run on a
mips ;) Any ideas ?

thx

Thomas

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

* Re: crt1.o missing
  2004-10-21  0:35 thomas_blattmann
@ 2004-10-21  7:47 ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2004-10-21  7:47 UTC (permalink / raw)
  To: thomas_blattmann; +Cc: Linux/MIPS Development

On Wed, 20 Oct 2004 thomas_blattmann@canada.com wrote:
> > That's the host-libc6. You need a target-libc6.
> > 
> > tpkg-install-libc can do that for you. You need to
> > install dpkg-cross and
> > toolchain-source first.  More information about this
> > can be found in
> > /usr/share/doc/toolchain-source/ (toolchain-source is
> > the Debian-recommended
> > way to build cross-compilers).
> > 
> > But since you're compiler is installed in /usr/local/
> > and dpkg-cross will
> > install libc6 in /usr, you'll have to add some
> symbolic
> > links from (possibly
> > some parts under) /usr/local/mipsel-linux/ to
> > /usr/lib/mipsel-linux/.
> 
> I tired 'tpkg-install-libc mipsel' and mipsel-linux. It
> failed with the error message
> 
> Building libc6-mipsel-cross_2.3.2.ds1-18_all.deb
> Unpacking libc6-mipsel-cross
> dpkg: dependency problems prevent configuration of
> libc6-mipsel-cross:
>  libc6-mipsel-cross depends on
> libdb1-compat-mipsel-cross; however:
>   Package libdb1-compat-mipsel-cross is not installed.
> dpkg: error processing libc6-mipsel-cross (--install):
>  dependency problems - leaving unconfigured
> Errors were encountered while processing:
>  libc6-mipsel-cross
> dpkg -i failed.
> 
> 
> ...and I can't find this package
> libdb1-compat-mipsel-cross.

Which toolchain-source are you using? Probably the one in Debian stable? Please
try testing.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

end of thread, other threads:[~2004-10-21  7:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-16  0:48 crt1.o missing thomas_blattmann
2004-10-16 16:40 ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2004-10-18 23:55 thomas_blattmann
2004-10-19  8:22 ` Geert Uytterhoeven
2004-10-21  0:35 thomas_blattmann
2004-10-21  7:47 ` Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.