vehre / neo-gpuminer

GPUminer for neoscrypt based coins like feathercoin, phoenixcoin,...
Other
6 stars 16 forks source link

Compile errors #11

Closed j-marz closed 10 years ago

j-marz commented 10 years ago

issue

Compiling under Ubuntu 12.0.4 and 14.0.4 fails during make. fatal error: jansson.h: No such file or directory


commands

sudo ./autogen.sh sudo CFLAGS="-O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/" LDFLAGS="-L/opt/AMDAPPSDK-2.9-1/lib/x86_64/" ./configure --enable-neoscrypt sudo make


output

cgminer 3.7.8

Configuration Options Summary:

libcurl(GBT+getwork).: Enabled: -lcurl curses.TUI...........: FOUND: -lncurses OpenCL...............: FOUND. GPU mining support enabled scrypt...............: Disabled keccak...............: Disabled neoscrypt............: Enabled ADL..................: SDK found, GPU monitoring support enabled NVML.................: SDK NOT found, GPU monitoring support DISABLED

Avalon.ASICs.........: Disabled BFL.ASICs............: Disabled BitForce.FPGAs.......: Disabled BitFury.ASICs........: Disabled Icarus.FPGAs.........: Disabled Klondike.ASICs.......: Disabled ModMiner.FPGAs.......: Disabled

Compilation............: make (or gmake) CPPFLAGS.............: CFLAGS...............: -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ LDFLAGS..............: -L/opt/AMDAPPSDK-2.9-1/lib/x86_64/ -lpthread LDADD................: -ldl -lcurl compat/jansson-2.5/src/.libs/libjansson.a -lpthread -lOpenCL -lncurses -lm -lrt

Installation...........: make install (as root if needed, with 'su' or 'sudo') prefix...............: /usr/local

make all-recursive make[1]: Entering directory /home/john/cryptocurrency/neo-gpuminer' Making all in lib make[2]: Entering directory/home/john/cryptocurrency/neo-gpuminer/lib' GEN arg-nonnull.h GEN c++defs.h GEN warn-on-use.h GEN signal.h GEN string.h make all-recursive make[3]: Entering directory /home/john/cryptocurrency/neo-gpuminer/lib' make[4]: Entering directory/home/john/cryptocurrency/neo-gpuminer/lib' CC dummy.o AR libgnu.a make[4]: Leaving directory /home/john/cryptocurrency/neo-gpuminer/lib' make[3]: Leaving directory/home/john/cryptocurrency/neo-gpuminer/lib' make[2]: Leaving directory /home/john/cryptocurrency/neo-gpuminer/lib' Making all in compat make[2]: Entering directory/home/john/cryptocurrency/neo-gpuminer/compat' Making all in jansson-2.5 make[3]: Entering directory /home/john/cryptocurrency/neo-gpuminer/compat/jansson-2.5' make all-recursive make[4]: Entering directory/home/john/cryptocurrency/neo-gpuminer/compat/jansson-2.5' Making all in src make[5]: Entering directory /home/john/cryptocurrency/neo-gpuminer/compat/jansson-2.5/src' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT dump.lo -MD -MP -MF .deps/dump.Tpo -c -o dump.lo dump.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT dump.lo -MD -MP -MF .deps/dump.Tpo -c dump.c -fPIC -DPIC -o .libs/dump.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT dump.lo -MD -MP -MF .deps/dump.Tpo -c dump.c -o dump.o >/dev/null 2>&1 mv -f .deps/dump.Tpo .deps/dump.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT error.lo -MD -MP -MF .deps/error.Tpo -c -o error.lo error.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -fPIC -DPIC -o .libs/error.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -o error.o >/dev/null 2>&1 mv -f .deps/error.Tpo .deps/error.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT hashtable.lo -MD -MP -MF .deps/hashtable.Tpo -c -o hashtable.lo hashtable.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT hashtable.lo -MD -MP -MF .deps/hashtable.Tpo -c hashtable.c -fPIC -DPIC -o .libs/hashtable.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT hashtable.lo -MD -MP -MF .deps/hashtable.Tpo -c hashtable.c -o hashtable.o >/dev/null 2>&1 mv -f .deps/hashtable.Tpo .deps/hashtable.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT load.lo -MD -MP -MF .deps/load.Tpo -c -o load.lo load.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT load.lo -MD -MP -MF .deps/load.Tpo -c load.c -fPIC -DPIC -o .libs/load.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT load.lo -MD -MP -MF .deps/load.Tpo -c load.c -o load.o >/dev/null 2>&1 mv -f .deps/load.Tpo .deps/load.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c -o memory.lo memory.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c memory.c -fPIC -DPIC -o .libs/memory.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c memory.c -o memory.o >/dev/null 2>&1 mv -f .deps/memory.Tpo .deps/memory.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT pack_unpack.lo -MD -MP -MF .deps/pack_unpack.Tpo -c -o pack_unpack.lo pack_unpack.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT pack_unpack.lo -MD -MP -MF .deps/pack_unpack.Tpo -c pack_unpack.c -fPIC -DPIC -o .libs/pack_unpack.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT pack_unpack.lo -MD -MP -MF .deps/pack_unpack.Tpo -c pack_unpack.c -o pack_unpack.o >/dev/null 2>&1 mv -f .deps/pack_unpack.Tpo .deps/pack_unpack.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT strbuffer.lo -MD -MP -MF .deps/strbuffer.Tpo -c -o strbuffer.lo strbuffer.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT strbuffer.lo -MD -MP -MF .deps/strbuffer.Tpo -c strbuffer.c -fPIC -DPIC -o .libs/strbuffer.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT strbuffer.lo -MD -MP -MF .deps/strbuffer.Tpo -c strbuffer.c -o strbuffer.o >/dev/null 2>&1 mv -f .deps/strbuffer.Tpo .deps/strbuffer.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT strconv.lo -MD -MP -MF .deps/strconv.Tpo -c -o strconv.lo strconv.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT strconv.lo -MD -MP -MF .deps/strconv.Tpo -c strconv.c -fPIC -DPIC -o .libs/strconv.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT strconv.lo -MD -MP -MF .deps/strconv.Tpo -c strconv.c -o strconv.o >/dev/null 2>&1 mv -f .deps/strconv.Tpo .deps/strconv.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT utf.lo -MD -MP -MF .deps/utf.Tpo -c -o utf.lo utf.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT utf.lo -MD -MP -MF .deps/utf.Tpo -c utf.c -fPIC -DPIC -o .libs/utf.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT utf.lo -MD -MP -MF .deps/utf.Tpo -c utf.c -o utf.o >/dev/null 2>&1 mv -f .deps/utf.Tpo .deps/utf.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT value.lo -MD -MP -MF .deps/value.Tpo -c -o value.lo value.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT value.lo -MD -MP -MF .deps/value.Tpo -c value.c -fPIC -DPIC -o .libs/value.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -MT value.lo -MD -MP -MF .deps/value.Tpo -c value.c -o value.o >/dev/null 2>&1 mv -f .deps/value.Tpo .deps/value.Plo /bin/bash ../libtool --tag=CC --mode=link gcc -Wall -Wextra -Wdeclaration-after-statement -O2 -Wall -march=native -I /opt/AMDAPPSDK-2.9-1/include/ -no-undefined -export-symbols-regex '^json_' -version-info 9:0:5 -L/opt/AMDAPPSDK-2.9-1/lib/x86_64/ -o libjansson.la -rpath /usr/local/lib dump.lo error.lo hashtable.lo load.lo memory.lo pack_unpack.lo strbuffer.lo strconv.lo utf.lo value.lo libtool: link: /usr/bin/nm -B .libs/dump.o .libs/error.o .libs/hashtable.o .libs/load.o .libs/memory.o .libs/pack_unpack.o .libs/strbuffer.o .libs/strconv.o .libs/utf.o .libs/value.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libjansson.exp libtool: link: /bin/grep -E -e "^json_" ".libs/libjansson.exp" > ".libs/libjansson.expT" libtool: link: mv -f ".libs/libjansson.expT" ".libs/libjansson.exp" libtool: link: echo "{ global:" > .libs/libjansson.ver libtool: link: cat .libs/libjansson.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libjansson.ver libtool: link: echo "local: *; };" >> .libs/libjansson.ver libtool: link: gcc -shared -fPIC -DPIC .libs/dump.o .libs/error.o .libs/hashtable.o .libs/load.o .libs/memory.o .libs/pack_unpack.o .libs/strbuffer.o .libs/strconv.o .libs/utf.o .libs/value.o -L/opt/AMDAPPSDK-2.9-1/lib/x86_64/ -O2 -march=native -Wl,-soname -Wl,libjansson.so.4 -Wl,-version-script -Wl,.libs/libjansson.ver -o .libs/libjansson.so.4.5.0 libtool: link: (cd ".libs" && rm -f "libjansson.so.4" && ln -s "libjansson.so.4.5.0" "libjansson.so.4") libtool: link: (cd ".libs" && rm -f "libjansson.so" && ln -s "libjansson.so.4.5.0" "libjansson.so") libtool: link: ar cru .libs/libjansson.a dump.o error.o hashtable.o load.o memory.o pack_unpack.o strbuffer.o strconv.o utf.o value.o libtool: link: ranlib .libs/libjansson.a libtool: link: ( cd ".libs" && rm -f "libjansson.la" && ln -s "../libjansson.la" "libjansson.la" ) make[5]: Leaving directory/home/john/cryptocurrency/neo-gpuminer/compat/jansson-2.5/src' make[5]: Entering directory /home/john/cryptocurrency/neo-gpuminer/compat/jansson-2.5' make[5]: Leaving directory/home/john/cryptocurrency/neo-gpuminer/compat/jansson-2.5' make[4]: Leaving directory /home/john/cryptocurrency/neo-gpuminer/compat/jansson-2.5' make[3]: Leaving directory/home/john/cryptocurrency/neo-gpuminer/compat/jansson-2.5' make[3]: Entering directory /home/john/cryptocurrency/neo-gpuminer/compat' make[3]: Nothing to be done forall-am'. make[3]: Leaving directory /home/john/cryptocurrency/neo-gpuminer/compat' make[2]: Leaving directory/home/john/cryptocurrency/neo-gpuminer/compat' Making all in ccan make[2]: Entering directory /home/john/cryptocurrency/neo-gpuminer/ccan' CC opt/libccan_a-helpers.o CC opt/libccan_a-opt.o CC opt/libccan_a-parse.o CC opt/libccan_a-usage.o AR libccan.a make[2]: Leaving directory/home/john/cryptocurrency/neo-gpuminer/ccan' make[2]: Entering directory `/home/john/cryptocurrency/neo-gpuminer' CC cgminer-cgminer.o cgminer.c:45:21: fatal error: jansson.h: No such file or directory

include

                 ^

compilation terminated. make[2]: * [cgminer-cgminer.o] Error 1 make[2]: Leaving directory/home/john/cryptocurrency/neo-gpuminer' make[1]: **\* [all-recursive] Error 1 make[1]: Leaving directory/home/john/cryptocurrency/neo-gpuminer' make: * [all] Error 2

vehre commented 10 years ago

Hi,

although cgminer comes with a libjanson implementation it pays to use the system supplied one. Please install the libjansson-dev package from universe and try again starting with make clean and then autogen.sh and make. I hope this will fix your issue. If not please make the output of configure available, i.e. the file config.log.

Regards, Andre

j-marz commented 10 years ago

Thanks Andre, installing libjansson-dev solved the issue.