Bitcoin Forum
May 24, 2024, 06:04:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: make problems  (Read 929 times)
jambu (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 22, 2013, 08:35:10 PM
 #1

Just tried to compile the cpuminer at the Mining forum which I downloaded as a zip file from Github 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.
odolvlobo
Legendary
*
Online Online

Activity: 4326
Merit: 3235



View Profile
May 22, 2013, 08:46:32 PM
 #2

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

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
jambu (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 22, 2013, 09:21:25 PM
 #3

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
Foxpup
Legendary
*
Offline Offline

Activity: 4368
Merit: 3045


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
May 23, 2013, 04:20:45 AM
 #4

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)
./autogen.sh
CFLAGS="-O3 -Wall -msse2" ./configure
make

This will create the executable file "minerd" in the same directory. Run ./minerd --help for usage instructions.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
W770
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 23, 2013, 04:36:36 AM
 #5

Make sure you are using gnu make, other make tool may not work
jambu (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 23, 2013, 05:35:01 PM
 #6

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.
Foxpup
Legendary
*
Offline Offline

Activity: 4368
Merit: 3045


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
May 24, 2013, 02:53:56 AM
 #7

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.
Well, installing libcurl would probably be a good start (especially as the README says it's required). On Ubuntu run:
Code:
sudo apt-get install libcurl4-gnutls-dev
(or use your favourite package manager to install libcurl4-gnutls-dev)

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!