This updates gitian descriptors and adds a few workarounds. Note: THIS DOES NOT WORK, the resulting bitcoin-qt.exe is broken, I'm just pull-requesting this to notify people and let others have a look at the result and attempt to fix the issue.
Build updates #587
pull TheBlueMatt wants to merge 3 commits into bitcoin:master from TheBlueMatt:build-updates changing 3 files +50 −20-
TheBlueMatt commented at 7:46 PM on October 17, 2011: member
-
TheBlueMatt commented at 7:53 PM on October 17, 2011: member
Some tips on using gitian to duplicate the broken results: When gitian fails/finishes, you can log into the vm and mess around by doing export PATH=$PATH:libexec; on-target You can see the build-script gitian is executing by looking at var/build-script after the build has started (its pretty much just exporting some variables and running the script in the descriptor). If you want to build from this branch, use -c bitcoin=build-updates instead of master (note that the commit titled "remove this commit before merge" makes the gitian descriptors point to my repo instead of bitcoin/bitcoin)
-
TheBlueMatt commented at 8:31 PM on October 17, 2011: member
Oh, also this hasnt been tested for determinism yet, so there that...
-
laanwj commented at 6:43 AM on October 22, 2011: member
I'll take a look at this
-
laanwj commented at 10:04 AM on October 23, 2011: member
OK I'm stuck. How to get started?
- What kind of AWS image to I need to create?
- release-process.txt has some information, but it assumes there already is a virtual image with gitian and bitcoin source installed. Do I need to install those myself starting with the Ruby gems etc?
-
TheBlueMatt commented at 6:00 PM on October 23, 2011: member
You can't do this with AWS, it has to be a machine which has VT-x support. There are no gems anywhere here, just git clone gitian-builder and go.
-
Add gitian descriptor for qt cross compile via MinGW. 6323d005a9
-
Update Win32 gitian descriptor for bitcoin-qt. 0081f758e5
-
remove this commit before merge. 6139fc6549
-
luke-jr commented at 11:54 PM on October 28, 2011: member
Note that the build issues are basically Ubuntu issues. Gentoo's crossdev at least has no problems building working EXEs.
-
laanwj commented at 9:26 AM on October 29, 2011: member
I think I solved this issue!
The solution appears to be to remove
-fstack-protectorfor the Windows build. Both for the linker and cflags.I haven't tested on a Windows machine but the resulting bitcoin-qt.exe works in Wine.
luke-jr: yes, but we need to understand this issue, I feel it would be a mistake to just abandon it and switch Linux distributions, and hope we'll be ok :)
-
luke-jr commented at 12:54 PM on October 29, 2011: member
IIRC it wouldn't even build for me with that flag. ;)
-
laanwj commented at 1:31 PM on October 29, 2011: member
https://github.com/laanwj/bitcoin/tree/wingitianfix
Now testing whether the build is deterministic and such...
-
laanwj commented at 5:27 PM on October 29, 2011: member
The last commit managed to make bitcoin-qt.exe build deterministic. I built it two times and both times the sha256 is the same.
So the build is now complete. The resulting executable does hang a long time at "Done loading" for some reason I can't explain yet.
-
laanwj commented at 5:46 PM on October 29, 2011: member
Hm.. the "Done loading" problem seems to be something local (to do with seeding?), it hangs on connecting to my routers DNS port:
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 23 connect(23, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.x.x")}, 16I think it is unrelated. Please help testing the gitian script.
Edit: confirmed: It also happens on Linux now for me, so it has nothing to do with the build.
-
TheBlueMatt commented at 9:51 PM on October 29, 2011: member
Superceded by #598
- TheBlueMatt closed this on Oct 29, 2011
- dgenr8 referenced this in commit 8a0cb38940 on May 24, 2017
- sipa referenced this in commit cc05fa919a on Mar 30, 2019
- sipa referenced this in commit 1e32413e52 on Mar 30, 2019
- sipa referenced this in commit 54245985fb on Mar 31, 2019
- sipa referenced this in commit 3fe71bbd95 on Apr 2, 2019
- LongShao007 referenced this in commit 3d9a3d2063 on Jul 15, 2019
- LongShao007 referenced this in commit 8af66f3427 on Jul 15, 2019
- LongShao007 referenced this in commit 807f206f73 on Jul 15, 2019
- fjahr referenced this in commit e96901a4b9 on Jul 24, 2019
- kallewoof referenced this in commit 346c54401a on Oct 4, 2019
- kallewoof referenced this in commit c866f52e2a on Oct 4, 2019
- Losangelosgenetics referenced this in commit be0c9a43bd on Mar 12, 2020
- backpacker69 referenced this in commit ef89673ace on Mar 28, 2021
- DrahtBot locked this on Sep 8, 2021