Post
Topic
Board Announcements (Altcoins)
Re: [ANN] AEON 2nd gen cryptonote, anon, mobile-friendly, scalable, pruning
by
Arux
on 12/10/2015, 20:35:47 UTC

I'm on Mint 17.2. I've installed GCC 4.9 and followed your instructions, but get this after running make:

Code:
...../wolf-aeon-miner/main.c:735: undefined reference to `clCreateCommandQueueWithProperties'
collect2: error: ld returned 1 exit status


Hi There,

I had the same thing.  I think this points to having an older openCL sdk installed than is required.

It is possible to build it using by changing the function names to that used in the older openCL releases, and it does link and build.  But then the actual opencl code give errors during execution.

Probably best to upgrade to latest SDK (note - I haven't because it was such a pain to do it on my headless rig, and it's nice and stable mining other currencies at the moment).

Cheers

Dave

just a guess, it seems that gcc takes libOpenCL directly at /usr/lib/fglrx/libOpenCL.so (from fglrx package) instead of ./lib/x86_64/libOpenCL.so (from AMDAPPSDK-3.0 extraction)
i compiled from a system without fglrx and i didn't have this error.

try to force using ./lib/x86_64/libOpenCL.so with -Wl,./lib/x86_64/libOpenCL.so to LIBS in the makefile.
Code:
CC = gcc
LD = gcc
CFLAGS = -D_POSIX_SOURCE -D_GNU_SOURCE -O0 -ggdb3 -std=c11 -pthread -c -I./include/
LDFLAGS = -pthread -O0 -ggdb3
LIBS = -ljansson -Wl,./lib/x86_64/libOpenCL.so -ldl

you can also try to use libOpenCL.so1 instead of libOpenCL.so but i don't think it will be necessary.