Pkg: Mention 'cross-cpu-compilation' limitation in docs

Created on 30 Apr 2017  路  2Comments  路  Source: vercel/pkg

Hi, I am cross-compiling for arm6 or arm7 on 64-bit Ubuntu host.

Regardless of if I use armv6 or armv7, and regardless of if I use node6 or node7, I always get the following error:

/home/msolters/.pkg-cache/v1.9/fetched-v6.10.0-linux-armv7: 1: /home/msolters/.pkg-cache/v1.9/fetched-v6.10.0-linux-armv7: Syntax error: word unexpected (expecting ")")
> Error! Error: Not able to compile for 'armv7' here
    at Socket.<anonymous> (/home/msolters/.nvm/versions/node/v6.10.0/lib/node_modules/pkg/lib-es5/producer.js:43:25)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at onwriteError (_stream_writable.js:346:10)
    at onwrite (_stream_writable.js:364:5)
    at WritableState.onwrite (_stream_writable.js:90:5)
    at fireErrorCallbacks (net.js:468:13)
    at Socket._destroy (net.js:509:3)
    at WriteWrap.afterWrite (net.js:803:10)
documentation

Most helpful comment

pkg can currently crosscompile to same cpu that host machine has. Probably need to specify it explicitly in docs.

All 2 comments

pkg can currently crosscompile to same cpu that host machine has. Probably need to specify it explicitly in docs.

There is a solution to make binaries for ARM from Ubuntu x64: https://github.com/zeit/pkg/issues/145#issuecomment-311150484

Was this page helpful?
0 / 5 - 0 ratings

Related issues

erikd picture erikd  路  3Comments

Ks89 picture Ks89  路  4Comments

ydubois-fr picture ydubois-fr  路  4Comments

j-brown picture j-brown  路  4Comments

jflayhart picture jflayhart  路  4Comments