On Mon, Aug 1, 2022 at 11:35 AM Leszek Swirski <[email protected]> wrote:
>
> Hi Jeroen,
>
> That sounds plausible, could you share your args.gn file? You may be able to 
> fix this by setting your target_cpu there.

I don't think we use an args.gn: we use this script, but then I
replaced x64 with arm64:
https://github.com/jeroen/build-v8-static/blob/master/alpine/Dockerfile






>
> - Leszek
>
> On Mon, Aug 1, 2022 at 11:06 AM Jeroen Ooms <[email protected]> wrote:
>>
>> I maintain V8 bindings for the R programming language, for which we provide 
>> static v8 libraries for the most common distros, including one for alpine 
>> linux, and an arm64 build  cross compiled on Debian. The builds are 
>> dockerized and automated in ci: https://github.com/jeroen/build-v8-static
>>
>> Now a user has requested an arm64 binary for alpine, but I am having a hard 
>> time making this work. Afaict, alpine has no cross compilers. So I tried to 
>> build it natively on arm64 hardware (docker on m1) but the build fails with:
>>
>>  Assertion failed.
>>   assert(v8_snapshot_toolchain != "",\n^-----\nDo not know how to build a 
>> snapshot for //build/toolchain/linux:clang_x64 on linux arm64
>>   See //BUILD.gn:17:1: whence it was imported.
>>
>> I suspect part of the problem may be that uname reports aarch64 instead of 
>> arm64?
>>
>> --
>> --
>> v8-dev mailing list
>> [email protected]
>> http://groups.google.com/group/v8-dev
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "v8-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/v8-dev/8bc1851f-6bab-47c9-a814-61ddc5091730n%40googlegroups.com.
>
> --
> --
> v8-dev mailing list
> [email protected]
> http://groups.google.com/group/v8-dev
> ---
> You received this message because you are subscribed to a topic in the Google 
> Groups "v8-dev" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/v8-dev/B_RBMDV2FbY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/v8-dev/CAGRskv8dPEGKU0JR3LputGUEc9JfOqtvZui2fmtT_-o%2Bz%3DfJTg%40mail.gmail.com.

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CABFfbXsSbeTRQB%3DTkxgTXYntw6HD1D-dEMjM05KL-7cc%2By5tGg%40mail.gmail.com.

Reply via email to