BitShares Forum
Main => Technical Support => Topic started by: iHashFury 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.
[ 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
-
archlinux gcc is too recent and has a bug .. you can use clang instead:
https://bitsharestalk.org/index.php?topic=8363.msg109457#msg109457
-
Thank you for the info.
Tried clang-3.4.2-1 but, now getting this
[ 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:
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
-
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
-
Can someone create a BUILD_ARCHLINUX.md file and submit a pull request to the toolkit?
-
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.
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
-
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"
:-)
-
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.
-
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
-
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:
# 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:
-
glad to see fellow Archer here :)
-
There's a few of us around. Modprobe is another one :D
-
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:
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
-
based on https://aur.archlinux.org/packages/bitshares-x/
PKGBUILD
# 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
[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;
-
based on https://aur.archlinux.org/packages/bitshares-x/
PKGBUILD
# 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
[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:
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
-
here is a paste of my failed build for https://aur.archlinux.org/packages/bitsharesx/
http://pastebin.com/EJ3sdkcV
-
Just a bit of help. Try the plain bitsharesx package: https://aur.archlinux.org/packages/bitsharesx/
I managed to make that one compile and can maybe help you with any errors. Post the full error log here.
-
/usr/include/boost/atomic/atomic.hpp:31:16: error: target of using declaration conflicts with declaration already in scope
using atomics::atomic;
your boost library is up-to-date?
-
Just a bit of help. Try the plain bitsharesx package: https://aur.archlinux.org/packages/bitsharesx/
I managed to make that one compile and can maybe help you with any errors. Post the full error log here.
well, the output is exactly from that one
-
/usr/include/boost/atomic/atomic.hpp:31:16: error: target of using declaration conflicts with declaration already in scope
using atomics::atomic;
your boost library is up-to-date?
yes it is, maintainer asked the same question (see coments there)
-
Are you compiling with multiple threads? I mean are you using `make -j $(nprocs)`? I had issues with that. If you're not already, try compiling without the -j flag. Also, is your Arch completely up to date?
-
Are you compiling with multiple threads?
yes, tried with now with -j1....didn't solve
Also, is your Arch completely up to date?
yes
I'm giving up. you guys think it is dangerous to use the binary of the mantainer of the PCKGBUILD? https://nathanhourt.com/bitsharesx-0.4.12-1-x86_64.pkg.tar.xz
-
Nathan is a core developer .. id say its safe
-
From the comments section: https://aur.archlinux.org/packages/bitsharesx/?comments=all
Comment by DigitalPioneer
2014-09-09 13:13
This just in, the BitShares core devs have added support for Boost 1.56, so DacSun should be pulling that in for the next release. The build should work again (hopefully) after that.
Comment by DigitalPioneer
2014-09-09 13:09
Nope, it's not just you. Looks like the project is not compatible with Boost 1.56. I hadn't updated yet on my build system. Just did, and now I'm getting the same error.
-
turns out that Arch's boost is "too new". read the last two coments: https://aur.archlinux.org/packages/bitsharesx/
-
turns out that Arch's boost is "too new". read the last two coments: https://aur.archlinux.org/packages/bitsharesx/
0.4.13 has fixes for that :)
-
turns out that Arch's boost is "too new". read the last two coments: https://aur.archlinux.org/packages/bitsharesx/
0.4.13 has fixes for that :)
nice :D
-
Is Open Orders and Order history working on archlinux "client_version": "v0.4.16" gui?
-
Is Open Orders and Order history working on archlinux "client_version": "v0.4.16" gui?
yes .. it seems pretty much so ..
oh wait .. I am already on 0.4.17-rc .. sorry can't tell for .16
-
Will try 0.4.17-rc
-
Is Open Orders and Order history working on archlinux "client_version": "v0.4.16" gui?
im on 0.4.16, i have open orders for days and order history seems fine
-
I have build 0.4.17-rc and am now re-syncing for good measure.
Should be good.
-
Any ideas?
wallet_market_order_list USD BTSX in the console works but gui Open Orders has nothing.
I also get this error in the terminal when running the gui:
QObject::startTimer: Timers can only be used with threads started with QThread
QObject::startTimer: Timers can only be used with threads started with QThread
Re-sync and resacn where ok.
-
I'd call this a bug in the qt_wallet .. would you please report it at github?
http://wiki.bitshares.org/index.php/BitShares_X_Solutions#Reporting_bugs_to_the_developers
-
I'd call this a bug in the qt_wallet .. would you please report it at github?
http://wiki.bitshares.org/index.php/BitShares_X_Solutions#Reporting_bugs_to_the_developers
Sorry
https://github.com/dacsunlimited/bitsharesx (https://github.com/dacsunlimited/bitsharesx) is members only
Is here OK https://github.com/BitShares/bitshares_toolkit/issues (https://github.com/BitShares/bitshares_toolkit/issues) for BitsharesX bugs/issues?
-
better go here pls: https://github.com/BitShares/qt_wallet/issues
-
GUI update has resolved open orders and order history issue.
"client_version": "v0.4.17"
Advanced Short mode 8)
-
Hello
I am getting the following build error.
npm ERR! Linux 3.17.2-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "lineman" "--prefix=/home/jason/bin/.global_npm" "-g"
npm ERR! node v0.10.33
npm ERR! npm v2.1.8
npm ERR! code ELIFECYCLE
npm ERR! js2coffee@0.2.7 preinstall: `npm run-script ./cyclic.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the js2coffee@0.2.7 preinstall script 'npm run-script ./cyclic.js'.
npm ERR! This is most likely a problem with the js2coffee package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run-script ./cyclic.js
npm ERR! You can get their info via:
npm ERR! npm owner ls js2coffee
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/jason/tmp/git/bitshares/programs/web_wallet/npm-debug.log
With my usual build script
###### archlinux ######
#pacman -S clang
#git clone https://github.com/dacsunlimited/bitsharesx.git
git clone https://github.com/BitShares/bitshares.git
cd bitshares
git pull
git submodule init
git submodule update
cd programs/web_wallet
npm install lineman --prefix=/home/jason/bin/.global_npm -g
npm install
cd -
rm -rf CMakeCache.txt CMakeFiles/
export CC=clang;export CXX=clang++
cmake -DINCLUDE_QT_WALLET=ON .
make BitShares
strip ~/tmp/git/bitshares/programs/qt_wallet/bin/BitShares
###### archlinux ######
-
I am having the same issues :(
not sure if they are bitshares related or lineman related :(
-
I am having the same issues :(
not sure if they are bitshares related or lineman related :(
Its on github.
https://github.com/BitShares/qt_wallet/issues/71
-
Downgrading nodejs works
pacman -S nodejs
pacman -U /var/cache/pacman/pkg/nodejs-0.10.32-...