Title: make problems Post by: jambu on May 22, 2013, 08:35:10 PM Just tried to compile the cpuminer at the Mining forum (http://"https://bitcointalk.org/index.php?topic=1925.0") which I downloaded as a zip file from Github (http://"https://github.com/jgarzik/cpuminer") and got the following errors from make (in ubuntu).
--------------------------------------------------- >make Makefile make: *** No rule to make target `Makefile'. Stop. >make Makefile.am make: Nothing to be done for `Makefile.am'. --------------------------------------------------- The readme contains the following info about the linux build. --------------------------------------------------- Basic *nix build instructions: ./autogen.sh # only needed if building from git repo CFLAGS="-O3 -Wall -msse2" ./configure make --------------------------------------------------- I haven't used C or make in a long time, so can anyone tell what is wrong here? Thanks in advance. Title: Re: make problems Post by: odolvlobo on May 22, 2013, 08:46:32 PM Did you try entering the command "make" according to the instructions? If you need to specify a makefile, look here:
http://www.gnu.org/software/make/manual/make.html#Makefile-Arguments Title: Re: make problems Post by: jambu on May 22, 2013, 09:21:25 PM Thanks for the quick reply!
I have just tried the following, this was from terminal in the directory with the makefile and all the c files in. --------------------------------------- $ make -f Makefile make: Makefile: No such file or directory make: *** No rule to make target `Makefile'. Stop. $ make -f Makefile.am Makefile.am:2: *** missing separator. Stop. $ make --f Makefile.am Makefile.am:2: *** missing separator. Stop. $ make --file Makefile.am Makefile.am:2: *** missing separator. Stop. $ make --f Makefile make: Makefile: No such file or directory make: *** No rule to make target `Makefile'. Stop. $ make --file Makefile make: Makefile: No such file or directory make: *** No rule to make target `Makefile'. Stop. $ make --file ./Makefile make: ./Makefile: No such file or directory make: *** No rule to make target `./Makefile'. Stop. $ make --file ./makefile make: ./makefile: No such file or directory make: *** No rule to make target `./makefile'. Stop. $ make --f makefile make: makefile: No such file or directory make: *** No rule to make target `makefile'. Stop. ------------------------------------------------------------------- This is the contents of the makefile in case that helps. --------------------------------------------------------------------------- if WANT_JANSSON JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson else JANSSON_INCLUDES= endif EXTRA_DIST = example-cfg.json SUBDIRS = compat INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES) bin_PROGRAMS = minerd minerd_SOURCES = elist.h miner.h compat.h cpu-miner.c util.c sha256_generic.c sha256_4way.c sha256_via.c sha256_cryptopp.c sha256_sse2_amd64.c minerd_LDFLAGS = $(PTHREAD_FLAGS) minerd_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ minerd_CPPFLAGS = @LIBCURL_CPPFLAGS@ if HAVE_x86_64 if HAS_YASM SUBDIRS += x86_64 minerd_LDADD += x86_64/libx8664.a AM_CFLAGS = -DHAS_YASM endif endif Title: Re: make problems Post by: Foxpup on May 23, 2013, 04:20:45 AM Run make (with no arguments) from within the same directory that the Makefile is in. This is important. You also need to run ./autogen.sh and ./configure (again from within the same directory) first.
Assuming you unzipped it to ~/cpuminer-master, you should run the following commands: Code: cd ~/cpuminer-master #(or whatever directory you unzipped it to) This will create the executable file "minerd" in the same directory. Run ./minerd --help for usage instructions. Title: Re: make problems Post by: W770 on May 23, 2013, 04:36:36 AM Make sure you are using gnu make, other make tool may not work
Title: Re: make problems Post by: jambu on May 23, 2013, 05:35:01 PM Thanks for the replies.
I am using gnu make W770, I get the following when I run make -?. -------------------------------------------------------- This program built for x86_64-pc-linux-gnu -------------------------------------------------------- Foxpup, I am running from the cpuminer-master directory, I also made sure autoconf and automake (had to upgrade this one) were the right versions. Now when I run ./autogen.sh I get the following -------------------------------------------------------------- Useless use of /d modifier in transliteration operator at /usr/bin/automake line 5985. configure.ac:96: error: possibly undefined macro: AC_MSG_ERROR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. ------------------------------------------------- Line 96 contains the following... ----------------------------------------------------------------------------------------------------------------------- LIBCURL_CHECK_CONFIG(, 7.10.1, , [AC_MSG_ERROR([Missing required libcurl >= 7.10.1])]) ----------------------------------------------------------------------------------------------------------------------- Any ideas on what I should do next? Thanks. Title: Re: make problems Post by: Foxpup on May 24, 2013, 02:53:56 AM Line 96 contains the following... Well, installing libcurl would probably be a good start (especially as the README says it's required). On Ubuntu run:----------------------------------------------------------------------------------------------------------------------- LIBCURL_CHECK_CONFIG(, 7.10.1, , [AC_MSG_ERROR([Missing required libcurl >= 7.10.1])]) ----------------------------------------------------------------------------------------------------------------------- Any ideas on what I should do next? Thanks. Code: sudo apt-get install libcurl4-gnutls-dev |