Skip to content

Instantly share code, notes, and snippets.

@Gustav-Simonsson
Created June 3, 2015 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gustav-Simonsson/d03e1625f3d4bf93f50d to your computer and use it in GitHub Desktop.
Save Gustav-Simonsson/d03e1625f3d4bf93f50d to your computer and use it in GitHub Desktop.
18:14:50 (master) ~/go/src/github.com/Gustav-Simonsson/go-opencl/cl
> go build -v -x
WORK=/tmp/go-build843416135
github.com/Gustav-Simonsson/go-opencl/cl
mkdir -p $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/
mkdir -p $WORK/github.com/Gustav-Simonsson/go-opencl/
cd /home/gs/go/src/github.com/Gustav-Simonsson/go-opencl/cl
CGO_LDFLAGS="-g" "-O2" /home/gs/golang/pkg/tool/linux_amd64/cgo -objdir $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -- -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -I/opt/opencl-headers/include cl.go context.go device.go kernel.go platform.go program.go queue.go types.go
/home/gs/golang/pkg/tool/linux_amd64/6c -F -V -w -trimpath $WORK -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -I /home/gs/golang/pkg/linux_amd64 -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/_cgo_defun.6 -D GOOS_linux -D GOARCH_amd64 $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/_cgo_defun.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -print-libgcc-file-name
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/_cgo_main.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/_cgo_main.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/_cgo_export.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/_cgo_export.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/cl.cgo2.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/cl.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/device.cgo2.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/device.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/kernel.cgo2.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/kernel.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/platform.cgo2.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/platform.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/program.cgo2.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/program.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/ -g -O2 -I/opt/opencl-headers/include -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/types.cgo2.o -c $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/types.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/_cgo_.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/_cgo_main.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/_cgo_export.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/cl.cgo2.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/device.cgo2.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/kernel.cgo2.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/platform.cgo2.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/program.cgo2.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o $WORK/github.com/Gustav-Simonsson/go-opencl/cl/_obj/types.cgo2.o -g -O2
# github.com/Gustav-Simonsson/go-opencl/cl
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clCreateBuffer':
./context.go:45: undefined reference to `clCreateBuffer'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clCreateCommandQueue':
./context.go:61: undefined reference to `clCreateCommandQueue'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clCreateContext':
./context.go:80: undefined reference to `clCreateContext'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clCreateProgramWithSource':
./context.go:98: undefined reference to `clCreateProgramWithSource'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clCreateUserEvent':
./context.go:112: undefined reference to `clCreateUserEvent'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clGetSupportedImageFormats':
./context.go:131: undefined reference to `clGetSupportedImageFormats'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clReleaseContext':
./context.go:145: undefined reference to `clReleaseContext'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/context.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clReleaseMemObject':
./context.go:159: undefined reference to `clReleaseMemObject'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/device.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clGetDeviceIDs':
./device.go:47: undefined reference to `clGetDeviceIDs'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/device.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clGetDeviceInfo':
./device.go:66: undefined reference to `clGetDeviceInfo'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/kernel.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clGetKernelInfo':
./kernel.go:46: undefined reference to `clGetKernelInfo'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/kernel.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clGetKernelWorkGroupInfo':
./kernel.go:66: undefined reference to `clGetKernelWorkGroupInfo'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/kernel.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clReleaseKernel':
./kernel.go:80: undefined reference to `clReleaseKernel'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/kernel.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clSetKernelArg':
./kernel.go:98: undefined reference to `clSetKernelArg'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/platform.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clGetPlatformIDs':
./platform.go:44: undefined reference to `clGetPlatformIDs'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/platform.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clGetPlatformInfo':
./platform.go:63: undefined reference to `clGetPlatformInfo'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/program.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clBuildProgram':
./program.go:48: undefined reference to `clBuildProgram'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/program.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clCreateKernel':
./program.go:63: undefined reference to `clCreateKernel'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/program.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clGetProgramBuildInfo':
./program.go:83: undefined reference to `clGetProgramBuildInfo'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/program.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clReleaseProgram':
./program.go:97: undefined reference to `clReleaseProgram'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clEnqueueCopyBuffer':
./queue.go:50: undefined reference to `clEnqueueCopyBuffer'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clEnqueueMapBuffer':
./queue.go:74: undefined reference to `clEnqueueMapBuffer'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clEnqueueMapImage':
./queue.go:100: undefined reference to `clEnqueueMapImage'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clEnqueueNDRangeKernel':
./queue.go:124: undefined reference to `clEnqueueNDRangeKernel'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clEnqueueReadBuffer':
./queue.go:148: undefined reference to `clEnqueueReadBuffer'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clEnqueueReadImage':
./queue.go:174: undefined reference to `clEnqueueReadImage'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clEnqueueUnmapMemObject':
./queue.go:194: undefined reference to `clEnqueueUnmapMemObject'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clEnqueueWriteBuffer':
./queue.go:218: undefined reference to `clEnqueueWriteBuffer'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clEnqueueWriteImage':
./queue.go:244: undefined reference to `clEnqueueWriteImage'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clFinish':
./queue.go:258: undefined reference to `clFinish'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/queue.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clReleaseCommandQueue':
./queue.go:272: undefined reference to `clReleaseCommandQueue'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/types.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clGetEventProfilingInfo':
./types.go:46: undefined reference to `clGetEventProfilingInfo'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/types.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clReleaseEvent':
./types.go:60: undefined reference to `clReleaseEvent'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/types.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clSetUserEventStatus':
./types.go:76: undefined reference to `clSetUserEventStatus'
/tmp/go-build843416135/github.com/Gustav-Simonsson/go-opencl/cl/_obj/types.cgo2.o: In function `_cgo_a2a68a54a6e6_Cfunc_clWaitForEvents':
./types.go:92: undefined reference to `clWaitForEvents'
collect2: error: ld returned 1 exit status
18:14:53 (master) ~/go/src/github.com/Gustav-Simonsson/go-opencl/cl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment