Skip to content

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

Closed

Description

@sipa

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

Activity

  1. Diapolo commented on Jan 23, 2013

    @Diapolo

    Isn't that size limit also there on Windows?

  2. sipa commented on Jan 23, 2013

    @sipa
    MemberAuthor

    @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?

  3. Diapolo commented on Jan 23, 2013

    @Diapolo

    @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?

  4. sipa commented on Jan 23, 2013

    @sipa
    MemberAuthor

    Just concatenate some block files.

  5. Diapolo commented on Jan 23, 2013

    @Diapolo

    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).

  6. sipa commented on Jan 23, 2013

    @sipa
    MemberAuthor

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

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

  7. Diapolo commented on Jan 23, 2013

    @Diapolo

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

  8. sipa commented on Jan 23, 2013

    @sipa
    MemberAuthor

    cat = unix command to concatenate files :)

  9. Diapolo commented on Jan 23, 2013

    @Diapolo

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

  10. Diapolo commented on Jan 23, 2013

    @Diapolo

    @sipa I had no problems while bootstrapping!

  11. sipa commented on Jan 23, 2013

    @sipa
    MemberAuthor

    @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.

  12. sipa commented on Jan 23, 2013

    @sipa
    MemberAuthor

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

  13. gavinandresen commented on Jan 24, 2013

    @gavinandresen
    Contributor

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

  14. sipa commented on Apr 23, 2013

    @sipa
    MemberAuthor

    Fixed by #2236

  15. locked as resolved and limited conversation to collaborators on Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions