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

ejdb2 #1227

Closed
predators46 opened this issue Apr 4, 2022 · 22 comments
Closed

ejdb2 #1227

predators46 opened this issue Apr 4, 2022 · 22 comments

Comments

@predators46
Copy link

predators46 commented Apr 4, 2022

@nxhack

Error ejdb2 build

cp -fpR /home/ubuntu/21/build_dir/target-aarch64_cortex-a53_musl/node-ejdb2_node-2.62.5/linux-x64/ejdb2_node.node /home/ubuntu/21/build_dir/target-aarch64_cortex-a53_musl/node-ejdb2_node-2.62.5/.pkgdir/node-ejdb2_node/usr/lib/node/ejdb2_node/build/Release cp: cannot stat '/home/ubuntu/21/build_dir/target-aarch64_cortex-a53_musl/node-ejdb2_node-2.62.5/linux-x64/ejdb2_node.node': No such file or directory Makefile:91: recipe for target '/home/ubuntu/21/build_dir/target-aarch64_cortex-a53_musl/node-ejdb2_node-2.62.5/.pkgdir/node-ejdb2_node.installed' failed make[2]: *** [/home/ubuntu/21/build_dir/target-aarch64_cortex-a53_musl/node-ejdb2_node-2.62.5/.pkgdir/node-ejdb2_node.installed] Error 1

@nxhack
Copy link
Owner

nxhack commented Apr 4, 2022

Hi @predators46

Please tell me about your cross-compiling environment.

Machine architecture
Operation System

arch
uname -a
cat /etc/lsb-release

@predators46
Copy link
Author

predators46 commented Apr 5, 2022

@nxhack

x86_64 Linux ip-172-26-7-209 4.15.0-1021-aws #21-Ubuntu SMP Tue Aug 28 10:23:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"

@nxhack
Copy link
Owner

nxhack commented Apr 5, 2022

It's just like my environment!
I am able to build successfully.

Run this command to show all log.

make V=s package/feeds/node/node-ejdb2_node/{clean,compile}

@predators46
Copy link
Author

predators46 commented Apr 5, 2022

I'll give it a try in a moment. and now I'm trying to make node v16 for mips but it's not possible to mips using node again.

{standard input}: Assembler messages: {standard input}:130: Error: opcode not supported on this processor: mips32r2 (mips32r2) ldc1 $f0,24($fp)'
{standard input}:131: Error: opcode not supported on this processor: mips32r2 (mips32r2) mtc1 $t0,$f1' {standard input}:132: Error: opcode not supported on this processor: mips32r2 (mips32r2) sdc1 $f0,24($fp)'
tools/v8_gypfiles/v8_libbase.target.mk:189: recipe for target '/home/ubuntu/gg/build_dir/target-mipsel_24kc_musl/node-v16.14.2/out/Release/obj.target/v8_libbase/deps/v8/src/base/cpu.o' failed
make[4]: *** [/home/ubuntu/gg/build_dir/target-mipsel_24kc_musl/node-v16.14.2/out/Release/obj.target/v8_libbase/deps/v8/src/base/cpu.o] Error 1`

@nxhack
Copy link
Owner

nxhack commented Apr 5, 2022

It does not work on mips.

@predators46
Copy link
Author

yes i know that

@predators46
Copy link
Author

predators46 commented Apr 5, 2022

@nxhack

looks like mips can still use node in version 14.19.1

mipsel24kc

BusyBox v1.33.2 (2022-03-23 12:52:20 UTC) built-in shell (ash)


| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|
_____|| |
||||___||| |____|
|
| W I R E L E S S F R E E D O M

OpenWrt 21.02.2, r16495-bf0c965af0

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.

root@OpenWrt:~ uname -a
Linux OpenWrt 5.4.179 0 Wed Feb 16 20:29:10 2022 mips GNU/Linux
root@OpenWrt:~node -v
v14.19.1
root@OpenWrt: npm -v
6.14.16
root@OpenWrt: node hello.js
Hello, World!

@nxhack
Copy link
Owner

nxhack commented Apr 5, 2022

See the conversation that follows.

#464 (comment)

@nxhack
Copy link
Owner

nxhack commented Apr 5, 2022

In any case, I do not plan to support mips.
However, OpenWrt supports mipsel with hardware FPU, so I do support that to a limited extent.

@nxhack
Copy link
Owner

nxhack commented Apr 5, 2022

The v8 engine project welcomes mipseb (32, 64) maintainers and would welcome your commitments.

@nxhack
Copy link
Owner

nxhack commented Apr 5, 2022

Please know that mips with software FPU is too slow and node.js does not run well enough.

@predators46
Copy link
Author

yes there is no other option for mips using fpu emulator on openwrt. this is only an alternative if anyone wants to use nodes on mips

@predators46
Copy link
Author

now i'm waiting for the ejdb2 result to be made

@predators46
Copy link
Author

@nxhack

`-- Using src='https://github.com/Softmotions/iowow/archive/master.zip'
CMake Error at extern_iowow-stamp/download-extern_iowow.cmake:170 (message):
Each download failed!

error: downloading 'https://github.com/Softmotions/iowow/archive/master.zip' failed
      status_code: 6
      status_string: "Couldn't resolve host name"
      log:
      --- LOG BEGIN ---
      getaddrinfo(3) failed for github.com:443

Couldn't resolve host 'github.com'

Closing connection 0`

@predators46
Copy link
Author

log.txt
Detail log error

@nxhack
Copy link
Owner

nxhack commented Apr 5, 2022

You must solve this problem.

Couldn't resolve host 'github.com'

This is outside the scope of my support.
Please refer to the Ubuntu documentation and other documentation yourself for Linux network settings.

@predators46
Copy link
Author

very strange even though I'm using a vps

@openwrtfirmwarecostum
Copy link

openwrtfirmwarecostum commented Apr 7, 2022

@nxhack

gg/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/include -DPIC -fPIC -c ../src/ffi.cc:4:10: fatal error: fficonfig.h: No such file or directory #include "fficonfig.h" ^~~~~~~~~~~~~ compilation terminated.

@nxhack
Copy link
Owner

nxhack commented Apr 7, 2022

Please put up another issue if the topic changes.

master branch:
https://github.com/nxhack/openwrt-node-packages/blob/master/node-ffi-napi/Makefile#L23

openwrt-21.02 banch:
https://github.com/nxhack/openwrt-node-packages/blob/openwrt-21.02/node-ffi-napi/Makefile#L23

Use the branch that matches your OpenWrt version.

@openwrtfirmwarecostum
Copy link

@nxhack

ok fix. i found the same edjb2 problem as this problem. maybe this is a problem on amazon aws

@nxhack
Copy link
Owner

nxhack commented Apr 7, 2022

My build environment is on EC2, too. :)

@openwrtfirmwarecostum
Copy link

My build environment is on EC2, too. :)

I use lightsail

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