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

trying to build with shell not work #28

Open
sourire19 opened this issue Sep 4, 2024 · 3 comments
Open

trying to build with shell not work #28

sourire19 opened this issue Sep 4, 2024 · 3 comments

Comments

@sourire19
Copy link

sourire19 commented Sep 4, 2024

i need to build my project to use it on raspberry pi zero w (armv6)

sourire@sourire:~/daemon/pkg-binaries$ ./build.sh

  1. arm32v6

  2. arm32v7

  3. arm64
    Architecture: >1

  4. Node 12 LTS (Erbium)

  5. Node 16 LTS (Gallium)

  6. Node 18 LTS (Hermes)
    NodeJS version: >1

  7. linux

  8. alpine
    OS version: >1
    #0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile.build
#1 transferring dockerfile: 329B done
#1 DONE 0.1s

#2 [internal] load .dockerignore
#2 transferring context: 64B done
#2 DONE 0.1s

#3 [internal] load metadata for docker.io/library/node:latest
#3 ERROR: no match for platform in manifest sha256:8ec02324cb37718197de92e51677781be9f1345c709f31a1f44440c6036d24a2: not found

[internal] load metadata for docker.io/library/node:latest:


Dockerfile.build:1

1 | >>> FROM node:latest
2 |
3 | ARG PKG_NODE

ERROR: failed to solve: node:latest: no match for platform in manifest sha256:8ec02324cb37718197de92e51677781be9f1345c709f31a1f44440c6036d24a2: not found

i try use fetched-v12.13.1-linux-armv6 and rename it with armv7, after one hour of compile i get this error :

/home/sourire/opt/x-tools/armv6-rpi-linux-gnueabihf/armv6-rpi-linux-gnueabihf/include/c++/12.3.0/new:128:26: note: in a call to allocation function 'operator new []' declared here
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                          ^
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/home/sourire/opt/x-tools/armv6-rpi-linux-gnueabihf/bin/../lib/gcc/armv6-rpi-linux-gnueabihf/12.3.0/../../../../armv6-rpi-linux-gnueabihf/bin/ld.bfd: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[1]: *** [tools/v8_gypfiles/mksnapshot.host.mk:195: /tmp/pkg.35fe8beff34436e9b36c85df/node/out/Release/mksnapshot] Error 1
rm 6698b97dfd07c5cacc9864c0656bcdd7e175996c.intermediate 9531afadab218a7f2fca9f7251a5df4eb415a2f6.intermediate 11eb7c355febc4d10beb0283e6d28a204374be51.intermediate 77228ec9593f8904da944a42b34834bb193b0d10.intermediate
make: *** [Makefile:109: node] Error 2
strip: '/tmp/pkg.35fe8beff34436e9b36c85df/node/out/Release/node': No such file
> Error! Error: ENOENT: no such file or directory, open '/tmp/pkg.35fe8beff34436e9b36c85df/node/out/Release/node'
@robertsLando
Copy link
Member

I suggest to use an existing binary as building your own would not work. Just take an old one for armv7 and rename it like described in readme

@sourire19
Copy link
Author

i build with fetched-v14.4.0-linux-armv6, and run it into my raspberry zero w , i get Illegal instruction

@robertsLando
Copy link
Member

I'm sorry then I dunno how to help :( Debugging build issues is always a pain

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