Comments (11)
@BohuTANG, could you test the devel-branch right now?
Also, please take a look to #3
from ioarena.
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.
Oh, yeah. I have never compiled it on a 32-bit platform.
No problem, will fix when I get a free time.
from ioarena.
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.
@BohuTANG, I fixed the clang-warnings a few days ago.
Please check devel-branch again.
from ioarena.
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.
@BohuTANG, done one more ;)
Please try make -k
to collect the all errors/warnings.
from ioarena.
@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.
@BohuTANG , I generalize your patch through the use of cmake.
Please verify and close this issue.
from ioarena.
@leo-yuriev
Great work, it works on OSX now.
from ioarena.
@BohuTANG , thank you.
Please, verify also the #3
from ioarena.
Related Issues (20)
- pthread barriers are not implemented in OS X HOT 6
- driver for BerkeleyDB
- Makefiles are Linux-specific, fail on other platforms HOT 1
- Only dummy that works, It looks like there is some tweeking needs to be done HOT 1
- Only dummy that works, It looks like there is some tweeking needs to be done HOT 1
- Memory consumption is very high for RocksDB HOT 8
- Common api for integration into FastoNoSQL HOT 1
- formalize codestyle info .clang-format HOT 1
- nessDB driver is invalid HOT 1
- .travis.yml modern
- Unknown database driver HOT 3
- sqlite3: `set` test with `lazy` durability produces an error HOT 2
- Propose to remove ejdb driver HOT 1
- Crash when parsing malformed forestdb file
- have error when make unqlite 'EVP_CIPHER_CTX'
- statistic-merge and histogram modules should be revised and redesigned
- rework of random pool should be completed
- distribution test tasks to threads is unclear and should be refined
- nessdb driver should be updated (or removed) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ioarena.