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

Build problem on Windows WSL #693

Closed
Raivon opened this issue Aug 13, 2020 · 7 comments
Closed

Build problem on Windows WSL #693

Raivon opened this issue Aug 13, 2020 · 7 comments

Comments

@Raivon
Copy link

Raivon commented Aug 13, 2020

Traceback (most recent call last):
File "../../deps/v8/tools/run.py", line 12, in
sys.exit(subprocess.call(sys.argv[1:]))
File "/usr/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
make[5]: *** [tools/v8_gypfiles/generate_bytecode_builtins_list.target.mk:13: /home/vova/openwrt/build_dir/target-mips_24kc_musl/node-v12.14.0/out/Release/obj/gen/generate-bytecode-output-root/builtins-generated/bytecodes-builtins-list.h] Error 1
make[4]: *** [Makefile:101: node] Error 2
make[4]: Leaving directory '/home/vova/openwrt/build_dir/target-mips_24kc_musl/node-v12.14.0'
make[3]: *** [Makefile:197: /home/vova/openwrt/build_dir/target-mips_24kc_musl/node-v12.14.0/.built] Error 2
make[3]: Leaving directory '/home/vova/openwrt/feeds/node/node'
time: package/feeds/node/node/compile#0.28#1.20#1.48
make[2]: *** [package/Makefile:113: package/feeds/node/node/compile] Error 2
make[2]: Leaving directory '/home/vova/openwrt'
make[1]: *** [package/Makefile:107: /home/vova/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/vova/openwrt'
make: *** [/home/vova/openwrt/include/toplevel.mk:218: world] Error 2

Build system Debian 10.3 x64

@nxhack
Copy link
Owner

nxhack commented Aug 14, 2020

@Raivon

I was able to build it here.
Can you show me a slightly earlier log of this log?

@Raivon
Copy link
Author

Raivon commented Aug 14, 2020

buildlog.txt
This is a complete log

@nxhack
Copy link
Owner

nxhack commented Aug 14, 2020

@Raivon

Run this command and let me know the result

file /home/vova/openwrt/build_dir/target-mips_24kc_musl/node-v12.14.0/out/Release/bytecode_builtins_list_generator

@nxhack
Copy link
Owner

nxhack commented Aug 14, 2020

You probably don't have multilib installed in your host environment.
Run this command to install multilib.

sudo apt-get install gcc-multilib g++-multilib

@Raivon
Copy link
Author

Raivon commented Aug 16, 2020

@Raivon

Run this command and let me know the result

file /home/vova/openwrt/build_dir/target-mips_24kc_musl/node-v12.14.0/out/Release/bytecode_builtins_list_generator

/home/vova/openwrt/build_dir/target-mips_24kc_musl/node-v12.14.0/out/Release/bytecode_builtins_list_generator: ELF 32-bit LSB pie executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=08f1f4ff2b5fc3aa50c1af2291a4e23bd2d25403, not stripped

You probably don't have multilib installed in your host environment.
Run this command to install multilib.

sudo apt-get install gcc-multilib g++-multilib

I have installed libraries beforehand
g++-multilib is already the newest version (4:8.3.0-1). gcc-multilib is already the newest version (4:8.3.0-1).

Maybe the problem is in the Windows WSL ? But other modules build without errors.

@nxhack
Copy link
Owner

nxhack commented Aug 17, 2020

@Raivon Raivon changed the title Build problem OpenWrt 18.06 r8043 Build problem on Windows WSL Aug 20, 2020
@Raivon
Copy link
Author

Raivon commented Aug 20, 2020

I confirm. The problem is in the Windows WSL subsystem.
After upgrade Windows 10 to build 2004 or later you must upgrade installed WSL images to WSL2 or reinstall it.
Thank you!

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