Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Bitshares - Archlinux  (Read 1218 times)

Offline iHashFury

Bitshares - Archlinux
« on: September 07, 2014, 03:23:53 PM »

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 »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 11957
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #1 on: September 07, 2014, 03:31:00 PM »
archlinux gcc is too recent and has a bug .. you can use clang instead:
https://bitsharestalk.org/index.php?topic=8363.msg109457#msg109457
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline iHashFury

Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #2 on: September 07, 2014, 04:46:36 PM »
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: 11957
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #3 on: September 07, 2014, 05:03:01 PM »
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
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline bytemaster

Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #4 on: September 07, 2014, 05:43:28 PM »
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 iHashFury

Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #5 on: September 07, 2014, 05:47:28 PM »
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 xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 11957
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #6 on: September 07, 2014, 05:50:46 PM »
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"
:-)
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #7 on: September 07, 2014, 06:03:11 PM »
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 bytemaster

Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #8 on: September 07, 2014, 06:03:32 PM »
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 xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 11957
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #9 on: September 07, 2014, 06:16:22 PM »
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 <[email protected]>
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:
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline sva_h4cky0

Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #10 on: September 07, 2014, 07:48:55 PM »
glad to see fellow Archer here  :)
天の道を行き、総てを司る! Ten no michi o iki, subete o tsukasadoru!

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #11 on: September 08, 2014, 05:14:26 AM »
There's a few of us around. Modprobe is another one :D
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW

Offline capoeira

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #12 on: September 08, 2014, 09:32:23 PM »
I tried:
https://aur.archlinux.org/packages/bitshares-x/
https://aur.archlinux.org/packages/bitsharesx/
https://aur.archlinux.org/packages/bitsharesx-gui-git/

all fail.

output of the 3rd script:

Code: [Select]
2 errors generated.
libraries/fc/CMakeFiles/fc.dir/build.make:215: recipe for target 'libraries/fc/CMakeFiles/fc.dir/src/thread/task.cpp.o' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/thread/task.cpp.o] Error 1
6 errors generated.
libraries/fc/CMakeFiles/fc.dir/build.make:169: recipe for target 'libraries/fc/CMakeFiles/fc.dir/src/thread/thread_specific.cpp.o' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/thread/thread_specific.cpp.o] Error 1
CMakeFiles/Makefile2:196: recipe for target 'libraries/fc/CMakeFiles/fc.dir/all' failed
make[1]: *** [libraries/fc/CMakeFiles/fc.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

Offline sva_h4cky0

Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #13 on: September 08, 2014, 10:15:29 PM »
based on https://aur.archlinux.org/packages/bitshares-x/

PKGBUILD

Code: [Select]
# Maintainer: Qhor Vertoe <vertoe at qhor dot net>

# Contributor: Noel Maersk <veox at wemakethings dot net>
# Contributor: Mike Lenzen <lenzenmi at gmail dot com>

pkgname=bitshares-x
_gitname=bitsharesx
epoch=1
pkgver=0.4.12
pkgrel=1
pkgdesc="BitShares X is a peer-to-peer network-based digital asset exchange."
arch=('i686' 'x86_64')
url="http://bitshares-x.info/"
license=('MIT')
depends=('qt5-base>=5.3' 'boost-libs>=1.52' 'miniupnpc>=1.6')
makedepends=('git' 'boost' 'gcc' 'make' 'nodejs' 'clang')
provides=('bitshares-x')
source=('git://github.com/dacsunlimited/bitsharesx.git'
'BitSharesX.desktop')
md5sums=('SKIP' 'SKIP')

build() {
  export CC=clang
  export CXX=clang++
  cd "$srcdir/$_gitname"
  rm -rf CMakeFiles

  # Prepare dependencies
  git submodule init
  git submodule update

  # Checkout release
  git checkout $pkgver

  cd $srcdir/$_gitname/programs/web_wallet
  sudo npm install -g lineman
  npm install

  # Configure and compile the wallet
  cd "$srcdir/$_gitname"
  cmake -DINCLUDE_QT_WALLET=ON .
  make $MAKEFLAGS -j $(nproc) buildweb
  make $MAKEFLAGS -j $(nproc) BitSharesX
}

package() {
  # Install BitShares-X Qt-wallet
  install -Dm644 BitSharesX.desktop ${pkgdir}/usr/share/applications/BitSharesX.desktop
 
  install -Dm755 "$srcdir/$_gitname/programs/qt_wallet/bin/BitSharesX" "$pkgdir/usr/bin/BitSharesX"
  install -Dm644 "$srcdir/$_gitname/programs/qt_wallet/images/qtapp64.png" "$pkgdir/usr/share/pixmaps/bitsharesx256.png"

  # Install license
  install -D -m644 "$srcdir/$_gitname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}


BitSharesX.desktop
Code: [Select]
[Desktop Entry]
Name=BitSharesX
Comment=A decentralized bank and exchange
Exec=BitSharesX %u
Icon=/usr/share/pixmaps/bitsharesx256.png
Type=Application
Encoding=UTF-8
Categories=Office;
MimeType=x-scheme-handler/btsx;
« Last Edit: September 08, 2014, 10:17:20 PM by sva_h4cky0 »
天の道を行き、総てを司る! Ten no michi o iki, subete o tsukasadoru!

Offline capoeira

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: BitsharesX 0.4.12 - Build error on Archlinux
« Reply #14 on: September 08, 2014, 10:42:44 PM »
based on https://aur.archlinux.org/packages/bitshares-x/

PKGBUILD

Code: [Select]
# Maintainer: Qhor Vertoe <vertoe at qhor dot net>

# Contributor: Noel Maersk <veox at wemakethings dot net>
# Contributor: Mike Lenzen <lenzenmi at gmail dot com>

pkgname=bitshares-x
_gitname=bitsharesx
epoch=1
pkgver=0.4.12
pkgrel=1
pkgdesc="BitShares X is a peer-to-peer network-based digital asset exchange."
arch=('i686' 'x86_64')
url="http://bitshares-x.info/"
license=('MIT')
depends=('qt5-base>=5.3' 'boost-libs>=1.52' 'miniupnpc>=1.6')
makedepends=('git' 'boost' 'gcc' 'make' 'nodejs' 'clang')
provides=('bitshares-x')
source=('git://github.com/dacsunlimited/bitsharesx.git'
'BitSharesX.desktop')
md5sums=('SKIP' 'SKIP')

build() {
  export CC=clang
  export CXX=clang++
  cd "$srcdir/$_gitname"
  rm -rf CMakeFiles

  # Prepare dependencies
  git submodule init
  git submodule update

  # Checkout release
  git checkout $pkgver

  cd $srcdir/$_gitname/programs/web_wallet
  sudo npm install -g lineman
  npm install

  # Configure and compile the wallet
  cd "$srcdir/$_gitname"
  cmake -DINCLUDE_QT_WALLET=ON .
  make $MAKEFLAGS -j $(nproc) buildweb
  make $MAKEFLAGS -j $(nproc) BitSharesX
}

package() {
  # Install BitShares-X Qt-wallet
  install -Dm644 BitSharesX.desktop ${pkgdir}/usr/share/applications/BitSharesX.desktop
 
  install -Dm755 "$srcdir/$_gitname/programs/qt_wallet/bin/BitSharesX" "$pkgdir/usr/bin/BitSharesX"
  install -Dm644 "$srcdir/$_gitname/programs/qt_wallet/images/qtapp64.png" "$pkgdir/usr/share/pixmaps/bitsharesx256.png"

  # Install license
  install -D -m644 "$srcdir/$_gitname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}


BitSharesX.desktop
Code: [Select]
[Desktop Entry]
Name=BitSharesX
Comment=A decentralized bank and exchange
Exec=BitSharesX %u
Icon=/usr/share/pixmaps/bitsharesx256.png
Type=Application
Encoding=UTF-8
Categories=Office;
MimeType=x-scheme-handler/btsx;


don't know what you did but I tried this and still:

Code: [Select]
2 errors generated.
libraries/fc/CMakeFiles/fc.dir/build.make:215: recipe for target 'libraries/fc/CMakeFiles/fc.dir/src/thread/task.cpp.o' failed
make[3]: *** [libraries/fc/CMakeFiles/fc.dir/src/thread/task.cpp.o] Error 1
CMakeFiles/Makefile2:196: recipe for target 'libraries/fc/CMakeFiles/fc.dir/all' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.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


anyways. the .exe works in wine

 

Google+