BitShares Forum

Main => Technical Support => Topic started by: vertoe on September 22, 2014, 09:35:19 pm

Title: Internal compiler error: in calc_dfs_tree, at dominance.c:401
Post by: vertoe on September 22, 2014, 09:35:19 pm
Hi recently I can not compile btsx wallet anymore.

This is my AUR package (install script) https://aur.archlinux.org/packages/bi/bitshares-x/PKGBUILD

This is the error I get:

Code: [Select]
[ 78%] Building CXX object libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o
[ 78%] Building CXX object libraries/blockchain/CMakeFiles/bts_blockchain.dir/genesis_json.cpp.o
/home/afri/aur/bitshares-x/src/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/afri/aur/bitshares-x/src/bitsharesx/libraries/blockchain/chain_database.cpp:1189: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
CMakeFiles/Makefile2:714: recipe for target 'libraries/blockchain/CMakeFiles/bts_blockchain.dir/all' failed
make[1]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

gcc version 4.9.1 20140903 (prerelease)

Any ideas?
Title: Re: Internal compiler error: in calc_dfs_tree, at dominance.c:401
Post by: bytemaster on September 22, 2014, 09:50:18 pm
Use clang...
Title: Re: Internal compiler error: in calc_dfs_tree, at dominance.c:401
Post by: toast on September 22, 2014, 11:51:02 pm
I thought it didn't work with clang? Try gcc 4.8

Sent from my SCH-I535 using Tapatalk

Title: Re: Internal compiler error: in calc_dfs_tree, at dominance.c:401
Post by: xeroc on September 23, 2014, 06:39:46 am
clang is working nicely over here

@OP: this is how to do it:
https://bitsharestalk.org/index.php?topic=8363.msg109457#msg109457
Title: Re: Internal compiler error: in calc_dfs_tree, at dominance.c:401
Post by: emf on September 23, 2014, 03:34:27 pm
see also: https://github.com/BitShares/bitshares_toolkit/issues/774
Title: Re: Internal compiler error: in calc_dfs_tree, at dominance.c:401
Post by: vertoe on September 23, 2014, 07:29:12 pm
Thanks everyone, will switch to clang.

Edit, just saw that it will be fixed in gcc 4.9.2.... I'm on 4.9.1 so just need to wait till it's available in ArchLinux.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62079
Title: Re: Internal compiler error: in calc_dfs_tree, at dominance.c:401
Post by: vertoe on September 23, 2014, 07:43:43 pm
Damn, what's missing now?

Code: [Select]
bitshares-x/src/bitsharesx/programs/qt_wallet/MainWindow.cpp:356:34: error: no member named 'get_mail_client' in 'bts::client::client'
  clientWrapper()->get_client()->get_mail_client()->new_mail_notifier.connect([=](int newMessages) {
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^

(http://i.imgur.com/SCIv4wG.png)
Title: Re: Internal compiler error: in calc_dfs_tree, at dominance.c:401
Post by: xeroc on September 23, 2014, 08:55:06 pm
is this a fresh compile? if not maybe a "make clean; make" can help
Title: Re: Internal compiler error: in calc_dfs_tree, at dominance.c:401
Post by: vertoe on September 25, 2014, 06:38:48 pm
is this a fresh compile? if not maybe a "make clean; make" can help

did not work with make clean either, it seemed to be a bug. with v0.4.17 its working now. thanks everyone.

(clang is awesome btw, why did I ever use gcc lol)