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

Unable to compile on Ubuntu quantal 12.10 #41

Closed
abrkn opened this issue Apr 21, 2013 · 4 comments
Closed

Unable to compile on Ubuntu quantal 12.10 #41

abrkn opened this issue Apr 21, 2013 · 4 comments

Comments

@abrkn
Copy link

abrkn commented Apr 21, 2013

sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y build-essential libssl-dev libdb5.1-dev libdb5.1++-dev libboost-all-dev git libqrencode-dev

cd ~
git clone git://github.com/litecoin-project/litecoin.git
cd litecoin/src
make -f makefile.unix USE_UPNP=-
ubuntu@********:~/litecoin/src$ make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/home/ubuntu/litecoin/src -I/home/ubuntu/litecoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/bitcoinrpc.d -o obj/bitcoinrpc.o bitcoinrpc.cpp

æg++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make: *** [obj/bitcoinrpc.o] Error 4
@dasher
Copy link

dasher commented Apr 21, 2013

I think you're running out of mem - are you on a small vps or a machine with only a small amount of memory?

There's a few fixes for this - start with:

sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
make -f makefile.unix USE_UPNP=-

@abrkn
Copy link
Author

abrkn commented Apr 24, 2013

Perfect!

@MorozCoi
Copy link

Hello everybody!
How can i fix it:
make -f makefile.unix USE_UPNP=-/bin/sh ../share/genbuild.sh obj/build.h
fatal: ваша текущая ветка «master» еще не содержит ни одного коммита
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/evgeniy/morozcoin/src -I/home/evgeniy/morozcoin/src/obj -DUSE_IPV6=1 -I/home/evgeniy/morozcoin/src/leveldb/include -I/home/evgeniy/morozcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/bitcoinrpc.d -o obj/bitcoinrpc.o bitcoinrpc.cpp
bitcoinrpc.cpp: In function ‘json_spirit::Object CallRPC(const string&, const Array&)’:
bitcoinrpc.cpp:1068:81: error: no matching function for call to ‘SSLIOStreamDeviceboost::asio::ip::tcp::connect(std::__cxx11::string, int64)’
if (!d.connect(GetArg("-rpcconnect", "127.0.0.1"), GetArg("-rpcport", 55883)))
^
bitcoinrpc.cpp:586:10: note: candidate: bool SSLIOStreamDevice::connect(const string&, const string&) [with Protocol = boost::asio::ip::tcp; std::__cxx11::string = std::__cxx11::basic_string]
bool connect(const std::string& server, const std::string& port)
^
bitcoinrpc.cpp:586:10: note: no known conversion for argument 2 from ‘int64 {aka long long int}’ to ‘const string& {aka const std::__cxx11::basic_string&}’
makefile.unix:172: failed to perform the recipe for the target «obj/bitcoinrpc.o»
make: *** [obj/bitcoinrpc.o] Error 1

thrasher- pushed a commit to thrasher-/litecoin that referenced this issue Feb 14, 2018
fe805ea Declare single-argument (non-converting) constructors "explicit"
8a2d6f1 Merge pull request litecoin-project#41 from jgarzik/get-obj-map
ba341a2 Add getObjMap() helper method.  Also, constify checkObject().
ceb1194 Handle .pushKV() and .checkObject() edge cases.
107db98 Add ::push_back(double) method for feature parity.
d415300 Move one-line implementation of UniValue::read() to header.
52e85b3 Move exception-throwing get_* methods into separate implementation module.
dac5296 README.md: update code quotes
3e31dcf README.md: close code quote
d09b842 Update README.md
f1b86ed Convert README to markdown style.
1dfe464 Import UniValue class unit tests from bitcoin project.
0d3e74d operator[] takes size_t index parameter (versus unsigned int)
640158f Private findKey() method becomes size_t clean, and returns bool on failure.
7099135 Merge pull request litecoin-project#36 from ryanofsky/pr/end-str
a31231b Version 1.0.3
4fd5444 Reject unterminated strings
81eba33 Merge pull request litecoin-project#26 from isle2983/pushBackHelpers
3640541 Merge PR litecoin-project#32 from branch 'nul-not-special' of git://github.com/ryanofsky/univalue into merge
89bb073 Merge pull request litecoin-project#31 from ryanofsky/raw-literals
511008c Merge pull request litecoin-project#30 from ryanofsky/test-driver
77974f3 Merge pull request litecoin-project#34 from paveljanik/20161116_Wshadow_codepoint
a38fcd3 Do not shadow member variable codepoint.
fd32d1a Don't require nul-terminated string inputs
0bb1439 Support parsing raw literals in UniValue
28876d0 Merge pull request litecoin-project#29 from btcdrak/exportspace
839ccd7 Add test driver for JSONTestSuite
26ef3ff Remove trailing whitespace from JSON export
cfa0384 Convenience wrappers for push_back-ing integer types
REVERT: 16a1f7f Merge #3: Pull upstream
REVERT: daf1285 Merge pull request #2 from jgarzik/master
REVERT: f32df99 Merge branch '2016_04_unicode' into bitcoin
REVERT: 280b191 Merge remote-tracking branch 'jgarzik/master' into bitcoin
REVERT: 2740c4f Merge branch '2015_11_escape_plan' into bitcoin

git-subtree-dir: src/univalue
git-subtree-split: fe805ea
@aaressinfomedia
Copy link

-- bool connect(const std::string& server, const std::string& port)

do necessory change in above line as given below

++ bool connect(const std::string& server, std::string port)

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

4 participants