Title: bulding core using QT5 gui on debian stretch Post by: tspacepilot on January 24, 2017, 07:28:12 PM I'm getting an error from the linker when building bitcoin from the repo on debian testing.
When I get to building qt: Code: CXXLD bench/bench_bitcoin My config: Code: Options used to compile and link: libxcb-dri3.so.0 exists and is where you'd expect. I'm not sure why ld is failing. Let me know if you guys have tips! Oh yah, and presumably the issue is not in that file: Code: $ strings /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 |grep xcb_send_request_with_fds Cheers! Title: Re: bulding on debian Post by: cr1776 on January 24, 2017, 07:47:34 PM Do you get the same error when building from the GitHub repo? I didn't see in the quotations above, but which version of bitcoin is in the debian testing repo?
Title: Re: bulding on debian Post by: tspacepilot on January 24, 2017, 07:58:42 PM Do you get the same error when building from the GitHub repo? I didn't see in the quotations above, but which version of bitcoin is in the debian testing repo? Sorry, 'the repo' was ambiguous there. I should have said 'building from the github repo on debian testing'. Code: $ git remote show origin Title: Re: bulding on debian Post by: jackg on January 24, 2017, 10:41:15 PM Do you get the same error when building from the GitHub repo? I didn't see in the quotations above, but which version of bitcoin is in the debian testing repo? Sorry, 'the repo' was ambiguous there. I should have said 'building from the github repo on debian testing'. Code: $ git remote show origin Try the official version from the official site maybe. Or try redownloading fromgithub to ensure there was no data loss of data while it was transmitted on the pull request. Have you had core installed on there before? If you have then there should be almost all of the dependency libraries already installed on that machine. If not, are all of the dependencies definitely installed? The list of dependencies is here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md Title: Re: bulding on debian Post by: tspacepilot on January 24, 2017, 11:35:55 PM Try the official version from the official site maybe. Or try redownloading fromgithub to ensure there was no data loss of data while it was transmitted on the pull request. Is that github repo not 'official'?Quote Have you had core installed on there before? If you have then there should be almost all of the dependency libraries already installed on that machine. If not, are all of the dependencies definitely installed? The list of dependencies is here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md Indeed, I have. I built core on this machine almost two years ago. Since it was an old version, I did 'git pull' and tried to rebuild, and things failed. I have updated the system and double checked the dependencies. Of course last time I built it I was on a previous debian. And I was building against qt4 instead of qt5, so, yah, things have changed in the mean time. In any case, we know which part of the build process is having trouble, I guess I just need to drill down into that Makefile and figure out exactly which line went wrong and try to find a log from ld or something. I was hoping that in posting here I'd either run across someone who happened to have encountered the same error or else run across someone who's a real whiz with the C build process. Anyway, let me know if you see anything specific I should be checking. Title: Re: bulding on debian Post by: cr1776 on January 25, 2017, 12:53:36 AM Perhaps take a look here:
https://github.com/toggl/toggldesktop/issues/1100 https://github.com/MultiMC/MultiMC5/issues/1379 These seem to be a similar issue. Perhaps some of their suggestions will help you troubleshoot it here. Title: Re: bulding on debian Post by: jackg on January 26, 2017, 04:50:01 PM Try the official version from the official site maybe. Or try redownloading fromgithub to ensure there was no data loss of data while it was transmitted on the pull request. Is that github repo not 'official'?Quote Have you had core installed on there before? If you have then there should be almost all of the dependency libraries already installed on that machine. If not, are all of the dependencies definitely installed? The list of dependencies is here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md Indeed, I have. I built core on this machine almost two years ago. Since it was an old version, I did 'git pull' and tried to rebuild, and things failed. I have updated the system and double checked the dependencies. Of course last time I built it I was on a previous debian. And I was building against qt4 instead of qt5, so, yah, things have changed in the mean time. In any case, we know which part of the build process is having trouble, I guess I just need to drill down into that Makefile and figure out exactly which line went wrong and try to find a log from ld or something. I was hoping that in posting here I'd either run across someone who happened to have encountered the same error or else run across someone who's a real whiz with the C build process. Anyway, let me know if you see anything specific I should be checking. You are correct that the GitHub version is the official version. However it is hosted by an external company and the "official" version has the pre-built programs for you to run. I'm suprised that someone like achow or shorena didn't come here anyway. My advice is in the hope that it can be fixed just from generic problems that may occur that some may not check for. (if you download from the pre-built version then you avoid having to use the makefile commands don't you?) Title: Re: bulding on debian Post by: tspacepilot on July 18, 2017, 06:01:58 PM Sorry for the necro, but this topic still isn't resolved for me. debian Strech is now 'stable', and I've of course done git pull several times since january.
FWIW, this issue is restricted to building bitcoin with QT5. I haven't tried it with QT4. If I do --no-gui in configure, I can build headless bitcoin just fine. I was hoping to get to the bottom of this, however. Code: /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0: undefined reference to `xcb_send_request_with_fds' My libxcb-dri3 is updated to latest in Stretch Code: $ sudo apt-get install libxcb-dri3-dev Sometime Debian isn't the fastest at upgrading software. Is 1.12-1 a late enough version of libxcb-dri3? Is this a red herring? When I run "strings" on that so file, I see xcb_send_request_with_fds: Code: $ strings /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 | grep send So why is ld having a problem here? I'm a little lost. EDIT: I just removed the qt5 packages and rebuilt with qt4 and no issues. This is definitely not critical, but for my education I'd love to find out more about what's going on here. |