WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help compiling cpuminer-gc3355  (Read 8699 times)

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Help compiling cpuminer-gc3355
« on: June 12, 2014, 01:42:30 PM »
Hi, with this packages usually I am able to compile CGMINER https://github.com/jmordica/cgminer-gc3355

Code: [Select]
openssh.tcz
git.tcz
nano.tcz
libtool-dev.tcz
curl-dev.tcz
ncurses-dev.tcz
libusb-dev.tcz
udev-extra.tcz
autoconf.tcz
automake.tcz
m4.tcz
compiletc.tcz
ntpclient.tcz
screen.tcz

but  when i try to compile cpuminer-gc3355  https://github.com/siklon/cpuminer-gc3355, I have an error can you help me?

Code: [Select]
c@box:/home/cpuminer-gc3355$ sudo ./autogen.sh
configure.ac:13: installing './compile'
configure.ac:4: installing './config.guess'
configure.ac:4: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing './depcomp'
configure.ac:114: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
tc@box:/home/cpuminer-gc3355$

Thanks in advance Luca

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help compiling cpuminer-gc3355
« Reply #1 on: June 12, 2014, 06:08:52 PM »
I too had problems with that curl check (badly made configure.ac). If you're sure the curl extension is recent enough, you can just comment the two lines out (LIBCURL_CHECK_C...) by adding "dnl" at the start, then autogen.
The only barriers that can stop you are the ones you create yourself.

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Re: Help compiling cpuminer-gc3355
« Reply #2 on: June 13, 2014, 05:51:56 AM »
Hi curaga, I have the latest available

Code: [Select]
tc@box:/home$ curl -V
curl 7.33.0 (i686-pc-linux-gnu) libcurl/7.33.0 OpenSSL/1.0.0k zlib/1.2.8 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz

Quote
you can just comment the two lines out (LIBCURL_CHECK_C...) by adding "dnl" at the start, then autogen.

I have to edit configure.ac line 163 https://github.com/siklon/cpuminer-gc3355/blob/master/configure.ac
from:
Code: [Select]
LIBCURL_CHECK_CONFIG(, 7.15.2, ,
  [AC_MSG_ERROR([Missing required libcurl >= 7.15.2])])

to:
dnl LIBCURL_CHECK_CONFIG(, 7.15.2, ,
  [AC_MSG_ERROR([Missing required libcurl >= 7.15.2])])

Thanks in advance W_M

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help compiling cpuminer-gc3355
« Reply #3 on: June 13, 2014, 06:17:50 AM »
Both lines need to be commented out.
The only barriers that can stop you are the ones you create yourself.

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Re: Help compiling cpuminer-gc3355
« Reply #4 on: June 13, 2014, 07:07:08 AM »
Hi, I have made the modify to configure.ac, but now i have an error running make command  :'(

Code: [Select]
tc@box:/home$ sudo git clone https://github.com/siklon/cpuminer-gc3355
Cloning into 'cpuminer-gc3355'...
remote: Counting objects: 862, done.
remote: Compressing objects: 100% (494/494), done.
remote: Total 862 (delta 358), reused 862 (delta 358)
Receiving objects: 100% (862/862), 4.72 MiB | 736 KiB/s, done.
Resolving deltas: 100% (358/358), done.

tc@box:/home$ cd cpuminer-gc3355
tc@box:/home/cpuminer-gc3355$

tc@box:/home/cpuminer-gc3355$ sudo nano configure.ac

[quote]
r163       dnl LIBCURL_CHECK_CONFIG(, 7.15.2, ,
r164       dnl   [AC_MSG_ERROR([Missing required libcurl >= 7.15.2])])
[/quote]

tc@box:/home/cpuminer-gc3355$ sudo ./autogen.sh
configure.ac:13: installing './compile'
configure.ac:4: installing './config.guess'
configure.ac:4: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing './depcomp'
tc@box:/home/cpuminer-gc3355$

tc@box:/home/cpuminer-gc3355$ sudo ./configure CFLAGS="-O3"
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking dependency style of gcc -std=gnu99... gcc3
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for sys/sysctl.h... yes
checking whether be32dec is declared... no
checking whether le32dec is declared... no
checking whether be32enc is declared... no
checking whether le32enc is declared... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for getopt_long... yes
checking whether we can compile AVX code... yes
checking whether we can compile XOP code... yes
checking whether we can compile AVX2 code... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for library containing addstr... -lncurses
checking libudev.h usability... yes
checking libudev.h presence... yes
checking for libudev.h... yes
checking for setupapi.h... no
checking for initguid.h... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating compat/jansson/Makefile
config.status: creating cpuminer-config.h
config.status: executing depfiles commands
tc@box:/home/cpuminer-gc3355$

