[英]How to cross-compile from linux/amd64 to darwin/arm64 with cgo?
[英]How to cross compile lttng-modules for arm64?
我一直在嘗試使用arm64工具鏈來執行此操作,但出現錯誤error: unrecognized command line option '-mgeneral-regs-only'
。 在谷歌搜索上,我建議我將aarch64工具鏈用於msm,我這樣做了。 但是現在我得到了這個錯誤error: conflicting types for 'trace_sched_migrate_task' void trace_##_name(_proto); /local/mnt2/workspace/kernel/include/linux/tracepoint.h:168:21: note: previous definition of 'trace_sched_migrate_task' was here static inline void trace_##name(proto)
error: conflicting types for 'trace_sched_migrate_task' void trace_##_name(_proto); /local/mnt2/workspace/kernel/include/linux/tracepoint.h:168:21: note: previous definition of 'trace_sched_migrate_task' was here static inline void trace_##name(proto)
盡管它們可以在具有相同功能定義的另一個Linux系統上編譯。
msm內核為trace_sched_migrate_task()添加了一個額外的“負載”參數,請參閱在msm-4.4中提交添加負載
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.