Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

C66 DSP programming with OpenCL compile errors #20

Description

@jomoengineer

I'm attempting to go through the "C66 DSP programming with OpenCL" examples that are listed under Cloud9 AI->c66->README.md but I am running into compile errors when doing. I've gone through the Introduction_to_OpenCL_slides.pdf listed in the README and copied the examples to my home folder, but I am seeing the following errors for some of the examples.

Ex:
`cp -r /usr/share/ti/examples/opencl .

make`

I was able to get passed the SDL errors by installing SDL 1.2 (would have preferred SDL2), but the RTOS one I can not find info on.


=============== mandelbrot =================
Compiling main.cpp
main.cpp:30:21: fatal error: SDL/SDL.h: No such file or directory
#include <SDL/SDL.h>
^
compilation terminated.
../make.inc:238: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
=============== simple =======

Installing SDL 1.2 as follows resolves this:
sudo apt-get install libsdl1.2-dev

This one I do not know.


=============== mandelbrot =================
Compiling main.cpp
=============== simple =================
=============== matmpy =================
=============== sgemm =================
/usr/bin/ld: libcblas_atlas_arm/libcblas.a(cblas_errprn.o): relocation R_ARM_THM_MOVW_ABS_NC against `stderr' can not be used when making a shared object; recompile with -fPIC
libcblas_atlas_arm/libcblas.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:16: recipe for target 'sgemm' failed
make[1]: *** [sgemm] Error 1

Also, I am not sure what to set PSDK_RTOS to to resolve these issues.


=============== persistent_kernel_timeout =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
=============== persistent_task_concurrent =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
=============== persistent_messageq_concurrent =================
../../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
Makefile:5: recipe for target 'persistent_messageq_concurrent' failed
make[1]: *** [persistent_messageq_concurrent] Error 2
=============== persistent_clock_concurrent =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
=============== persistent_clock_spanning =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
=============== persistent_task_spanning =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
Makefile:43: recipe for target 'all' failed
make: *** [all] Error 2

Cheers,

Jon

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions