Author

Topic: Cannot build AUR armory-goatpig-git (Read 775 times)

legendary
Activity: 3640
Merit: 1345
Armory Developer
July 07, 2017, 06:45:43 AM
#17
It's been there for a while now.
newbie
Activity: 6
Merit: 0
July 06, 2017, 11:47:54 PM
#16
When will the fix to TransactionBatch.h be committed?

I am now getting a new build issue:

make log: http://sprunge.us/KZWA and configure: http://sprunge.us/HIXN
newbie
Activity: 14
Merit: 0
June 16, 2017, 12:02:54 AM
#15
Thank you, firstman and goatpig, for your help on this one! It is much appreciated!
legendary
Activity: 3640
Merit: 1345
Armory Developer
June 15, 2017, 07:35:29 PM
#14
Armory uses qt4, therefor qt5's lrelease may or may not get Armory to choke on the language packs. Ideally, it should run qt4's lrelease.

I'll add the missing include (no idea why this is breaking compilation, as it has not been an issue so far). I'll also add a check for lrelease in the executable path.
newbie
Activity: 6
Merit: 0
June 15, 2017, 07:27:55 PM
#13
Uncle, a fix will be pushed that adds #include to cppForSwig/TransactionBatch.h, which fixes the build issue. Python 2 is also required I discovered, but your AUR package already passes PYTHON_VERSION=2.7, so that's ok. However, you must add qt5-libtools as a dependency, as it fails to build without it (otherwise you get a lrelease: command not found).
legendary
Activity: 3640
Merit: 1345
Armory Developer
June 14, 2017, 11:35:03 PM
#12
It's gonna be nearly impossible to debug this if you don't have any C++ in you sorry.
newbie
Activity: 14
Merit: 0
June 14, 2017, 09:35:47 PM
#11
This is basically saying it can't build std::function

Create a .cpp and test the lib against that.

So forgive my C++ ignorance, I have created the .cpp file, now how would I go about using that to test the lib against?
legendary
Activity: 3640
Merit: 1345
Armory Developer
June 14, 2017, 08:51:55 PM
#10
This is basically saying it can't build std::function

Create a .cpp and test the lib against that. File would look something like this:

Code:
...
#include

int main(void)
{
   std::function aFunc = [](void)->int
   {
      return 1;
   };

   aFunc();
   return 0;
}
newbie
Activity: 14
Merit: 0
June 14, 2017, 06:11:02 PM
#9
The make output was too large for pastebin, so I put it on my github page:

https://raw.githubusercontent.com/UncleHunto/logs/master/armorymakelog.txt
legendary
Activity: 3640
Merit: 1345
Armory Developer
June 14, 2017, 05:49:51 PM
#8
These are warnings not errors. Post the entire make output on pastebin for me to look at.
newbie
Activity: 14
Merit: 0
June 14, 2017, 05:15:03 PM
#7
Another thing I thought of, which might be causing the problem, is that Arch uses python 3 by default, whereas Armory and most other programs and OS's use python 2 by default, but the setup of the AUR package was working for 0.96 up until now.
newbie
Activity: 14
Merit: 0
June 14, 2017, 05:03:44 PM
#6
No worries, I'd like to fix it, if anyone can figure out what the problem is  Smiley here are some error messages I get (when building with gcc 7.1.1) which might be helpful:

make[3]: *** [Makefile:863: libCppBlockUtils_la-TransactionBatch.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
TxClasses.h:481: Warning 472: Overloaded method UTXO::UTXO() with no explicit typecheck typemap for arg 4 of type 'BinaryData'
TxClasses.h:481: Warning 472: Overloaded method UTXO::UTXO() with no explicit typecheck typemap for arg 5 of type 'BinaryData'
TxClasses.h:547: Warning 472: Overloaded method AddressBookEntry::AddressBookEntry(BinaryData) with no explicit typecheck typemap for arg 0 of type 'BinaryData'
WalletManager.h:497: Warning 473: Returning a pointer or reference in a director method is not recommended.
WalletManager.h:498: Warning 473: Returning a pointer or reference in a director method is not recommended.
make[3]: Leaving directory '/home/uncle/AURpackages/AUR/armory-goatpig-git/src/armory/cppForSwig'
make[2]: *** [Makefile:1445: all-recursive] Error 1
make[2]: Leaving directory '/home/uncle/AURpackages/AUR/armory-goatpig-git/src/armory/cppForSwig'
make[1]: *** [Makefile:429: all-recursive] Error 1
make[1]: Leaving directory '/home/uncle/AURpackages/AUR/armory-goatpig-git/src/armory'
make: *** [Makefile:361: all] Error 2
newbie
Activity: 6
Merit: 0
June 14, 2017, 04:50:43 PM
#5
I attempted to manually build it (after initing the submodules) and it didn't build with the same issue. Something with the arch environment, but I don't have the technical know-how to figure it out. Thanks Uncle for taking a look.
newbie
Activity: 14
Merit: 0
June 14, 2017, 04:10:11 PM
#4
I haven't been able to figure this one out. The init of the git submodules is done by the aur package. It might be because Arch distros use a newer version of gcc, I'm running Manjaro, which uses gcc 7.1.1. I have tried building it with gcc 4.9 and 4.7 but could not get that to work either, and the moment I am at a loss in regards to how to fix it.

EDIT: Also tried gcc 5.4, which i couldn't get to work either.
newbie
Activity: 14
Merit: 0
June 14, 2017, 01:34:54 PM
#3
Greetings, maintainer of the "armory-goatpig-git" package here, it is no longer building for me either, I will look into it and see if I can figure out what the problem is. Any suggestions or advice is welcome.  Smiley
legendary
Activity: 3640
Merit: 1345
Armory Developer
June 13, 2017, 09:00:25 PM
#2
Did you init the git submodules?
newbie
Activity: 6
Merit: 0
June 13, 2017, 08:44:37 PM
#1
In building the armory-goatpig-git package (via pacaur and makepkg), it fails to build:

Code:
libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -O2 -std=c++11 -Ilmdb -Icryptopp -I/usr/include/python2.7 -D__STDC_LIMIT_MACROS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -O2 -MT libCppBlockUtils_la-Wallets.lo -MD -MP -MF .deps/libCppBlockUtils_la-Wallets.Tpo -c Wallets.cpp -o libCppBlockUtils_la-Wallets.o >/dev/null 2>&1             
mv -f .deps/libCppBlockUtils_la-EncryptionUtils.Tpo .deps/libCppBlockUtils_la-EncryptionUtils.Plo               
mv -f .deps/libCppBlockUtils_la-SwigClient.Tpo .deps/libCppBlockUtils_la-SwigClient.Plo                         
mv -f .deps/ArmoryDB-BDM_Server.Tpo .deps/ArmoryDB-BDM_Server.Po                                                 
mv -f .deps/ArmoryDB-BDM_supportClasses.Tpo .deps/ArmoryDB-BDM_supportClasses.Po                                 
mv -f .deps/libCppBlockUtils_la-WalletManager.Tpo .deps/libCppBlockUtils_la-WalletManager.Plo                   
mv -f .deps/libCppBlockUtils_la-Script.Tpo .deps/libCppBlockUtils_la-Script.Plo                                 
mv -f .deps/libCppBlockUtils_la-Wallets.Tpo .deps/libCppBlockUtils_la-Wallets.Plo                               
make[3]: Leaving directory '/home/firstman/Downloads/armory-goatpig-git/src/armory/cppForSwig'                   
make[2]: *** [Makefile:1445: all-recursive] Error 1     
make[2]: Leaving directory '/home/firstman/Downloads/armory-goatpig-git/src/armory/cppForSwig'                   
make[1]: *** [Makefile:429: all-recursive] Error 1     
make[1]: Leaving directory '/home/firstman/Downloads/armory-goatpig-git/src/armory'                               
make: *** [Makefile:361: all] Error 2                   
==> ERROR: A failure occurred in build().               
    Aborting... 

happens with clang and gcc. arch system updated.
Jump to: