Giter Site home page Giter Site logo

Comments (11)

erthink avatar erthink commented on September 26, 2024

@BohuTANG, could you test the devel-branch right now?

Also, please take a look to #3

from ioarena.

BohuTANG avatar BohuTANG commented on September 26, 2024

Now the issues are(devel branch):

github/ioarena/src/ia_histogram.c: In function 'ia_histogram_print':
github/ioarena/src/ia_histogram.c:377:3: error: format '%zu' expects argument of type 'size_t', but argument 3 has type 'uint64_t' [-Werror=format=]
   printf("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> %s(%zu)\n", name, h->acc.n);
   ^
github/ioarena/src/ia_histogram.c:377:3: error: format '%zu' expects argument of type 'size_t', but argument 3 has type 'uint64_t' [-Werror=format=]
github/ioarena/src/ia_histogram.c:403:4: error: format '%zu' expects argument of type 'size_t', but argument 6 has type 'uint64_t' [-Werror=format=]
    s += snprintf(s, line + sizeof(line) - s,
    ^
github/ioarena/src/ia_histogram.c:415:6: error: format '%zu' expects argument of type 'size_t', but argument 5 has type 'uint64_t' [-Werror=format=]
      );
      ^
github/ioarena/src/ia_histogram.c:415:6: error: format '%zu' expects argument of type 'size_t', but argument 5 has type 'uint64_t' [-Werror=format=]
github/ioarena/src/ia_histogram.c:420:3: error: format '%zu' expects argument of type 'size_t', but argument 3 has type 'uint64_t' [-Werror=format=]
   printf("total:%16s  %16zu%7.2f%%\n", line, n, n * 1e2 / h->acc.n);
   ^
github/ioarena/src/ia_histogram.c:420:3: error: format '%zu' expects argument of type 'size_t', but argument 3 has type 'uint64_t' [-Werror=format=]
github/ioarena/src/ia_histogram.c: In function 'ia_histogram_rusage':
github/ioarena/src/ia_histogram.c:459:3: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long unsigned int' [-Werror=format=]
   );
   ^
github/ioarena/src/ia_histogram.c:459:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long unsigned int' [-Werror=format=]
github/ioarena/src/ia_histogram.c:459:3: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'long long unsigned int' [-Werror=format=]
github/ioarena/src/ia_histogram.c:459:3: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long unsigned int' [-Werror=format=]
github/ioarena/src/ia_histogram.c:459:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long unsigned int' [-Werror=format=]
github/ioarena/src/ia_histogram.c:459:3: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'long long unsigned int' [-Werror=format=]
github/ioarena/src/ia_histogram.c:489:4: error: format '%zu' expects argument of type 'size_t', but argument 3 has type 'long long unsigned int' [-Werror=format=]
    );
    ^
github/ioarena/src/ia_histogram.c:489:4: error: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long long unsigned int' [-Werror=format=]
github/ioarena/src/ia_histogram.c:489:4: error: format '%zu' expects argument of type 'size_t', but argument 5 has type 'long long unsigned int' [-Werror=format=]
github/ioarena/src/ia_histogram.c:489:4: error: format '%zu' expects argument of type 'size_t', but argument 3 has type 'long long unsigned int' [-Werror=format=]
github/ioarena/src/ia_histogram.c:489:4: error: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long long unsigned int' [-Werror=format=]
github/ioarena/src/ia_histogram.c:489:4: error: format '%zu' expects argument of type 'size_t', but argument 5 has type 'long long unsigned int' [-Werror=format=]
cc1: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/ioarena.dir/ia_histogram.c.o] Error 1
make[1]: *** [src/CMakeFiles/ioarena.dir/all] Error 2
make: *** [all] Error 2

from ioarena.

erthink avatar erthink commented on September 26, 2024

Oh, yeah. I have never compiled it on a 32-bit platform.
No problem, will fix when I get a free time.

from ioarena.

BohuTANG avatar BohuTANG commented on September 26, 2024

osx&gcc version:

$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
$ uname -a
Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64

from ioarena.

erthink avatar erthink commented on September 26, 2024

@BohuTANG, I fixed the clang-warnings a few days ago.
Please check devel-branch again.

from ioarena.

BohuTANG avatar BohuTANG commented on September 26, 2024

Hello,
There still some issues  (devel):

ioarena/src/ia.c:60:2: error: implicit declaration of function 'pthread_yield' [-Werror=implicit-function-declaration]
  pthread_yield();
  ^
cc1: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/ioarena.dir/ia.c.o] Error 1
make[1]: *** [src/CMakeFiles/ioarena.dir/all] Error 2

from ioarena.

erthink avatar erthink commented on September 26, 2024

@BohuTANG, done one more ;)
Please try make -k to collect the all errors/warnings.

from ioarena.

BohuTANG avatar BohuTANG commented on September 26, 2024

@leo-yuriev

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
-target_link_libraries(${ia_binary} ${ia_libraries} m rt pthread)
+target_link_libraries(${ia_binary} ${ia_libraries} m)

with this fix it's ok to me on OSX now.

from ioarena.

erthink avatar erthink commented on September 26, 2024

@BohuTANG , I generalize your patch through the use of cmake.
Please verify and close this issue.

from ioarena.

BohuTANG avatar BohuTANG commented on September 26, 2024

@leo-yuriev
Great work, it works on OSX now.

from ioarena.

erthink avatar erthink commented on September 26, 2024

@BohuTANG , thank you.

Please, verify also the #3

from ioarena.

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.