nreddell

icc support.  Linking stage "file format not recognized"

Discussion created by nreddell on Jun 3, 2010
Latest reply on Jun 7, 2010 by nreddell
icc Intel compiler linking file format not recognized

Hi,

   I am trying to get running with the ATI Stream SDK 2.1 to compile a basic OpenCL application after working with OpenCL for a while on my Mac using Apple's implementation.

I am on a linux cluster running SUSE 10.  I have the Intel icc version 11.0.  When attempting to run make on the SDK sample applications, I get a linker error referencing the libOpenCL.so library, "File Format Not Recognized".  ( I did have to manually update openclsdkdefs.mk to define CC and LD as icc.)

I saw an earlier similar post indicating that maybe a bug had to be fixed before icc would be supported.  But this was before the SDK 2.1 release and the release notes indicate icc 11.x is supported.

I believe I followed the install instructions perfectly with exception for not being done with root access.  I don't see why that's necessary.

Does anyone have any ideas for steps I can try?   Has anyone been able to get the SDK working with icc for OpenCL work?

Thanks.

 

(btw, I get the same error message when I link using gcc, but I have gcc 4.1.2, so I assume that is not new enough and is reason for the error in this case)

reddell@service0:~/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples> make make -C opencl make[1]: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl' make -C SDKUtil make[2]: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/SDKUtil' install -D build/debug/x86_64/libSDKUtil.a ../../../TempSDKUtil/lib/x86_64/libSDKUtil.a make[2]: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/SDKUtil' make -C cl make[2]: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl' make -C app make[3]: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl/app' make -C AESEncryptDecrypt make[4]: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl/app/AESEncryptDecrypt' Building build/debug/x86_64/AESEncryptDecrypt icc -o build/debug/x86_64/AESEncryptDecrypt build/debug/x86_64//AESEncryptDecrypt.o -lpthread -ldl -L/usr/X11R6/lib -lOpenCL -lSDKUtil -L../../../../../lib/x86_64 -L../../../../../TempSDKUtil/lib/x86_64 ../../../../../lib/x86_64/libOpenCL.so: file not recognized: File format not recognized make[4]: *** [build/debug/x86_64/AESEncryptDecrypt] Error 1 make[4]: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl/app/AESEncryptDecrypt' make[3]: *** [AESEncryptDecrypt] Error 2 make[3]: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl/app' make[2]: *** [app] Error 2 make[2]: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl' make[1]: *** [cl] Error 2 make[1]: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl' make: *** [opencl] Error 2 reddell@service0:~/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples> icc --version icc (ICC) 11.0 20081105 Copyright (C) 1985-2008 Intel Corporation. All rights reserved.

Outcomes