Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/sbin/init: error while loading shared libraries: libm.so.6: #12

Open
gengtsh opened this issue Jun 19, 2019 · 1 comment
Open

/sbin/init: error while loading shared libraries: libm.so.6: #12

gengtsh opened this issue Jun 19, 2019 · 1 comment

Comments

@gengtsh
Copy link

gengtsh commented Jun 19, 2019

hi,
when i try to run start-qemu.sh , i encounter an issues:
/sbin/init: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory

the following is whole record:

lu@lu-thinkpad:~/Work/RISCV/riscv-linux/busybear-linux$ ./scripts/start-qemu.sh
bbl loader
[ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[ 0.000000] No DTB passed to the kernel
[ 0.000000] Linux version 5.0.0 (lu@lu-thinkpad) (gcc version 8.3.0 (GCC)) #1 SMP Tue Jun 18 22:52:44 PDT 2019
[ 0.000000] initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200000-0x0000000087ffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x0000000087ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x0000000087ffffff]
[ 0.000000] software IO TLB: mapped [mem 0x83e3c000-0x87e3c000] (64MB)
[ 0.000000] elf_hwcap is 0x112d
[ 0.000000] percpu: Embedded 16 pages/cpu @(ptrval) s25112 r8192 d32232 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 31815
[ 0.000000] Kernel command line: root=/dev/vda ro console=ttyS0
[ 0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.000000] Sorting __ex_table...
[ 0.000000] Memory: 55652K/129024K available (3287K kernel code, 231K rwdata, 933K rodata, 148K init, 764K bss, 73372K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[ 0.000000] plic: mapped 53 interrupts to 1 (out of 2) handlers.
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[ 0.000198] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[ 0.004867] Console: colour dummy device 80x25
[ 0.010140] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
[ 0.010421] pid_max: default: 32768 minimum: 301
[ 0.012627] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.012725] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.054553] rcu: Hierarchical SRCU implementation.
[ 0.065262] smp: Bringing up secondary CPUs ...
[ 0.065435] smp: Brought up 1 node, 1 CPU
[ 0.147954] devtmpfs: initialized
[ 0.158107] random: get_random_u32 called from bucket_table_alloc+0x76/0x17a with crng_init=0
[ 0.161724] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.162171] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.166522] NET: Registered protocol family 16
[ 0.207677] vgaarb: loaded
[ 0.220005] clocksource: Switched to clocksource riscv_clocksource
[ 0.260763] NET: Registered protocol family 2
[ 0.268181] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes)
[ 0.268391] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.268717] TCP bind hash table entries: 1024 (order: 2, 16384 bytes)
[ 0.268938] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.272014] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.272399] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.274479] NET: Registered protocol family 1
[ 0.291991] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[ 0.337034] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[ 0.337236] io scheduler mq-deadline registered
[ 0.337419] io scheduler kyber registered
[ 0.572235] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.583886] printk: console [ttyS0] disabled
[ 0.585262] 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 10, base_baud = 230400) is a 16550A
[ 0.634690] printk: console [ttyS0] enabled
[ 0.660623] loop: module loaded
[ 0.679271] virtio_blk virtio0: [vda] 204800 512-byte logical blocks (105 MB/100 MiB)
[ 0.722422] NET: Registered protocol family 10
[ 0.734534] Segment Routing with IPv6
[ 0.736066] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.748445] NET: Registered protocol family 17
[ 0.798589] EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null)
[ 0.800248] VFS: Mounted root (ext4 filesystem) readonly on device 254:0.
[ 0.826581] Freeing unused kernel memory: 148K
[ 0.827237] This architecture does not have kernel memory protection.
[ 0.828469] Run /sbin/init as init process
/sbin/init: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
[ 0.909525] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 0.910776] CPU: 0 PID: 1 Comm: init Not tainted 5.0.0 #1
[ 0.911595] Call Trace:
[ 0.912259] [] walk_stackframe+0x0/0xa0
[ 0.913066] [] show_stack+0x2a/0x34
[ 0.913760] [] dump_stack+0x62/0x7c
[ 0.914497] [] panic+0xe8/0x22e
[ 0.915149] [] do_exit+0x746/0x764
[ 0.915823] [] do_group_exit+0x2a/0x82
[ 0.916541] [] __wake_up_parent+0x0/0x22
[ 0.917278] [] ret_from_syscall+0x0/0xe
[ 0.918776] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 ]---

@YudeFang
Copy link

YudeFang commented Mar 3, 2024

