Skip to content

Wheel compile error #97

Description

@APN-Pucky

On gentoo. Happens with pip and latest github version.

ERROR: Command errored out with exit status 1:
  command: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-50grx_zx/decrunch/setup.py'"'"'; __file__='"'"'/tmp/pip-install-50grx_zx/decrunch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-rcgj13ua --python-tag cp36
      cwd: /tmp/pip-install-50grx_zx/decrunch/
 Complete output (24 lines):
 running bdist_wheel
 running build
 running build_ext
 building 'decrunch' extension
 creating build
 creating build/temp.linux-x86_64-3.6
 x86_64-pc-linux-gnu-g++ -pthread -fPIC -Icrunch -I/usr/include/python3.6m -c decrunch.cpp -o build/temp.linux-x86_64-3.6/decrunch.o -std=c++11
 x86_64-pc-linux-gnu-g++ -pthread -fPIC -Icrunch -I/usr/include/python3.6m -c crn_decomp.cpp -o build/temp.linux-x86_64-3.6/crn_decomp.o -std=c++11
 In file included from crn_decomp.cpp:18:
 crunch/crn_decomp.h: In function ‘void* crnd::crnd_malloc(size_t, size_t*)’:
 crunch/crn_decomp.h:2347:23: error: cast from ‘crnd::uint8*’ {aka ‘unsigned char*’} to ‘crnd::uint32’ {aka ‘unsigned int’} loses precision [-fpermissive]
  2347 |  CRND_ASSERT(((uint32)p_new & (CRND_MIN_ALLOC_ALIGNMENT - 1)) == 0);
       |                       ^~~~~
 crunch/crn_decomp.h:468:13: note: in definition of macro ‘CRND_ASSERT’
   468 |  (void)((!!(_exp)) || (crnd::crnd_assert(#_exp, __FILE__, __LINE__), 0))
       |             ^~~~
 crunch/crn_decomp.h: In function ‘void* crnd::crnd_realloc(void*, size_t, size_t*, bool)’:
 crunch/crn_decomp.h:2369:23: error: cast from ‘void*’ to ‘crnd::uint32’ {aka ‘unsigned int’} loses precision [-fpermissive]
  2369 |  CRND_ASSERT(((uint32)p_new & (CRND_MIN_ALLOC_ALIGNMENT - 1)) == 0);
       |                       ^~~~~
 crunch/crn_decomp.h:468:13: note: in definition of macro ‘CRND_ASSERT’
   468 |  (void)((!!(_exp)) || (crnd::crnd_assert(#_exp, __FILE__, __LINE__), 0))
       |             ^~~~
 error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
 ----------------------------------------
 ERROR: Failed building wheel for decrunch

Activity

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