Coder Social home page Coder Social logo

Comments (6)

mbevand avatar mbevand commented on July 20, 2024 1

Get my very latest commit to fix all 32-bit compilation warnings:
6ee811d

from silentarmy.

mbevand avatar mbevand commented on July 20, 2024

I pushed a potential fix, can you try recompiling?
740f845

from silentarmy.

 avatar commented on July 20, 2024

Hi,
I had the same issue on a Debian Jessie with gcc 4.9.2 (if that matters)
It seems I cloned the project right before you pushed your last commit hehe.
After pulling the update, it now compiles fine and it is mining right now
Thank you !

from silentarmy.

mbevand avatar mbevand commented on July 20, 2024

Great! I am tentatively closing this issue for now. @Razican will reopen it if necessary.

from silentarmy.

Razican avatar Razican commented on July 20, 2024

It does compile, even though it's still showing this warning:

main.c: In function ‘print_sol’:
main.c:593:5: warning: left shift count >= width of type
     if (*nonce < (1UL << 32))
     ^
main.c:593:16: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
     if (*nonce < (1UL << 32))
                ^
main.c:594:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat=]
  fprintf(stderr, " 0x%lx:", *nonce);
  ^
main.c: In function ‘mining_mode’:
main.c:1068:13: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘uint64_t’ [-Wformat=]
             printf("status: %ld %ld\n", total, total_shares);
             ^
main.c:1068:13: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘uint64_t’ [-Wformat=]
main.c: In function ‘run_opencl’:
main.c:1111:6: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘uint64_t’ [-Wformat=]
      total, (t1 - t0) / 1e3, total / ((t1 - t0) / 1e6));

Thanks!

from silentarmy.

Razican avatar Razican commented on July 20, 2024

Cool! it now compiles perfectly!

from silentarmy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.