tc@box:/home/cpuminer-gc3355$ sudo make
make  all-recursive
make[1]: Entering directory `/home/cpuminer-gc3355'
Making all in compat
make[2]: Entering directory `/home/cpuminer-gc3355/compat'
Making all in jansson
make[3]: Entering directory `/home/cpuminer-gc3355/compat/jansson'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -O3 -MT dump.o -MD -MP -MF .deps/dump.Tpo -c -o dump.o dump.c
mv -f .deps/dump.Tpo .deps/dump.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -O3 -MT hashtable.o -MD -MP -MF .deps/hashtable.Tpo -c -o hashtable.o hashtable.c
mv -f .deps/hashtable.Tpo .deps/hashtable.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -O3 -MT load.o -MD -MP -MF .deps/load.Tpo -c -o load.o load.c
mv -f .deps/load.Tpo .deps/load.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -O3 -MT strbuffer.o -MD -MP -MF .deps/strbuffer.Tpo -c -o strbuffer.o strbuffer.c
mv -f .deps/strbuffer.Tpo .deps/strbuffer.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -O3 -MT utf.o -MD -MP -MF .deps/utf.Tpo -c -o utf.o utf.c
mv -f .deps/utf.Tpo .deps/utf.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -O3 -MT value.o -MD -MP -MF .deps/value.Tpo -c -o value.o value.c
mv -f .deps/value.Tpo .deps/value.Po
rm -f libjansson.a
ar cru libjansson.a dump.o hashtable.o load.o strbuffer.o utf.o value.o
ranlib libjansson.a
make[3]: Leaving directory `/home/cpuminer-gc3355/compat/jansson'
make[3]: Entering directory `/home/cpuminer-gc3355/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/cpuminer-gc3355/compat'
make[2]: Leaving directory `/home/cpuminer-gc3355/compat'
make[2]: Entering directory `/home/cpuminer-gc3355'
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -pthread -fno-strict-aliasing -I./compat/jansson @LIBCURL_CPPFLAGS@   -O3 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
gcc: error: @LIBCURL_CPPFLAGS@: No such file or directory
make[2]: *** [minerd-cpu-miner.o] Error 1
make[2]: Leaving directory `/home/cpuminer-gc3355'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cpuminer-gc3355'
make: *** [all] Error 2
tc@box:/home/cpuminer-gc3355$


Thanks W_M

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help compiling cpuminer-gc3355
« Reply #5 on: June 13, 2014, 08:41:16 AM »
Try removing those from the makefiles, and replacing curl_ldflags with -lcurl. That's also because of the badly made configuration.
The only barriers that can stop you are the ones you create yourself.

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Re: Help compiling cpuminer-gc3355
« Reply #6 on: June 13, 2014, 09:47:59 AM »
Hi, I make all the steps till the ./configure command, then I locate the makefiles (Makefile , Makefile.am , Makefile.in) locate in the directory
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating compat/jansson/Makefile

and with the NANO editor with CTRL+W command I try to locate "curl_ldflags" but no corrispondence was found.

Thanks W_M

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help compiling cpuminer-gc3355
« Reply #7 on: June 13, 2014, 10:24:18 AM »
Perhaps it's called something else then. Search for curl.
The only barriers that can stop you are the ones you create yourself.

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Re: Help compiling cpuminer-gc3355
« Reply #8 on: June 13, 2014, 10:39:50 AM »
Hi, i find "curl" in the files locate in the main directory
Makefile
minerd_CPPFLAGS = $(PTHREAD_FLAGS) -fno-strict-aliasing \
        $(JANSSON_CPPFLAGS) @LIBCURL_CPPFLAGS@

minerd_LDADD = @LIBCURL@ compat/jansson/libjansson.a -lpthread    -ludev

Makefile.am
minerd_LDADD    = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ @NCURSES_LIBS@ @PDCURSES_LIBS@ @UDEV_LIBS@ @SETUPAPI_LIBS@
minerd_CPPFLAGS += @LIBCURL_CPPFLAGS@

Makefile.in
minerd_CPPFLAGS = $(PTHREAD_FLAGS) -fno-strict-aliasing \
        $(JANSSON_CPPFLAGS) @LIBCURL_CPPFLAGS@
minerd_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ @NCURSES_LIBS@ @PDCURSES_LIBS@ @UDEV_LIBS@ @SETUPAPI_LIBS@

Thanks W_M

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Re: Help compiling cpuminer-gc3355
« Reply #9 on: June 28, 2014, 09:19:25 AM »
 :'( any idea how to solve the problem?

Thanks in advance