OpenHarmony开发者论坛
标题:
使用arm-v8架构的芯片,通过meson编译mesa,指定clang编译链报错“can not compile programs”
[打印本页]
作者:
lucas.cao
时间:
2024-11-30 10:31
标题:
使用arm-v8架构的芯片,通过meson编译mesa,指定clang编译链报错“can not compile programs”
[md]### 【问题描述】
使用arm-v8架构的芯片,编译mesa(使用的meson编译框架),部分配置如下:
c_args = [
'-march=armv8-a',
'-mfloat-abi=softfp',
'-mtune=generic-armv8-a',
'-mfpu=neon',
'-mthumb',
'--target= aarch64-unknown-linux-ohos',
'--sysroot=/xxx/third_party/musl',
'-fPIC']
[binaries]
c = '/xx/llvm/bin/aarch64-unknown-linux-ohos-clang'
cpp = '/xx/llvm/bin/aarch64-unknown-linux-ohos-clang++'
ar = '/xx/llvm/bin/llvm-ar'
strip = '/xx/llvm/bin/llvm-strip'
ld = '/xx/llvm/bin/ld.lld'
pkgconfig = '/usr/bin/pkg-config'
但是会报错如下:
meson.build:21:0: ERROR: Compiler /xx/llvm/bin/aarch64-unknown-linux-ohos-clang can not compile programs.
[/md]
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5