Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install cpuminer-multi #3

Closed
moneymouf opened this issue Jun 20, 2014 · 10 comments
Closed

Cannot install cpuminer-multi #3

moneymouf opened this issue Jun 20, 2014 · 10 comments

Comments

@moneymouf
Copy link

Hi, I'm getting an error every time I try to install the cpuminer. I'm on OS X Mavericks 10.9.3. Any help would be appreciated. Thanks

==> Cloning https://github.com/monero-project/bitmonero.git
Updating /Library/Caches/Homebrew/bitmonero--git
==> make
[ 41%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/tx_pool.cpp.o
Linking CXX static library libcryptonote_core.a
[ 41%] Built target cryptonote_core
make[1]: *** [all] Error 2
make: *** [build-release] Error 2

@sammy007
Copy link
Owner

It seems you are building monero, not cpuminer-multi. Please change title, I will refer this issue in monero tracker. This build errors related to latest changes pushed to https://github.com/monero-project/bitmonero

@sammy007
Copy link
Owner

Just submitted issue monero-project/monero#49

@sammy007
Copy link
Owner

Fixed in monero mainline. Try to install again. Works for me.

@moneymouf
Copy link
Author

oops, installing monero, not cpuminer. Tried again this morning, getting the same error. Rechecked for latest builds. Updated homebrew. Restarted. Same issue.

==> Cloning https://github.com/monero-project/bitmonero.git
Updating /Library/Caches/Homebrew/bitmonero--git
==> make
[ 41%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/tx_pool.cpp.o
Linking CXX static library libcryptonote_core.a
[ 41%] Built target cryptonote_core
make[1]: *** [all] Error 2
make: *** [build-release] Error 2

@sammy007
Copy link
Owner

Issue fixed in monero 4 hours ago. I tested it and compiled successfully in Mavericks. Try again and post yout results.

@sammy007 sammy007 reopened this Jun 20, 2014
@moneymouf
Copy link
Author

Still have the issue. :/

==> Cloning https://github.com/monero-project/bitmonero.git
Updating /Library/Caches/Homebrew/bitmonero--git
==> make
[ 41%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/tx_pool.cpp.o
Linking CXX static library libcryptonote_core.a
[ 41%] Built target cryptonote_core
make[1]: *** [all] Error 2
make: *** [build-release] Error 2

@sammy007
Copy link
Owner

Could you run it with -v option? Is it unable to find malloc.h?

@moneymouf
Copy link
Author

mbiojack16smbp:~ Logan$ brew install --HEAD bitmonero -v
==> Cloning https://github.com/monero-project/bitmonero.git
git --git-dir /Library/Caches/Homebrew/bitmonero--git/.git status -s
Updating /Library/Caches/Homebrew/bitmonero--git
git config remote.origin.url https://github.com/monero-project/bitmonero.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git checkout -f master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
git reset --hard origin/HEAD
HEAD is now at 4c67dbb Merge pull request #55 from monero-project/revert-54-master
git reset --hard origin/HEAD
HEAD is now at 4c67dbb Merge pull request #55 from monero-project/revert-54-master
git checkout-index -a -f --prefix=/private/tmp/bitmonero-VcNe/
==> make
mkdir -p build/release
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
-- The C compiler identification is Clang 5.1.0
-- The CXX compiler identification is Clang 5.1.0
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- chrono
-- regex
-- serialization
-- program_options
-- Found Git: /usr/local/Library/ENV/4.3/git
-- Found PythonInterp: /usr/bin/python (found version "2.7.5")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/bitmonero-VcNe/build/release
cd build/release && /Applications/Xcode.app/Contents/Developer/usr/bin/make
Scanning dependencies of target version
Scanning dependencies of target upnpc-static
[ 1%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o
fatal: Not a git repository (or any of the parent directories): .git
CMake Warning at src/version.cmake:3 (message):
Cannot determine current revision. Make sure that you are building either
from a Git working tree or from a source archive.

[ 1%] Built target version
[ 2%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/miniupnpc.c.o
[ 3%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minixml.c.o
[ 4%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minisoap.c.o
[ 5%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/miniwget.c.o
[ 6%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpc.c.o
[ 7%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpcommands.c.o
[ 8%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpreplyparse.c.o
[ 9%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnperrors.c.o
[ 10%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/connecthostport.c.o
[ 11%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/portlistingparse.c.o
[ 12%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/receivedata.c.o
[ 13%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minissdpc.c.o
Linking C static library libminiupnpc.a
[ 13%] Built target upnpc-static
Scanning dependencies of target common
[ 14%] Building CXX object src/CMakeFiles/common.dir/common/base58.cpp.o
Scanning dependencies of target cryptonote_core
[ 15%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/account.cpp.o
[ 16%] Building CXX object src/CMakeFiles/common.dir/common/command_line.cpp.o
[ 17%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/blockchain_storage.cpp.o
[ 18%] Building CXX object src/CMakeFiles/common.dir/common/util.cpp.o
Linking CXX static library libcommon.a
[ 18%] Built target common
[ 19%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/checkpoints.cpp.o
Scanning dependencies of target crypto
[ 20%] Building C object src/CMakeFiles/crypto.dir/crypto/aesb.c.o
[ 21%] Building C object src/CMakeFiles/crypto.dir/crypto/blake256.c.o
[ 22%] Building C object src/CMakeFiles/crypto.dir/crypto/chacha8.c.o
[ 23%] Building C object src/CMakeFiles/crypto.dir/crypto/crypto-ops-data.c.o
[ 24%] Building C object src/CMakeFiles/crypto.dir/crypto/crypto-ops.c.o
[ 25%] Building CXX object src/CMakeFiles/crypto.dir/crypto/crypto.cpp.o
[ 26%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/cryptonote_basic_impl.cpp.o
[ 27%] Building CXX object src/CMakeFiles/crypto.dir/crypto/electrum-words.cpp.o
[ 28%] Building C object src/CMakeFiles/crypto.dir/crypto/groestl.c.o
[ 29%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-blake.c.o
[ 30%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-groestl.c.o
[ 31%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-jh.c.o
[ 32%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-skein.c.o
[ 33%] Building C object src/CMakeFiles/crypto.dir/crypto/hash.c.o
[ 34%] Building C object src/CMakeFiles/crypto.dir/crypto/jh.c.o
[ 35%] Building C object src/CMakeFiles/crypto.dir/crypto/keccak.c.o
[ 36%] Building C object src/CMakeFiles/crypto.dir/crypto/oaes_lib.c.o
/tmp/bitmonero-VcNe/src/crypto/oaes_lib.c:37:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^
1 error generated.
make[3]: *** [src/CMakeFiles/crypto.dir/crypto/oaes_lib.c.o] Error 1
make[2]: *** [src/CMakeFiles/crypto.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 37%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/cryptonote_core.cpp.o
[ 38%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/cryptonote_format_utils.cpp.o
[ 39%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/difficulty.cpp.o
[ 40%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/miner.cpp.o
[ 41%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/tx_pool.cpp.o
Linking CXX static library libcryptonote_core.a
[ 41%] Built target cryptonote_core
make[1]: *** [all] Error 2
make: *** [build-release] Error 2
==> Formula
Tap: sammy007/homebrew-cryptonight
Path: /usr/local/Library/Taps/sammy007/homebrew-cryptonight/bitmonero.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 0e91b434083816d7f03232ae129523867ae8ade5
CPU: dual-core 64-bit penryn
OS X: 10.9.3-x86_64
Xcode: 5.1.1
X11: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/apache2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/miniupnpc/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: bitmonero HEAD did not build
Logs:
/Users/Logan/Library/Logs/Homebrew/bitmonero/01.make
/Users/Logan/Library/Logs/Homebrew/bitmonero/01.make.cc

@sammy007
Copy link
Owner

sammy007 commented Jul 2, 2014

Try to install xcode command line tools. If this does not help, sudo find / -iname 'malloc.h' and make a symlink to /usr/include/malloc/malloc.h, /usr/include/sys/malloc.h

@moneymouf
Copy link
Author

command line tools fixed it! Thanks for all the help.

@sammy007 sammy007 closed this as completed Jul 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants