Coder Social home page Coder Social logo

Comments (2)

a3an-de avatar a3an-de commented on July 20, 2024

I found more data showing error mesaages:

-- Build files have been written to: /home/a4/cppyy-bbhash/build
(cppyy-example) a4@a3-Virtual-Machine:/cppyy-bbhash/build$ make
Scanning dependencies of target bbhash
[ 16%] Linking CXX static library libbbhash.a
[ 16%] Built target bbhash
[ 33%] Generating cppyy_bbhash/cppyy_bbhash.map
ERROR: While parsing: /../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/math.h:65[12] target of using declaration conflicts with declaration already in scope
ERROR: While parsing: /../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/math.h:66[12] target of using declaration conflicts with declaration already in scope
WARNING: While parsing: /home/a4/cppyy-bbhash/bbhash/BooPHF.h:676[40] format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long')
WARNING: While parsing: /home/a4/cppyy-bbhash/bbhash/BooPHF.h:680[24] format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long')
WARNING: While parsing: /home/a4/cppyy-bbhash/bbhash/BooPHF.h:689[30] format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long')
WARNING: While parsing: /home/a4/cppyy-bbhash/bbhash/BooPHF.h:689[33] format specifies type 'long long' but the argument has type '__gnu_cxx::__alloc_traits<std::allocator, unsigned long>::value_type' (aka 'unsigned long')
WARNING: While parsing: /home/a4/cppyy-bbhash/bbhash/BooPHF.h:1027[8] format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long')
[ 50%] Generating cppyy_bbhash.cpp, cppyy_bbhash/libcppyy_bbhashCppyy.rootmap, cppyy_bbhash/libcppyy_bbhashCppyy_rdict.pcm
In file included from input_line_7:3:
In file included from /home/a4/cppyy-bbhash/interface.hh:1:
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:676:40: warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
printf("bit array of size %lli: \n",_size);
~~~~ ^~~~~
%lu
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:680:24: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
printf(" (%llu) ",ii);
~~~~ ^