hi, when i try to run start-qemu.sh , i encounter an issues: /sbin/init: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory

the following is whole record:

lu@lu-thinkpad:~/Work/RISCV/riscv-linux/busybear-linux$ ./scripts/start-qemu.sh bbl loader [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] No DTB passed to the kernel [ 0.000000] Linux version 5.0.0 (lu@lu-thinkpad) (gcc version 8.3.0 (GCC)) #1 SMP Tue Jun 18 22:52:44 PDT 2019 [ 0.000000] initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080200000-0x0000000087ffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080200000-0x0000000087ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x0000000087ffffff] [ 0.000000] software IO TLB: mapped [mem 0x83e3c000-0x87e3c000] (64MB) [ 0.000000] elf_hwcap is 0x112d [ 0.000000] percpu: Embedded 16 pages/cpu @(ptrval) s25112 r8192 d32232 u65536 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 31815 [ 0.000000] Kernel command line: root=/dev/vda ro console=ttyS0 [ 0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.000000] Sorting __ex_table... [ 0.000000] Memory: 55652K/129024K available (3287K kernel code, 231K rwdata, 933K rodata, 148K init, 764K bss, 73372K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU event tracing is enabled. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [ 0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 [ 0.000000] plic: mapped 53 interrupts to 1 (out of 2) handlers. [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns [ 0.000198] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns [ 0.004867] Console: colour dummy device 80x25 [ 0.010140] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000) [ 0.010421] pid_max: default: 32768 minimum: 301 [ 0.012627] Mount-cache hash table entries: 512 (order: 0, 4096 bytes) [ 0.012725] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes) [ 0.054553] rcu: Hierarchical SRCU implementation. [ 0.065262] smp: Bringing up secondary CPUs ... [ 0.065435] smp: Brought up 1 node, 1 CPU [ 0.147954] devtmpfs: initialized [ 0.158107] random: get_random_u32 called from bucket_table_alloc+0x76/0x17a with crng_init=0 [ 0.161724] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.162171] futex hash table entries: 256 (order: 2, 16384 bytes) [ 0.166522] NET: Registered protocol family 16 [ 0.207677] vgaarb: loaded [ 0.220005] clocksource: Switched to clocksource riscv_clocksource [ 0.260763] NET: Registered protocol family 2 [ 0.268181] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes) [ 0.268391] TCP established hash table entries: 1024 (order: 1, 8192 bytes) [ 0.268717] TCP bind hash table entries: 1024 (order: 2, 16384 bytes) [ 0.268938] TCP: Hash tables configured (established 1024 bind 1024) [ 0.272014] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.272399] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.274479] NET: Registered protocol family 1 [ 0.291991] workingset: timestamp_bits=62 max_order=14 bucket_order=0 [ 0.337034] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) [ 0.337236] io scheduler mq-deadline registered [ 0.337419] io scheduler kyber registered [ 0.572235] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 0.583886] printk: console [ttyS0] disabled [ 0.585262] 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 10, base_baud = 230400) is a 16550A [ 0.634690] printk: console [ttyS0] enabled [ 0.660623] loop: module loaded [ 0.679271] virtio_blk virtio0: [vda] 204800 512-byte logical blocks (105 MB/100 MiB) [ 0.722422] NET: Registered protocol family 10 [ 0.734534] Segment Routing with IPv6 [ 0.736066] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 0.748445] NET: Registered protocol family 17 [ 0.798589] EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null) [ 0.800248] VFS: Mounted root (ext4 filesystem) readonly on device 254:0. [ 0.826581] Freeing unused kernel memory: 148K [ 0.827237] This architecture does not have kernel memory protection. [ 0.828469] Run /sbin/init as init process /sbin/init: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory [ 0.909525] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 [ 0.910776] CPU: 0 PID: 1 Comm: init Not tainted 5.0.0 #1 [ 0.911595] Call Trace: [ 0.912259] [] walk_stackframe+0x0/0xa0 [ 0.913066] [] show_stack+0x2a/0x34 [ 0.913760] [] dump_stack+0x62/0x7c [ 0.914497] [] panic+0xe8/0x22e [ 0.915149] [] do_exit+0x746/0x764 [ 0.915823] [] do_group_exit+0x2a/0x82 [ 0.916541] [] __wake_up_parent+0x0/0x22 [ 0.917278] [] ret_from_syscall+0x0/0xe [ 0.918776] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 ]---

hi how do you resolve this problem? I meet this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants