Author Topic: Bitshares - Archlinux  (Read 8908 times)

0 Members and 1 Guest are viewing this topic.

Offline sva_h4cky0

  • Jr. Member
  • **
  • Posts: 30
  • onore dikeido
    • View Profile
  • BitShares: sva-h4cky0
glad to see fellow Archer here  :)
天の道を行き、総てを司る! Ten no michi o iki, subete o tsukasadoru!

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Can someone create a BUILD_ARCHLINUX.md file and submit a pull request to the toolkit?
in theory yes .. but for archlinux .. I already wrote a so called PKGBUILD file for AUR ..  I just need to modify it so that it uses clang ..

the conent for a build_archlinux.md would just be "yaourt -S bitsharesx-gui-git"
:-)

Nice

I just upgraded the bitsharesx-git PKGBUILD .. gonna do the GUI in a minute.
Not sure if you have saw a PKGBUILD .. but it looks like this:

Code: [Select]
# Maintainer: Fabian Schuh <mail@xeroc.org>
pkgname="bitsharesx-git"
pkgver="20140824"
pkgrel=1
pkgdesc="BitSharesX command line client/daemon"
url="http://www.bitshares-x.info"
arch=('x86_64' 'i686')
license=('unlicense')
depends=('boost')
makedepends=('git' 'cmake' 'clang' 'make')
_gitroot="git://github.com/dacsunlimited/bitsharesx.git"
_gitname="bitsharesx"
build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."
  if [[ -d "${_gitname}" ]]; then
    cd "${_gitname}" && git pull origin
    msg "The local files are updated."
  else
    git clone "$_gitroot" "$_gitname"
  fi
  msg "Starting build..."
  #rm -rf "$srcdir/$_gitname"
  cd "$srcdir/$_gitname"
  git submodule init
  git submodule update
  export CC=clang CXX=clang++
  cmake .
  make
}
package() {
  mkdir -p "$pkgdir/usr/bin/"
  install -Dm755 "$srcdir/$_gitname/programs/client/bitshares_client"     "$pkgdir/usr/bin/bitsharesx"
}
# vim:set ts=2 sw=2 et:

Offline bytemaster

Can someone create a BUILD_ARCHLINUX.md file and submit a pull request to the toolkit?
in theory yes .. but for archlinux .. I already wrote a so called PKGBUILD file for AUR ..  I just need to modify it so that it uses clang ..

the conent for a build_archlinux.md would just be "yaourt -S bitsharesx-gui-git"
:-)

Nice
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Can someone create a BUILD_ARCHLINUX.md file and submit a pull request to the toolkit?
There's quite a few packages on aur.archlinux.org. I've been having lots of compilation issues on Arch Linux.
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Can someone create a BUILD_ARCHLINUX.md file and submit a pull request to the toolkit?
in theory yes .. but for archlinux .. I already wrote a so called PKGBUILD file for AUR ..  I just need to modify it so that it uses clang ..

the conent for a build_archlinux.md would just be "yaourt -S bitsharesx-gui-git"
:-)

iHashFury

  • Guest
make a
rm -rf CMakeCache.txt CMakeFiles/
to delete the cmake cache ..

than run cmake again .. first few lines should show you the new compiler is CLANG

Dancer!  :D Thank you for the info.

Code: [Select]
rm -rf CMakeCache.txt CMakeFiles/
export CC=clang;export CXX=clang++
make
cmake -DINCLUDE_QT_WALLET=ON .
export CC=clang;export CXX=clang++
make BitSharesX


Offline bytemaster

Can someone create a BUILD_ARCHLINUX.md file and submit a pull request to the toolkit?
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
make a
rm -rf CMakeCache.txt CMakeFiles/
to delete the cmake cache ..

than run cmake again .. first few lines should show you the new compiler is CLANG

iHashFury

  • Guest
Thank you for the info.

Tried clang-3.4.2-1 but, now getting this

Code: [Select]
[ 80%] Building CXX object libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o
/home/jason/tmp/git/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/jason/tmp/git/bitsharesx/libraries/blockchain/chain_database.cpp:1145: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 <https://bugs.archlinux.org/> for instructions.
libraries/blockchain/CMakeFiles/bts_blockchain.dir/build.make:570: recipe for target 'libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o' failed
make[3]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o] Error 1
CMakeFiles/Makefile2:847: recipe for target 'libraries/blockchain/CMakeFiles/bts_blockchain.dir/all' failed
make[2]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/all] Error 2
CMakeFiles/Makefile2:1862: recipe for target 'programs/qt_wallet/CMakeFiles/BitSharesX.dir/rule' failed
make[1]: *** [programs/qt_wallet/CMakeFiles/BitSharesX.dir/rule] Error 2
Makefile:593: recipe for target 'BitSharesX' failed
make: *** [BitSharesX] Error 2


There is my build script:

Code: [Select]
git clone https://github.com/dacsunlimited/bitsharesx.git
cd bitsharesx
#git pull
#git checkout 0.4.12
git submodule init
git submodule update
make clean
cmake -DINCLUDE_QT_WALLET=ON .
cd programs/web_wallet
npm install lineman --prefix=/home/jason/bin/.global_npm -g
npm install
#npm update
cd -
export CC=clang;export CXX=clang++
make buildweb $MAKEFLAGS
make BitSharesX $MAKEFLAGS
make $MAKEFLAGS
cd ~/tmp/git/bitsharesx/programs/qt_wallet/bin/
strip BitSharesX

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc

iHashFury

  • Guest
Hello

This is the first build error I have had on archlinux - all other releases worked without error.
Any guidance is much appreciated.

Code: [Select]
[ 78%] Building CXX object libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o
cd /home/jason/tmp/git/bitsharesx/libraries/blockchain && /usr/bin/c++    -std=c++11 -Wall -O2 -g -DNDEBUG -I/home/jason/tmp/git/bitsharesx/libraries/blockchain/include -I/home/jason/tmp/git/bitsharesx/libraries/fc/include -I/home/jason/tmp/git/bitsharesx/libraries/db/include -I/home/jason/tmp/git/bitsharesx/vendor/leveldb-1.12.0 -I/home/jason/tmp/git/bitsharesx/vendor/leveldb-1.12.0/include    -std=c++11 -Wall -fnon-call-exceptions -o CMakeFiles/bts_blockchain.dir/chain_database.cpp.o -c /home/jason/tmp/git/bitsharesx/libraries/blockchain/chain_database.cpp
/home/jason/tmp/git/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/jason/tmp/git/bitsharesx/libraries/blockchain/chain_database.cpp:1145: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 <https://bugs.archlinux.org/> for instructions.
libraries/blockchain/CMakeFiles/bts_blockchain.dir/build.make:570: recipe for target 'libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o' failed
make[2]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o] Error 1
make[2]: Leaving directory '/home/jason/tmp/git/bitsharesx'
CMakeFiles/Makefile2:847: recipe for target 'libraries/blockchain/CMakeFiles/bts_blockchain.dir/all' failed
make[1]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/all] Error 2
make[1]: Leaving directory '/home/jason/tmp/git/bitsharesx'
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
« Last Edit: November 25, 2014, 10:28:20 am by iHashFury »