Build with -D_FILE_OFFSET_BITS=64 on 32-bit Linux #2203

issue sipa opened this issue on January 22, 2013
  1. sipa commented at 11:33 PM on January 22, 2013: member

    As otherwise, a bootstrap.dat over 2 GiB in size will fail to fopen(), let alone being able to seek in it.

  2. Diapolo commented at 7:24 AM on January 23, 2013: none

    Isn't that size limit also there on Windows?

  3. sipa commented at 9:39 AM on January 23, 2013: member

    @Diapolo pretty sure we'd have gotten tons of complaints from windows users if that was the case. Are you able to import from a >2GiB bootstrap.dat?

  4. Diapolo commented at 10:25 AM on January 23, 2013: none

    @sipa I never played around neither with that auto-import, nor with the normal -loadblock at all. Can you hand me the link to the bootstrap.dat download?

  5. sipa commented at 10:33 AM on January 23, 2013: member

    Just concatenate some block files.

  6. Diapolo commented at 10:44 AM on January 23, 2013: none

    Any way to do this in Windows, I dunno how ;). And you are talking about pre 0.8 block-files I guess (which I still have as I use the latest 0.7.2 for my main wallet).

  7. sipa commented at 10:45 AM on January 23, 2013: member

    Block file format didn't change (and the gaps caused by pre-allocation don't matter).

    Install cygwin, run "cat blk*.dat >bootstrap.dat" ?

  8. Diapolo commented at 10:53 AM on January 23, 2013: none

    You are right, I forgot, that there was no format change ^^. Beat me, but cat is nothing I've ever heard of :-P.

  9. sipa commented at 11:26 AM on January 23, 2013: member

    cat = unix command to concatenate files :)

  10. Diapolo commented at 12:38 PM on January 23, 2013: none

    Importing now... resulting file size after cat is >6GB.

  11. Diapolo commented at 1:22 PM on January 23, 2013: none

    @sipa I had no problems while bootstrapping!

  12. sipa commented at 2:11 PM on January 23, 2013: member

    @Diapolo thanks, good to know. So the problem is really only on Linux 32-bit. Maybe OSX 32-bit as well, but I have no way to test that.

  13. sipa commented at 7:03 PM on January 23, 2013: member

    @gavinandresen DId you ever try importing a >2GiB file on 32-bit OSX builds?

  14. gavinandresen commented at 1:34 AM on January 24, 2013: contributor

    Importing >2GB file works fine on 32-bit OSX, at least with git HEAD.

  15. sipa commented at 11:17 PM on April 23, 2013: member

    Fixed by #2236

  16. sipa closed this on Apr 23, 2013

  17. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-19 12:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me