%lu
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:689:30: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
printf("%llu : %lli, ",ii,_ranks[ii]);
~~~~ ^~
%lu
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:689:33: warning: format specifies type 'long long' but the argument has type '__gnu_cxx::__alloc_traits<std::allocator, unsigned long>::value_type'
(aka 'unsigned long') [-Wformat]
printf("%llu : %lli, ",ii,_ranks[ii]);
~~~~ ^~~~~~~~~~
%lu
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:1027:8: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
totalsizeBitset, 100*(float)totalsizeBitset/totalsize);
^~~~~~~~~~~~~~~
/home/a4/cppyy-bbhash/interface.hh:16:25: note: in instantiation of member function 'boomphf::mphf<unsigned short, boomphf::SingleHashFunctor >::totalBitSize' requested here
template class boomphf::mphf<unsigned short, boomphf::SingleHashFunctor>;
^
In file included from input_line_7:3:
In file included from /home/a4/cppyy-bbhash/interface.hh:1:
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:1027:8: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
totalsizeBitset, 100*(float)totalsizeBitset/totalsize);
^~~~~~~~~~~~~~~
/home/a4/cppyy-bbhash/interface.hh:17:25: note: in instantiation of member function 'boomphf::mphf<unsigned int, boomphf::SingleHashFunctor >::totalBitSize' requested here
template class boomphf::mphf<unsigned int, boomphf::SingleHashFunctor>;
^
In file included from input_line_7:3:
In file included from /home/a4/cppyy-bbhash/interface.hh:1:
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:1027:8: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
totalsizeBitset, 100*(float)totalsizeBitset/totalsize);
^~~~~~~~~~~~~~~
/home/a4/cppyy-bbhash/interface.hh:18:25: note: in instantiation of member function 'boomphf::mphf<unsigned long, boomphf::SingleHashFunctor >::totalBitSize' requested here
template class boomphf::mphf<uint64_t, boomphf::SingleHashFunctor<uint64_t>>;
^
In file included from input_line_7:3:
In file included from /home/a4/cppyy-bbhash/interface.hh:1:
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:1027:8: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
totalsizeBitset, 100*(float)totalsizeBitset/totalsize);
^~~~~~~~~~~~~~~
/home/a4/cppyy-bbhash/interface.hh:19:25: note: in instantiation of member function 'boomphf::mphf<unsigned long long, boomphf::SingleHashFunctor >::totalBitSize' requested here
template class boomphf::mphf<unsigned long long, boomphf::SingleHashFunctor>;
^
In file included from input_line_7:3:
In file included from /home/a4/cppyy-bbhash/interface.hh:1:
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:1027:8: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
totalsizeBitset, 100*(float)totalsizeBitset/totalsize);
^~~~~~~~~~~~~~~
/home/a4/cppyy-bbhash/interface.hh:21:25: note: in instantiation of member function 'boomphf::mphf<short, boomphf::SingleHashFunctor >::totalBitSize' requested here
template class boomphf::mphf<short, boomphf::SingleHashFunctor>;
^
In file included from input_line_7:3:
In file included from /home/a4/cppyy-bbhash/interface.hh:1:
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:1027:8: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
totalsizeBitset, 100*(float)totalsizeBitset/totalsize);
^~~~~~~~~~~~~~~
/home/a4/cppyy-bbhash/interface.hh:22:25: note: in instantiation of member function 'boomphf::mphf<int, boomphf::SingleHashFunctor >::totalBitSize' requested here
template class boomphf::mphf<int, boomphf::SingleHashFunctor>;
^
In file included from input_line_7:3:
In file included from /home/a4/cppyy-bbhash/interface.hh:1:
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:1027:8: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
totalsizeBitset, 100*(float)totalsizeBitset/totalsize);
^~~~~~~~~~~~~~~
/home/a4/cppyy-bbhash/interface.hh:23:25: note: in instantiation of member function 'boomphf::mphf<long, boomphf::SingleHashFunctor >::totalBitSize' requested here
template class boomphf::mphf<int64_t, boomphf::SingleHashFunctor<int64_t>>;
^
In file included from input_line_7:3:
In file included from /home/a4/cppyy-bbhash/interface.hh:1:
/home/a4/cppyy-bbhash/bbhash/BooPHF.h:1027:8: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
totalsizeBitset, 100*(float)totalsizeBitset/totalsize);
^~~~~~~~~~~~~~~
/home/a4/cppyy-bbhash/interface.hh:24:25: note: in instantiation of member function 'boomphf::mphf<long long, boomphf::SingleHashFunctor >::totalBitSize' requested here
template class boomphf::mphf<long long, boomphf::SingleHashFunctor>;
^
Scanning dependencies of target cppyy_bbhashCppyy
[ 66%] Building CXX object CMakeFiles/cppyy_bbhashCppyy.dir/cppyy_bbhash.cpp.o
[ 83%] Linking CXX shared library cppyy_bbhash/libcppyy_bbhashCppyy.so
Warning: Unused direct dependencies:
/home/a4/miniconda3/envs/cppyy-example/lib/python3.9/site-packages/cppyy_backend/lib/libCling.so
[ 83%] Built target cppyy_bbhashCppyy
Scanning dependencies of target wheel
[100%] Generating dist/cppyy_bbhash-0.9-py3-none-linux_x86_64.whl
running bdist_wheel

from cppyy-bbhash.

wlav avatar wlav commented on July 20, 2024

ULong64_t is a typedef from upstream intended for I/O use (i.e. a guaranteed 64b integer type). However, it was not typedef to uint64_t (the standard type) on all platforms, but to either unsigned long long (Mac, Linux) or uint64_t (Windows). As you can see from the format warnings above, that just isn't portable. Worse, some of the upstream legacy code that was still retained, would transform all occurances of unsigned long long to ULong64_t, even as there is no guarantee that the former will be 64b on all platforms.

For these reasons, ULong64_t is now gone, with the unfortunate side effect that the above test fails. Recommend to use uint64_t instead, or to reintroduce typedef unsigned long long ULong64_t in the test code (on Linux/Mac).

from cppyy-bbhash.

Related Issues (2)

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.