[odb-users] Re: Cross-compiling from x86 to ARM on Windows

Sunny Sun sunny.sun at ringcentral.com
Thu Sep 26 02:02:55 EDT 2024


It got
error: unable to translate target triplet CPU aarch64 to /MACHINE
Even if I delete the option " config.cc.loptions=/MACHINE:ARM64", it still returns the same error.

________________________________
From: Boris Kolpackov <boris at codesynthesis.com>
Sent: Tuesday, September 24, 2024 5:00 PM
To: Sunny Sun <sunny.sun at ringcentral.com>
Cc: odb-users at codesynthesis.com <odb-users at codesynthesis.com>
Subject: Cross-compiling from x86 to ARM on Windows


[EXTERNAL]


Sunny Sun <sunny.sun at ringcentral.com> writes:

> After upgrading to odb2.5.0, this issue has been resolved. Thanks!
>
> Here I have a new question.

Do not send a new question by replying to an existing message.

It will end up with an unrelated subject and this makes email clients
with support for threading as well as the mailing list archives less
usable. Instead, create a new email with a new subject.

This is guideline #2 in the posting guidelines:

https://urldefense.com/v3/__https://codesynthesis.com/support/posting-guidelines.xhtml__;!!J-1DKIBqn-Pi!ASlAHQxIBLvkaCY273X2ECiakJPKyZG1pEms5tMblQiYnQ4IM_SucXC-MvbUCSkkyguk90TTXvMTqGyj-p3_Lw$


> How to build arm64 target odb static lib in x64 platform with msvc?
> I tried the following script, but it failed.
>
> bpkg create -d libodb-msvc-release cc^
>   config.cxx=cl^
>   "config.cc.coptions=/std:c++20 /O2 /MD /Zi /arch:armv8.0"^
>   "config.cc.loptions=/MACHINE:ARM64"^
>   "config.bin.lib=static"^
>   config.install.root="%CurrentFolder%output\Release"
>
> Could you help?

What is the diagnostics that you get when you try this?


More information about the odb-users mailing list