yao-pkg / pkg-binaries

Collection of pkg nodejs binaries that are not supported by pkg
MIT License
89 stars 23 forks source link

trying to build with shell not work #28

Open sourire19 opened 1 week ago

sourire19 commented 1 week ago

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

1) Node 12 LTS (Erbium) 2) Node 16 LTS (Gallium) 3) Node 18 LTS (Hermes) NodeJS version: >1

1) linux 2) 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 commented 1 week ago

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 commented 1 week ago

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

robertsLando commented 1 week ago

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