t0dd
Active member
A wild inspiration hit me to take a look at the codebase of dash a bit. I found it on github, I forked it, poked around the code a tad... And then I decided I would try to build the sucker. Oh, how silly of me.
Platform: Fedora 23 (Fedora is upstream for CentOS and RHEL).
Like most folks, I read the build docs...
https://github.com/dashpay/dash/blob/master/doc/build-unix.md
Somewhat helpful, but they are written in "debian" which only helps so far. I found the SRPM for bitcoin that a dude has been building for Fedora, and that has been uber-helpful. It allowed me to crack open that spec file and see what Fedora needs from a dependency perspective. For you Fedora folks out there, this page is also helpful: https://fedoraproject.org/wiki/How_to_create_an_RPM_package
Bitcoin builds fine for me. I just wanted to put that out there. Bitcoin with gui and "everything".
With dash, I first tried to compile the master branch. That failed in several ways. So I tried to build from 0.12.0.56 (latest stable). So... this is what I am slamming into...
1. the -fPIC wall I keep running into
"""
/usr/include/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
# error "You must build your code with position independent code if Qt was built with -reduce-relocations. "
"""
It been awhile since I have built from makefiles and with C++ for that matter. I have googled this to death, but I can't seem to resolve this. Help getting me to a -fPIE compliant build platform, or ... getting the compile to force -fPIC (less ideal)?
2. Can't find boost libraries. UPDATE -- this was a red herring
When I ./configure from the stable 0.12.0.56 branch, it finds the boost libraries just fine. But for the master branch? Nope... can't find the libraries. I am still trying to determine if I fouled something up in my attempt to solve other problems versus being a problem out of the box, but it baffles me.
....
I am writing out what I am doing to solve dependencies and edits and whatnot with the end objective of building Fedora RPMs for dash stable as well as maybe even dash master. With the end goal of making it easy for me to experiment and build... and then maybe make it easy for other folks to experiment and build. Plus... Fedora (and the Red Hat ecosystem) needs a dash RPM, yo!
Anyway. I would love your thoughts. And if someone would make themselves asynchronously available for stupid-compiler-questions, that would be stellar. I can be found in the slack community and here.
Thanks a bunch for any guidance. And, oh, hey! First post.
-dA
Platform: Fedora 23 (Fedora is upstream for CentOS and RHEL).
Like most folks, I read the build docs...
https://github.com/dashpay/dash/blob/master/doc/build-unix.md
Somewhat helpful, but they are written in "debian" which only helps so far. I found the SRPM for bitcoin that a dude has been building for Fedora, and that has been uber-helpful. It allowed me to crack open that spec file and see what Fedora needs from a dependency perspective. For you Fedora folks out there, this page is also helpful: https://fedoraproject.org/wiki/How_to_create_an_RPM_package
Bitcoin builds fine for me. I just wanted to put that out there. Bitcoin with gui and "everything".
With dash, I first tried to compile the master branch. That failed in several ways. So I tried to build from 0.12.0.56 (latest stable). So... this is what I am slamming into...
1. the -fPIC wall I keep running into
"""
/usr/include/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
# error "You must build your code with position independent code if Qt was built with -reduce-relocations. "
"""
It been awhile since I have built from makefiles and with C++ for that matter. I have googled this to death, but I can't seem to resolve this. Help getting me to a -fPIE compliant build platform, or ... getting the compile to force -fPIC (less ideal)?
2. Can't find boost libraries. UPDATE -- this was a red herring
When I ./configure from the stable 0.12.0.56 branch, it finds the boost libraries just fine. But for the master branch? Nope... can't find the libraries. I am still trying to determine if I fouled something up in my attempt to solve other problems versus being a problem out of the box, but it baffles me.
....
I am writing out what I am doing to solve dependencies and edits and whatnot with the end objective of building Fedora RPMs for dash stable as well as maybe even dash master. With the end goal of making it easy for me to experiment and build... and then maybe make it easy for other folks to experiment and build. Plus... Fedora (and the Red Hat ecosystem) needs a dash RPM, yo!
Anyway. I would love your thoughts. And if someone would make themselves asynchronously available for stupid-compiler-questions, that would be stellar. I can be found in the slack community and here.
Thanks a bunch for any guidance. And, oh, hey! First post.
-dA
Last edited by a moderator: