Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wheel compile error #97

Open
APN-Pucky opened this issue Feb 5, 2020 · 1 comment
Open

Wheel compile error #97

APN-Pucky opened this issue Feb 5, 2020 · 1 comment

Comments

@APN-Pucky
Copy link

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

@APN-Pucky
Copy link
Author

Using a fixed decrunch package HearthSim/decrunch#19 the error is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant