Hi,
we are trying to build on Hexagon DSP and we see some issue while building the example applications included in the SDK.
We tried to build the Calculator_walkthrough.cmd and we are getting below build errors. Can you please help us to resolve this problem.
C:\Qualcomm\Hexagon_SDK\2.0\tools>cd scripts
C:\Qualcomm\Hexagon_SDK\2.0\tools\scripts>calculator_walkthrough.cmd
---- Build calculator example for both Android and Hexagon ----
make: Entering directory `C:/Qualcomm/Hexagon_SDK/2.0/examples/common/calculator
'
../../../tools/make.d.ext/android/defines_android_Debug.min:14: "Using default t
ools location: ANDROID_TOOLS_DIR=C:/Qualcomm/Hexagon_SDK/2.0/tools/android-ndk-r
10d/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64"
../../../tools/make.d.ext/android/defines_android_Debug.min:22: "Using default p
latform location: ANDROID_PLATFORM_DIR=C:/Qualcomm/Hexagon_SDK/2.0/tools/android
-ndk-r10d/platforms/android-21/arch-arm"
cleaning ../../../lib/common/atomic
cleaning ../../../lib/common/rpcmem
cleaning .
The directory is not empty.
make[1]: [clean] Error 145 (ignored)
make: Leaving directory `C:/Qualcomm/Hexagon_SDK/2.0/examples/common/calculator'
make: Entering directory `C:/Qualcomm/Hexagon_SDK/2.0/examples/common/calculator
'
../../../tools/make.d.ext/android/defines_android_Debug.min:14: "Using default t
ools location: ANDROID_TOOLS_DIR=C:/Qualcomm/Hexagon_SDK/2.0/tools/android-ndk-r
10d/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64"
../../../tools/make.d.ext/android/defines_android_Debug.min:22: "Using default p
latform location: ANDROID_PLATFORM_DIR=C:/Qualcomm/Hexagon_SDK/2.0/tools/android
-ndk-r10d/platforms/android-21/arch-arm"
making ../../../lib/common/atomic
making ../../../lib/common/rpcmem
making .
make: Leaving directory `C:/Qualcomm/Hexagon_SDK/2.0/examples/common/calculator'
make: Entering directory `C:/Qualcomm/Hexagon_SDK/2.0/examples/common/calculator
'
cleaning ../../../lib/common/atomic
cleaning ../../../lib/common/rpcmem
cleaning ../../../test/common/test_util
cleaning ../../../test/common/test_main
cleaning .
make: Leaving directory `C:/Qualcomm/Hexagon_SDK/2.0/examples/common/calculator'
make: Entering directory `C:/Qualcomm/Hexagon_SDK/2.0/examples/common/calculator
'
making ../../../lib/common/atomic
hexagon-clang: error: unable to execute command: program not executable
hexagon-clang: error: hexagon-as command failed due to signal (use -v to see inv
ocation)
Target: hexagon
Thread model: posix
QuIC LLVM Hexagon Clang version 6.4.03, (b422b0c remotes/m/refs/tags/RELEASE_6_4
_03^0) (f912038 remotes/m/refs/tags/RELEASE_6_4_03^0)
hexagon-clang: note: diagnostic msg: Please report the bug through your designat
ed Qualcomm/QuIC support channel.
hexagon-clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
hexagon-clang: note: diagnostic msg: C:/Users/admin/AppData/Local/Temp/atomic-78
2933.c
Assertion failed: I != std::string::npos && "Expected to find -main-file-name",
file ..\..\..\..\..\build\llvm\tools\clang\lib\Driver\Driver.cpp, line 525
make[1]: *** [hexagon_Debug_dynamic/atomic.o] Error 3
ERROR making ../../../lib/common/atomic
make[1]: Entering directory `C:/Qualcomm/Hexagon_SDK/2.0/lib/common/atomic'
"C:/Qualcomm/HEXAGON_Tools/6.4.03/qc/bin/hexagon-clang" -mv5 -c -G0 -g -O0 -Wa
ll -Werror -Wno-cast-align -Wpointer-arith -Wno-missing-braces -Wno-strict-alias
ing -fno-exceptions -fno-strict-aliasing -fno-zero-initialized-in-bss -fdata-se
ctions -fpic -D__V_DYNAMIC__ -Wstrict-prototypes -Wnested-externs -D__FILEN
AME__=\"atomic.c\" -D_DEBUG -I../../../inc/stddef -Ihexagon_Debug_dynamic -o h
exagon_Debug_dynamic/atomic.o atomic.c
make[1]: Leaving directory `C:/Qualcomm/Hexagon_SDK/2.0/lib/common/atomic'
make: *** [MAKE_D_3_LIBDIR] Error 1
make: Leaving directory `C:/Qualcomm/Hexagon_SDK/2.0/examples/common/calculator'
C:\Qualcomm\Hexagon_SDK\2.0\tools\scripts>
I seem to be having this same problem, have you found a resolution to it?
I have tried reinstalling the SDK, to no avail.
Thanks.
can you please run C:\Qualcomm\Hexagon_SDK\2.0\setup_sdk_env.cmd and
cd to C:\Qualcomm\Hexagon_SDK\2.0\examples\common\calculator and run the following commands and provide their output
make tree_clean V=android_Debug VERBOSE=1
make tree V=android_Debug VERBOSE=1
Hello, I had the same error and by introducing your commands this is what I get:
can you check C:\Qualcomm\Hexagon_SDK\3.2\tools\HEXAGON_Tools\8.0.10 folder is present or not ?
If it present check HEXAGON_TOOLS_ROOT in your env variables, it should point to the above folder
Try with make tree V=hexagon_Release_toolv80_v60 VERBOSE=1 this for msm8996 chipset (v60) .. SDK3.3 supports v60 .. please install SDK 3.3 .
after installation set env :
C:\Qualcomm\Hexagon_SDK\3.3.0\tools\HEXAGON_Tools\8.1.04
Steps 1 : in cmd
C:\Qualcomm\Hexagon_SDK\3.3.0 >setup_sdk_env.cmd
step2 : make tree V=hexagon_Release_toolv80_v60 VERBOSE=1 in calculator floder
its works .. please let me know if you face any issues