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

Nodejs:- ./node: No such file or directory #672

Open
ArchanaWind opened this issue Apr 4, 2023 · 7 comments
Open

Nodejs:- ./node: No such file or directory #672

ArchanaWind opened this issue Apr 4, 2023 · 7 comments

Comments

@ArchanaWind
Copy link
Contributor

Nodejs binary is not working on host machine

I am working adding Nodejs ptest support, to build tests on host it requires nodejs binary.
Steps to reproduce:
$ bitbake nodejs
$ cd build/tmp/work/core2-64-poky-linux/nodejs/18.14.2-r0/node-v18.14.2
$ ./node
-sh: ./node: No such file or directory

Can any one please confirm is this the expected behaviour , if then how can I build tests on host as it depends on node binary

@kraj
Copy link
Contributor

kraj commented Apr 4, 2023

can you post output of readelf -e node

@ArchanaWind
Copy link
Contributor Author

Output of $readelf -e node:

ELF Header:
Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - GNU
ABI Version: 0
Type: DYN (Position-Independent Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x5269a0
Start of program headers: 64 (bytes into file)
Start of section headers: 1364510248 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 16
Size of section headers: 64 (bytes)
Number of section headers: 42
Section header string table index: 41

Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .interp PROGBITS 00000000000003c0 000003c0
000000000000001a 0000000000000000 A 0 0 1
[ 2] .note.gnu.pr[...] NOTE 00000000000003e0 000003e0
0000000000000030 0000000000000000 A 0 0 8
[ 3] .note.gnu.bu[...] NOTE 0000000000000410 00000410
0000000000000024 0000000000000000 A 0 0 4
[ 4] .note.ABI-tag NOTE 0000000000000434 00000434
0000000000000020 0000000000000000 A 0 0 4
[ 5] .gnu.hash GNU_HASH 0000000000000458 00000458
0000000000034184 0000000000000000 A 6 0 8
[ 6] .dynsym DYNSYM 00000000000345e0 000345e0
00000000000d9f68 0000000000000018 A 7 1 8
[ 7] .dynstr STRTAB 000000000010e548 0010e548
00000000002b9c39 0000000000000000 A 0 0 1
[ 8] .gnu.version VERSYM 00000000003c8182 003c8182
000000000001229e 0000000000000002 A 6 0 2
[ 9] .gnu.version_r VERNEED 00000000003da420 003da420
00000000000002a0 0000000000000000 A 7 7 8
[10] .rela.dyn RELA 00000000003da6c0 003da6c0
00000000001087c8 0000000000000018 A 6 0 8
[11] .rela.plt RELA 00000000004e2e88 004e2e88
00000000000070f8 0000000000000018 AI 6 27 8
[12] .init PROGBITS 00000000004ea000 004ea000
000000000000001b 0000000000000000 AX 0 0 4
[13] .plt PROGBITS 00000000004ea020 004ea020
0000000000004b60 0000000000000010 AX 0 0 16
[14] .plt.got PROGBITS 00000000004eeb80 004eeb80
0000000000000040 0000000000000008 AX 0 0 8
[15] .text PROGBITS 00000000004f0000 004f0000
0000000000fe7160 0000000000000000 AX 0 0 8192
[16] lpstub PROGBITS 0000000001600000 01600000
0000000000000203 0000000000000000 AX 0 0 2097152
[17] .fini PROGBITS 0000000001600204 01600204
000000000000000d 0000000000000000 AX 0 0 4
[18] .rodata PROGBITS 0000000001601000 01601000
00000000006a9c54 0000000000000000 A 0 0 64
[19] .eh_frame_hdr PROGBITS 0000000001caac54 01caac54
000000000005ba04 0000000000000000 A 0 0 4
[20] .eh_frame PROGBITS 0000000001d06658 01d06658
00000000001a1470 0000000000000000 A 0 0 8
[21] .tdata PROGBITS 0000000001ea8e78 01ea7e78
0000000000000004 0000000000000000 WAT 0 0 8
[22] .tbss NOBITS 0000000001ea8e80 01ea7e7c
0000000000000058 0000000000000000 WAT 0 0 8
[23] .init_array INIT_ARRAY 0000000001ea8e80 01ea7e80
0000000000001810 0000000000000008 WA 0 0 8
[24] .fini_array FINI_ARRAY 0000000001eaa690 01ea9690
0000000000000010 0000000000000008 WA 0 0 8
[25] .data.rel.ro PROGBITS 0000000001eaa6a0 01ea96a0
0000000000071008 0000000000000000 WA 0 0 32
[26] .dynamic DYNAMIC 0000000001f1b6a8 01f1a6a8
00000000000002b0 0000000000000010 WA 7 0 8
[27] .got PROGBITS 0000000001f1b958 01f1a958
0000000000002698 0000000000000008 WA 0 0 8
[28] .data PROGBITS 0000000001f1e000 01f1d000
00000000000106e8 0000000000000000 WA 0 0 32
[29] .bss NOBITS 0000000001f2e700 01f2d6e8
000000000001ca40 0000000000000000 WA 0 0 64
[30] .comment PROGBITS 0000000000000000 01f2d6e8
0000000000000012 0000000000000001 MS 0 0 1
[31] .debug_aranges PROGBITS 0000000000000000 01f2d700
00000000000baad0 0000000000000000 0 0 16
[32] .debug_info PROGBITS 0000000000000000 01fe81d0
000000004371320e 0000000000000000 0 0 1
[33] .debug_abbrev PROGBITS 0000000000000000 456fb3de
00000000008ed662 0000000000000000 0 0 1
[34] .debug_line PROGBITS 0000000000000000 45fe8a40
000000000237af0f 0000000000000000 0 0 1
[35] .debug_str PROGBITS 0000000000000000 4836394f
0000000003ad8268 0000000000000001 MS 0 0 1
[36] .debug_line_str PROGBITS 0000000000000000 4be3bbb7
000000000001f25c 0000000000000001 MS 0 0 1
[37] .debug_loclists PROGBITS 0000000000000000 4be5ae13
00000000044f9908 0000000000000000 0 0 1
[38] .debug_rnglists PROGBITS 0000000000000000 5035471b
0000000000af53b9 0000000000000000 0 0 1
[39] .symtab SYMTAB 0000000000000000 50e49ad8
0000000000198858 0000000000000018 40 32523 8
[40] .strtab STRTAB 0000000000000000 50fe2330
000000000056a152 0000000000000000 0 0 1
[41] .shstrtab STRTAB 0000000000000000 5154c482
00000000000001a2 0000000000000000 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
L (link order), O (extra OS processing required), G (group), T (TLS),
C (compressed), x (unknown), o (OS specific), E (exclude),
R (retain), D (mbind), l (large), p (processor specific)

Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
PHDR 0x0000000000000040 0x0000000000000040 0x0000000000000040
0x0000000000000380 0x0000000000000380 R 0x8
INTERP 0x00000000000003c0 0x00000000000003c0 0x00000000000003c0
0x000000000000001a 0x000000000000001a R 0x1
[Requesting program interpreter: /lib/ld-linux-x86-64.so.2]
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x00000000004e9f80 0x00000000004e9f80 R 0x1000
LOAD 0x00000000004ea000 0x00000000004ea000 0x00000000004ea000
0x0000000000004bc0 0x0000000000004bc0 R E 0x1000
LOAD 0x00000000004f0000 0x00000000004f0000 0x00000000004f0000
0x0000000000fe7160 0x0000000000fe7160 R E 0x2000
LOAD 0x0000000001600000 0x0000000001600000 0x0000000001600000
0x0000000000000211 0x0000000000000211 R E 0x200000
LOAD 0

@ArchanaWind
Copy link
Contributor Author

Hi @kraj

Could you please comment on it

@kraj
Copy link
Contributor

kraj commented Apr 5, 2023

hmmm /lib/ld-linux-x86-64.so.2 does that exist on your build system ?
is seems it could be missing the right dynamic linker. Can you try

/lib/ld-linux-x86-64.so.2 ./node

@shr-project
Copy link
Contributor

It's not surprising I think, e.g. my gentoo system has loaded in different directory:
/lib64/ld-linux-x86-64.so.2

which doesn't match with qemux86-64 TARGET build with OE, if you want to run node on your host, build and use nodejs-native.

@kraj
Copy link
Contributor

kraj commented Apr 5, 2023

It's not surprising I think, e.g. my gentoo system has loaded in different directory: /lib64/ld-linux-x86-64.so.2

ah good point I did not see the node being run is from core2-64-poky-linux which is target build of node for a x86_64 target, so yes using nodejs-native is right aproach

which doesn't match with qemux86-64 TARGET build with OE, if you want to run node on your host, build and use nodejs-native.

@ArchanaWind
Copy link
Contributor Author

Thank you for quick response

I have already tried $bitbake nodejs-native, it didn't work for me. let me try it again

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Apr 13, 2023
Update xfce4-panel from 4.18.0 to 4.18.3

* rebase 2 patches

Release notes for 4.18.3
========================
- launcher: Show action menu also when there are several items
- Fix memory management of vala generated plugins
- panel: Rephrase "Don't reserve space on borders" (V2)
- panel: Make property migration generic
- launcher: Avoid "no trigger event" warning when showing the menu
- launcher: Guard access to the plugin menu GdkWindow
- libxfce4panel: Unregister menu also on GtkWidget::hide
- panel: Do not reset output name if a monitor does not have a model name
- libxfce4panel: Fix memory management of source for menu positioning
- panel: Delay removal of ExternalPlugin to prevent use-after-free
- systray: Cancel any async D-Bus operation in finalize()
- tasklist: Do not try to resolve /proc/pid/exe to launch new instance
- Translation Updates:
  Albanian, Arabic, Armenian (Armenia), Asturian, Basque, Belarusian,
  Bulgarian, Catalan, Chinese (China), Chinese (Hong Kong), Chinese
  (Taiwan), Croatian, Czech, Danish, Dutch, Eastern Armenian, English
  (Australia), English (United Kingdom), Estonian, Finnish, French,
  Galician, German, Greek, Hebrew, Hungarian, Icelandic, Indonesian,
  Italian, Japanese, Kazakh, Korean, Lithuanian, Malay, Norwegian
  Bokmål, Norwegian Nynorsk, Occitan (post 1500), Polish, Portuguese,
  Portuguese (Brazil), Romanian, Russian, Serbian, Slovak, Slovenian,
  Spanish, Swedish, Thai, Turkish, Ukrainian, Uyghur, Vietnamese

Release notes for 4.18.2
========================
- directorymenu: Add missing sanity check
- panel: Properly handle null string as property default value
- Revert "Use RGBA visual only if compositing is enabled (Fixes openembedded#251)" (openembedded#672)
- Revert "systray: Do not require compositing to be enabled to use RGBA visual"
- systray: Fix blurry icons in prefs dialog when UI scale > 1
- launcher: Fix blurry icons in prefs and add dialogs when UI scale > 1
- launcher: Use GIcon for the tooltip icon (openembedded#674)
- pager: Use WnckHandle if available (openembedded#695)
- Translation Updates:
  Albanian, Finnish, Greek, Italian, Portuguese, Slovenian

Release notes for 4.18.1
========================
- Update copyright year
- tasklist: Fix scrolling through window buttons (Fixes openembedded#692)
- tasklist: Fix group button visibility
- libxfce4panel: Deprecate XfcePanelImage
- tasklist: Do not duplicate menu item activation
- clock: Fix sync timeout
- docs: Fix version for xfce_panel_set_image_from_source()
- clock: Add missing sanity check
- windowmenu: Adapt wnck default icon size when UI scale > 1 (Fixes openembedded#682)
- tasklist: Adapt wnck default icon size when UI scale > 1 (Fixes openembedded#681)
- tasklist: Fix window count positioning when UI scale > 1
- tasklist: Keep icon pixbuf around and use surface also for menu items
- clock: Do not override custom font formats
- Translation Updates:
  Albanian, Amharic, Arabic, Armenian (Armenia), Asturian, Basque,
  Belarusian, Bengali, Bulgarian, Catalan, Chinese (China), Chinese
  (Hong Kong), Chinese (Taiwan), Croatian, Czech, Danish, Dutch,
  Eastern Armenian, English (Australia), English (United Kingdom),
  Estonian, Finnish, French, Galician, Georgian, German, Greek, Hebrew,
  Hungarian, Icelandic, Indonesian, Interlingue, Italian, Japanese,
  Kazakh, Korean, Lithuanian, Malay, Norwegian Bokmål, Norwegian
  Nynorsk, Occitan (post 1500), Panjabi (Punjabi), Polish, Portuguese,
  Portuguese (Brazil), Romanian, Russian, Serbian, Sinhala, Slovak,
  Slovenian, Spanish, Swedish, Thai, Turkish, Ukrainian, Uyghur,
  Vietnamese

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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

3 participants