linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* libc.so.6 error but not in Montavista
@ 2001-04-14  7:23 David de Andrés Martínez
  2001-09-23 18:00 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: David de Andrés Martínez @ 2001-04-14  7:23 UTC (permalink / raw)
  To: linuxppc-embedded


I am trying to build a ramdisk for a TQM823L module using the LinuxPPC
(2.4.4) and CDK provided by DENX.

I have built the CDK withouth any problems and so the ramdisk.
But when I try to boot the system, I obtain the following error:
....
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 52k init
init: error in loading shared libraries: libc.so.6: cannot open shared
object fi
le: No such file or directory
Kernel panic: Attempted to kill init!
Rebooting in 180 seconds..

I have been searching the lists for a solution but it seems that people
with the same problem were using the Montavista version, not the DENX
one.
The proposed solution for Montavista is:
--------
If your shared libraries are (as usual) in the "/lib" directory, add the
following option to the GCC command line when linking your binary:
-Wl,-R/lib
--------
In fact, I don't know where to add this option.

The /lib/libc.so in the ramdisk shows the following code:
---------------------
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
GROUP ( /LinuxPPC/CDK/lib/libc.so.6 /LinuxPPC/CDK/lib/libc_nonshared.a )
---------------------
I think that this isn't right.

Any help would be great.

--
----------------------------------------------------------------------
| David de Andrés Martínez   | Fault Tolerant Systems research Group |
|                            |                                       |
| Computer Science Engineer  | Email: ddandres@disca.upv.es          |
| Doctorate Student          | Phone: +34 96 387.75.74 Ext 75774     |
|                            | Fax: +34 96 387.75.79                 |
-------Address--------------------------------------------------------
|                 DISCA-EUI                                          |
|                 Universidad Politécnica de Valencia                |
|                 Campus de Vera #14                                 |
|                 Valencia E-46021                                   |
|                 Spain                                              |
----------------------------------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* libc.so.6 error but not in Montavista
@ 2001-09-21  8:22 David de Andrés Martínez
  0 siblings, 0 replies; 3+ messages in thread
From: David de Andrés Martínez @ 2001-09-21  8:22 UTC (permalink / raw)
  To: linuxppc-embedded


 I am trying to build a ramdisk for a TQM823L module using the LinuxPPC
 (2.4.4) and CDK provided by DENX.

 I have built the CDK withouth any problems and so the ramdisk.
 But when I try to boot the system, I obtain the following error:
 ....
 EXT2-fs warning: checktime reached, running e2fsck is recommended
 VFS: Mounted root (ext2 filesystem).
 Freeing unused kernel memory: 52k init
 init: error in loading shared libraries: libc.so.6: cannot open shared
 object fi
 le: No such file or directory
 Kernel panic: Attempted to kill init!
 Rebooting in 180 seconds..

 I have been searching the lists for a solution but it seems that people
 with the same problem were using the Montavista version, not the DENX
 one.
 The proposed solution for Montavista is:
 --------
 If your shared libraries are (as usual) in the "/lib" directory, add
the
 following option to the GCC command line when linking your binary:
 -Wl,-R/lib
 --------
 In fact, I don't know where to add this option.

 The /lib/libc.so in the ramdisk shows the following code:
 ---------------------
 /* GNU ld script
    Use the shared library, but some functions are only in
    the static library, so try that secondarily.  */
 GROUP ( /LinuxPPC/CDK/lib/libc.so.6 /LinuxPPC/CDK/lib/libc_nonshared.a
)
 ---------------------
 I think that this isn't right.

 Any help would be great.

--
----------------------------------------------------------------------
| David de Andrés Martínez   | Fault Tolerant Systems research Group |
|                            |                                       |
| Computer Science Engineer  | Email: ddandres@disca.upv.es          |
| Doctorate Student          | Phone: +34 96 387.75.74 Ext 75774     |
|                            | Fax: +34 96 387.75.79                 |
-------Address--------------------------------------------------------
|                 DISCA-EUI                                          |
|                 Universidad Politécnica de Valencia                |
|                 Campus de Vera #14                                 |
|                 Valencia E-46021                                   |
|                 Spain                                              |
----------------------------------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: libc.so.6 error but not in Montavista
  2001-04-14  7:23 David de Andrés Martínez
@ 2001-09-23 18:00 ` Wolfgang Denk
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2001-09-23 18:00 UTC (permalink / raw)
  To: David de Andrés Martínez; +Cc: linuxppc-embedded


In message <3AD7FAF8.44670189@disca.upv.es> you wrote:
>
> I have built the CDK withouth any problems and so the ramdisk.
> But when I try to boot the system, I obtain the following error:
> ....
> init: error in loading shared libraries: libc.so.6: cannot open shared
> object fi
> le: No such file or directory
...
> If your shared libraries are (as usual) in the "/lib" directory, add the
> following option to the GCC command line when linking your binary:
> -Wl,-R/lib
> --------
> In fact, I don't know where to add this option.

There is a patch for our old version of the cross tools; see
ftp://ftp.denx.de/pub/LinuxPPC/usr/src/patches/specs.tar.bz2

This fixes the compiler "specs" files to automatically add this option.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Harrison's Postulate:
	For every action, there is an equal and opposite criticism.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-09-23 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-21  8:22 libc.so.6 error but not in Montavista David de Andrés Martínez
  -- strict thread matches above, loose matches on Subject: below --
2001-04-14  7:23 David de Andrés Martínez
2001-09-23 18:00 ` Wolfgang Denk

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 NNTP newsgroup(s).