vulkan-go / vulkan

Vulkan API bindings for Go programming language
MIT License
742 stars 55 forks source link

remove m_hard lib #67

Closed tomas-mraz closed 1 year ago

tomas-mraz commented 1 year ago

I don't know exactly why but build stuck on this.

C:\Programs\Go1.19\pkg\tool\windows_amd64\link.exe: running C:\android-ndk-r25b/toolchains/llvm/prebuilt/windows-x86_64/bin/armv7a-linux-androideabi26-clang failed: exit status 1
ld: error: unable to find library -lm_hard
clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [Makefile:9: build] Error 2

or clang: error: unsupported option '-mfloat-abi=hard' for target 'armv7-unknown-linux-android26'

I found

The hard float ABI support was "removed" from the NDK in r12 (https://android.googlesource.com/platform/ndk/+/master/docs/HardFloatAbi.md), but they really removed it only in r15.

If I recall correctly OpenBlas requires it, thus the complication...

/Ogi

on https://groups.google.com/g/kaldi-help/c/cILizZfqHCk

I suggest removing the switch. I tried it and it helps, at least in a compilation.