Author Topic: Ubuntu/Linux client for BitsharesX  (Read 2618 times)

0 Members and 1 Guest are viewing this topic.

Offline santaclause102

  • Hero Member
  • *****
  • Posts: 2486
    • View Profile
I compiled it with 4GB Swap and make -j (as you described) as well as with a 4 GB Swap and without make -j. The only thing that worked was to increase the swap to 8 GB (no make -j).

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
No... I was asking if you're using the -j flag when running make. That would mean several compiler processes running in parallel, to make better use of multi-core CPUs. Of course that also requires much more memory and only makes sense when you don't run into swapping.

High optimization levels also consume more memory, and 64bit architectures require more than 32bit. I really don't see why you should need several GB, though.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline santaclause102

  • Hero Member
  • *****
  • Posts: 2486
    • View Profile
Huh? I'm regularly building it on a netbook with 1G RAM + 1G swap.
Are you using make -j?

make -j? didnt help.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
that issue is GCC related ….. i though it is fixed in the latest release.
but you can alternatively also use CLANG for comilation:
https://bitsharestalk.org/index.php?topic=8510.msg110667#msg110667

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Huh? I'm regularly building it on a netbook with 1G RAM + 1G swap.
Are you using make -j?
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline santaclause102

  • Hero Member
  • *****
  • Posts: 2486
    • View Profile
An "internal compiler error" is usually caused by insufficient RAM. You need to add more swapspace for compiling. Or even better - add more RAM. :-)

For me 4 GB of Swap wasn't enough. It worked with 8 GB...

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Also, you might try closing all applications. Better still, log in without X at the log in screen so you get to a TTY screen (just a black screen with text) and compile from there.
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
An "internal compiler error" is usually caused by insufficient RAM. You need to add more swapspace for compiling. Or even better - add more RAM. :-)
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline lafona

  • Sr. Member
  • ****
  • Posts: 231
    • View Profile
  • BitShares: lafona
Hi I am also a user of Ubuntu and I have been having difficulty with the build. It is not a fresh install as it is my everyday computer but I have tried to set the dependencies to the right versions(boost 1.54 etc). However,  every time I go through the process listed above it crashes when it gets to 75%. Any help would be appreciated. Thanks

Here are the last few lines.

[ 75%] Building CXX object libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o
/home/lafona/Applications/bts/bitsharesx/libraries/blockchain/chain_database.cpp: In member function ‘void bts::blockchain::chain_database::open(const fc::path&, fc::optional<fc::path>, std::function<void(float)>)’:
/home/lafona/Applications/bts/bitsharesx/libraries/blockchain/chain_database.cpp:1171:63: internal compiler error: in calc_dfs_tree, at dominance.c:401
    } FC_RETHROW_EXCEPTIONS( warn, "", ("data_dir",data_dir) ) }
                                                               ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccjrG95c.out file, please attach this to your bugreport.
make[2]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o] Error 1
make[1]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/all] Error 2
make: *** [all] Error 2
BTS Witnesses: delegate-1.lafona     Witness Thread: https://bitsharestalk.org/index.php/topic,21569.msg280911/topicseen.html#msg280911
MUSE Witness: lafona

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
i suggest learning to compile yourself, but if you want you can use the PPA in my signature. You would have to trust that I don't do anything nefarious. I'm a delegate and you are already running software on your computer that I compiled (I'm a DD and Ubuntu contributor), so you are already trusting me.

Even so, I think you should try compiling even if it just gets you closer to the code
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline svk

There is a well functioning client for Ubuntu/Linux, you just need to compile it yourself. It's quite simple, you can find the instructions here:

http://wiki.bitshares.org/index.php/BuildInstructionsBitSharesX#Debian.2FUbuntu

Worker: dev.bitsharesblocks

Offline scot

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hi,
I am user of Ubuntu Linux.Currently there is no client for Ubuntu.
Are you going to create one?If yes,when?
thanks