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

Cannot install pylzham using pip #6

Closed
Sjmarf opened this issue Jan 20, 2023 · 2 comments
Closed

Cannot install pylzham using pip #6

Sjmarf opened this issue Jan 20, 2023 · 2 comments

Comments

@Sjmarf
Copy link

Sjmarf commented Jan 20, 2023

Here's my error. I'm using MacOS

ERROR: Command errored out with exit status 1:
   command: /Users/user/Downloads/cr-sc-dump-master/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-install-zy0t6twf/pylzham_37e16270c51e48a29161cc0b633270b7/setup.py'"'"'; __file__='"'"'/private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-install-zy0t6twf/pylzham_37e16270c51e48a29161cc0b633270b7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-wheel-hsbsh3ps
       cwd: /private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-install-zy0t6twf/pylzham_37e16270c51e48a29161cc0b633270b7/
  Complete output (204 lines):
  WARNING: '' not a valid package name; please use only .-separated package names in setup.py
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-universal2-3.10
  creating build/lib.macosx-10.9-universal2-3.10/lzham
  copying src/lzham/decompress.py -> build/lib.macosx-10.9-universal2-3.10/lzham
  copying src/lzham/__init__.py -> build/lib.macosx-10.9-universal2-3.10/lzham
  copying src/lzham/compress.py -> build/lib.macosx-10.9-universal2-3.10/lzham
  running build_ext
  creating build/temp.macosx-10.9-universal2-3.10
  creating build/temp.macosx-10.9-universal2-3.10/src
  creating build/temp.macosx-10.9-universal2-3.10/src/lib
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_api.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_api.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_assert.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_assert.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_checksum.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_checksum.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_huffman_codes.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_huffman_codes.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzbase.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzbase.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzcomp.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzcomp.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzcomp_internal.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzcomp_internal.o
  src/lib/lzham_lzcomp_internal.cpp:251:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
           case LZHAM_COMP_LEVEL_BETTER:
                ^~~~~~~~~~~~~~~~~~~~~~~
  src/lib/lzham_lzcomp_internal.cpp:250:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
           case LZHAM_COMP_LEVEL_DEFAULT:
                ^~~~~~~~~~~~~~~~~~~~~~~~
  src/lib/lzham_lzcomp_internal.cpp:245:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
           case LZHAM_COMP_LEVEL_FASTER:
                ^~~~~~~~~~~~~~~~~~~~~~~
  src/lib/lzham_lzcomp_internal.cpp:240:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
           case LZHAM_COMP_LEVEL_FASTEST:
                ^~~~~~~~~~~~~~~~~~~~~~~~
  src/lib/lzham_lzcomp_internal.cpp:1401:12: warning: variable 'cur_lookahead_ofs' set but not used [-Wunused-but-set-variable]
        uint cur_lookahead_ofs = cur_dict_ofs - lookahead_start_ofs;
             ^
  In file included from src/lib/lzham_lzcomp_internal.cpp:3:
  In file included from src/lib/lzham_core.h:258:
  src/lib/lzham_helpers.h:46:10: warning: destructor called on non-final 'lzham::object_task<lzham::lzcompressor>' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
           p->~T();
           ^
  src/lib/lzham_mem.h:84:22: note: in instantiation of function template specialization 'lzham::helpers::destruct<lzham::object_task<lzham::lzcompressor> >' requested here
              helpers::destruct(p);
                       ^
  src/lib/lzham_pthreads_threading.h:432:13: note: in instantiation of function template specialization 'lzham::lzham_delete<lzham::object_task<lzham::lzcompressor> >' requested here
              lzham_delete(this);
              ^
  src/lib/lzham_pthreads_threading.h:407:7: note: in instantiation of member function 'lzham::object_task<lzham::lzcompressor>::execute_task' requested here
        object_task(T* pObject, object_method_ptr pMethod, uint flags = cObjectTaskFlagDefault) :
        ^
  src/lib/lzham_mem.h:45:42: note: in instantiation of member function 'lzham::object_task<lzham::lzcompressor>::object_task' requested here
        return new (static_cast<void*>(p)) T(init0, init1, init2);
                                           ^
  src/lib/lzham_pthreads_threading.h:468:23: note: in instantiation of function template specialization 'lzham::lzham_new<lzham::object_task<lzham::lzcompressor>, lzham::lzcompressor *, void (lzham::lzcompressor::*)(unsigned long long, void *), lzham::object_task_flags>' requested here
           tsk.m_pObj = lzham_new< object_task<S> >(pObject, pObject_method, cObjectTaskFlagDeleteAfterExecution);
                        ^
  src/lib/lzham_lzcomp_internal.cpp:1763:47: note: in instantiation of function template specialization 'lzham::task_pool::queue_multiple_object_tasks<lzham::lzcompressor, void (lzham::lzcompressor::*)(unsigned long long, void *)>' requested here
                    if (!m_params.m_pTask_pool->queue_multiple_object_tasks(this, &lzcompressor::parse_job_callback, 1, num_parse_jobs - 1))
                                                ^
  src/lib/lzham_helpers.h:46:14: note: qualify call to silence this warning
           p->~T();
               ^
               lzham::object_task<lzham::lzcompressor>::
  6 warnings generated.
  src/lib/lzham_lzcomp_internal.cpp:251:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
           case LZHAM_COMP_LEVEL_BETTER:
                ^~~~~~~~~~~~~~~~~~~~~~~
  src/lib/lzham_lzcomp_internal.cpp:250:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
           case LZHAM_COMP_LEVEL_DEFAULT:
                ^~~~~~~~~~~~~~~~~~~~~~~~
  src/lib/lzham_lzcomp_internal.cpp:245:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
           case LZHAM_COMP_LEVEL_FASTER:
                ^~~~~~~~~~~~~~~~~~~~~~~
  src/lib/lzham_lzcomp_internal.cpp:240:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
           case LZHAM_COMP_LEVEL_FASTEST:
                ^~~~~~~~~~~~~~~~~~~~~~~~
  src/lib/lzham_lzcomp_internal.cpp:1401:12: warning: variable 'cur_lookahead_ofs' set but not used [-Wunused-but-set-variable]
        uint cur_lookahead_ofs = cur_dict_ofs - lookahead_start_ofs;
             ^
  In file included from src/lib/lzham_lzcomp_internal.cpp:3:
  In file included from src/lib/lzham_core.h:258:
  src/lib/lzham_helpers.h:46:10: warning: destructor called on non-final 'lzham::object_task<lzham::lzcompressor>' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
           p->~T();
           ^
  src/lib/lzham_mem.h:84:22: note: in instantiation of function template specialization 'lzham::helpers::destruct<lzham::object_task<lzham::lzcompressor> >' requested here
              helpers::destruct(p);
                       ^
  src/lib/lzham_pthreads_threading.h:432:13: note: in instantiation of function template specialization 'lzham::lzham_delete<lzham::object_task<lzham::lzcompressor> >' requested here
              lzham_delete(this);
              ^
  src/lib/lzham_pthreads_threading.h:407:7: note: in instantiation of member function 'lzham::object_task<lzham::lzcompressor>::execute_task' requested here
        object_task(T* pObject, object_method_ptr pMethod, uint flags = cObjectTaskFlagDefault) :
        ^
  src/lib/lzham_mem.h:45:42: note: in instantiation of member function 'lzham::object_task<lzham::lzcompressor>::object_task' requested here
        return new (static_cast<void*>(p)) T(init0, init1, init2);
                                           ^
  src/lib/lzham_pthreads_threading.h:468:23: note: in instantiation of function template specialization 'lzham::lzham_new<lzham::object_task<lzham::lzcompressor>, lzham::lzcompressor *, void (lzham::lzcompressor::*)(unsigned long long, void *), lzham::object_task_flags>' requested here
           tsk.m_pObj = lzham_new< object_task<S> >(pObject, pObject_method, cObjectTaskFlagDeleteAfterExecution);
                        ^
  src/lib/lzham_lzcomp_internal.cpp:1763:47: note: in instantiation of function template specialization 'lzham::task_pool::queue_multiple_object_tasks<lzham::lzcompressor, void (lzham::lzcompressor::*)(unsigned long long, void *)>' requested here
                    if (!m_params.m_pTask_pool->queue_multiple_object_tasks(this, &lzcompressor::parse_job_callback, 1, num_parse_jobs - 1))
                                                ^
  src/lib/lzham_helpers.h:46:14: note: qualify call to silence this warning
           p->~T();
               ^
               lzham::object_task<lzham::lzcompressor>::
  6 warnings generated.
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzcomp_state.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzcomp_state.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzdecomp.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzdecomp.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzdecompbase.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzdecompbase.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_match_accel.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_match_accel.o
  In file included from src/lib/lzham_match_accel.cpp:3:
  In file included from src/lib/lzham_core.h:258:
  src/lib/lzham_helpers.h:46:10: warning: destructor called on non-final 'lzham::object_task<lzham::search_accelerator>' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
           p->~T();
           ^
  src/lib/lzham_mem.h:84:22: note: in instantiation of function template specialization 'lzham::helpers::destruct<lzham::object_task<lzham::search_accelerator> >' requested here
              helpers::destruct(p);
                       ^
  src/lib/lzham_pthreads_threading.h:432:13: note: in instantiation of function template specialization 'lzham::lzham_delete<lzham::object_task<lzham::search_accelerator> >' requested here
              lzham_delete(this);
              ^
  src/lib/lzham_pthreads_threading.h:407:7: note: in instantiation of member function 'lzham::object_task<lzham::search_accelerator>::execute_task' requested here
        object_task(T* pObject, object_method_ptr pMethod, uint flags = cObjectTaskFlagDefault) :
        ^
  src/lib/lzham_mem.h:45:42: note: in instantiation of member function 'lzham::object_task<lzham::search_accelerator>::object_task' requested here
        return new (static_cast<void*>(p)) T(init0, init1, init2);
                                           ^
  src/lib/lzham_pthreads_threading.h:468:23: note: in instantiation of function template specialization 'lzham::lzham_new<lzham::object_task<lzham::search_accelerator>, lzham::search_accelerator *, void (lzham::search_accelerator::*)(unsigned long long, void *), lzham::object_task_flags>' requested here
           tsk.m_pObj = lzham_new< object_task<S> >(pObject, pObject_method, cObjectTaskFlagDeleteAfterExecution);
                        ^
  src/lib/lzham_match_accel.cpp:465:29: note: in instantiation of function template specialization 'lzham::task_pool::queue_multiple_object_tasks<lzham::search_accelerator, void (lzham::search_accelerator::*)(unsigned long long, void *)>' requested here
           if (!m_pTask_pool->queue_multiple_object_tasks(this, &search_accelerator::find_all_matches_callback, 0, m_max_helper_threads))
                              ^
  src/lib/lzham_helpers.h:46:14: note: qualify call to silence this warning
           p->~T();
               ^
               lzham::object_task<lzham::search_accelerator>::
  In file included from src/lib/lzham_match_accel.cpp:3:
  In file included from src/lib/lzham_core.h:256:
  src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
     __asm__ __volatile__("pause");
                          ^
  <inline asm>:1:2: note: instantiated into assembly here
          pause
          ^
  In file included from src/lib/lzham_match_accel.cpp:3:
  In file included from src/lib/lzham_core.h:256:
  src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
     __asm__ __volatile__("pause");
                          ^
  <inline asm>:1:2: note: instantiated into assembly here
          pause
          ^
  In file included from src/lib/lzham_match_accel.cpp:3:
  In file included from src/lib/lzham_core.h:256:
  src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
     __asm__ __volatile__("pause");
                          ^
  <inline asm>:1:2: note: instantiated into assembly here
          pause
          ^
  In file included from src/lib/lzham_match_accel.cpp:3:
  In file included from src/lib/lzham_core.h:256:
  src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
     __asm__ __volatile__("pause");
                          ^
  <inline asm>:1:2: note: instantiated into assembly here
          pause
          ^
  In file included from src/lib/lzham_match_accel.cpp:3:
  In file included from src/lib/lzham_core.h:256:
  src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
     __asm__ __volatile__("pause");
                          ^
  <inline asm>:1:2: note: instantiated into assembly here
          pause
          ^
  In file included from src/lib/lzham_match_accel.cpp:3:
  In file included from src/lib/lzham_core.h:256:
  src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
     __asm__ __volatile__("pause");
                          ^
  <inline asm>:1:2: note: instantiated into assembly here
          pause
          ^
  In file included from src/lib/lzham_match_accel.cpp:3:
  In file included from src/lib/lzham_core.h:256:
  src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
     __asm__ __volatile__("pause");
                          ^
  <inline asm>:1:2: note: instantiated into assembly here
          pause
          ^
  In file included from src/lib/lzham_match_accel.cpp:3:
  In file included from src/lib/lzham_core.h:256:
  src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
     __asm__ __volatile__("pause");
                          ^
  <inline asm>:1:2: note: instantiated into assembly here
          pause
          ^
  1 warning and 8 errors generated.
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for pylzham
  Running setup.py clean for pylzham
Failed to build pylzham
Installing collected packages: pylzham
    Running setup.py install for pylzham ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/user/Downloads/cr-sc-dump-master/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-install-zy0t6twf/pylzham_37e16270c51e48a29161cc0b633270b7/setup.py'"'"'; __file__='"'"'/private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-install-zy0t6twf/pylzham_37e16270c51e48a29161cc0b633270b7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-record-gw3onrt4/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/Downloads/cr-sc-dump-master/venv/include/site/python3.10/pylzham
         cwd: /private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-install-zy0t6twf/pylzham_37e16270c51e48a29161cc0b633270b7/
    Complete output (206 lines):
    WARNING: '' not a valid package name; please use only .-separated package names in setup.py
    running install
    /Users/user/Downloads/cr-sc-dump-master/venv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-universal2-3.10
    creating build/lib.macosx-10.9-universal2-3.10/lzham
    copying src/lzham/decompress.py -> build/lib.macosx-10.9-universal2-3.10/lzham
    copying src/lzham/__init__.py -> build/lib.macosx-10.9-universal2-3.10/lzham
    copying src/lzham/compress.py -> build/lib.macosx-10.9-universal2-3.10/lzham
    running build_ext
    creating build/temp.macosx-10.9-universal2-3.10
    creating build/temp.macosx-10.9-universal2-3.10/src
    creating build/temp.macosx-10.9-universal2-3.10/src/lib
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_api.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_api.o
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_assert.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_assert.o
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_checksum.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_checksum.o
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_huffman_codes.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_huffman_codes.o
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzbase.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzbase.o
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzcomp.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzcomp.o
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzcomp_internal.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzcomp_internal.o
    src/lib/lzham_lzcomp_internal.cpp:251:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
             case LZHAM_COMP_LEVEL_BETTER:
                  ^~~~~~~~~~~~~~~~~~~~~~~
    src/lib/lzham_lzcomp_internal.cpp:250:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
             case LZHAM_COMP_LEVEL_DEFAULT:
                  ^~~~~~~~~~~~~~~~~~~~~~~~
    src/lib/lzham_lzcomp_internal.cpp:245:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
             case LZHAM_COMP_LEVEL_FASTER:
                  ^~~~~~~~~~~~~~~~~~~~~~~
    src/lib/lzham_lzcomp_internal.cpp:240:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
             case LZHAM_COMP_LEVEL_FASTEST:
                  ^~~~~~~~~~~~~~~~~~~~~~~~
    src/lib/lzham_lzcomp_internal.cpp:1401:12: warning: variable 'cur_lookahead_ofs' set but not used [-Wunused-but-set-variable]
          uint cur_lookahead_ofs = cur_dict_ofs - lookahead_start_ofs;
               ^
    In file included from src/lib/lzham_lzcomp_internal.cpp:3:
    In file included from src/lib/lzham_core.h:258:
    src/lib/lzham_helpers.h:46:10: warning: destructor called on non-final 'lzham::object_task<lzham::lzcompressor>' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
             p->~T();
             ^
    src/lib/lzham_mem.h:84:22: note: in instantiation of function template specialization 'lzham::helpers::destruct<lzham::object_task<lzham::lzcompressor> >' requested here
                helpers::destruct(p);
                         ^
    src/lib/lzham_pthreads_threading.h:432:13: note: in instantiation of function template specialization 'lzham::lzham_delete<lzham::object_task<lzham::lzcompressor> >' requested here
                lzham_delete(this);
                ^
    src/lib/lzham_pthreads_threading.h:407:7: note: in instantiation of member function 'lzham::object_task<lzham::lzcompressor>::execute_task' requested here
          object_task(T* pObject, object_method_ptr pMethod, uint flags = cObjectTaskFlagDefault) :
          ^
    src/lib/lzham_mem.h:45:42: note: in instantiation of member function 'lzham::object_task<lzham::lzcompressor>::object_task' requested here
          return new (static_cast<void*>(p)) T(init0, init1, init2);
                                             ^
    src/lib/lzham_pthreads_threading.h:468:23: note: in instantiation of function template specialization 'lzham::lzham_new<lzham::object_task<lzham::lzcompressor>, lzham::lzcompressor *, void (lzham::lzcompressor::*)(unsigned long long, void *), lzham::object_task_flags>' requested here
             tsk.m_pObj = lzham_new< object_task<S> >(pObject, pObject_method, cObjectTaskFlagDeleteAfterExecution);
                          ^
    src/lib/lzham_lzcomp_internal.cpp:1763:47: note: in instantiation of function template specialization 'lzham::task_pool::queue_multiple_object_tasks<lzham::lzcompressor, void (lzham::lzcompressor::*)(unsigned long long, void *)>' requested here
                      if (!m_params.m_pTask_pool->queue_multiple_object_tasks(this, &lzcompressor::parse_job_callback, 1, num_parse_jobs - 1))
                                                  ^
    src/lib/lzham_helpers.h:46:14: note: qualify call to silence this warning
             p->~T();
                 ^
                 lzham::object_task<lzham::lzcompressor>::
    6 warnings generated.
    src/lib/lzham_lzcomp_internal.cpp:251:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
             case LZHAM_COMP_LEVEL_BETTER:
                  ^~~~~~~~~~~~~~~~~~~~~~~
    src/lib/lzham_lzcomp_internal.cpp:250:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
             case LZHAM_COMP_LEVEL_DEFAULT:
                  ^~~~~~~~~~~~~~~~~~~~~~~~
    src/lib/lzham_lzcomp_internal.cpp:245:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
             case LZHAM_COMP_LEVEL_FASTER:
                  ^~~~~~~~~~~~~~~~~~~~~~~
    src/lib/lzham_lzcomp_internal.cpp:240:15: warning: comparison of different enumeration types in switch statement ('lzham::compression_level' and 'lzham_compress_level') [-Wenum-compare-switch]
             case LZHAM_COMP_LEVEL_FASTEST:
                  ^~~~~~~~~~~~~~~~~~~~~~~~
    src/lib/lzham_lzcomp_internal.cpp:1401:12: warning: variable 'cur_lookahead_ofs' set but not used [-Wunused-but-set-variable]
          uint cur_lookahead_ofs = cur_dict_ofs - lookahead_start_ofs;
               ^
    In file included from src/lib/lzham_lzcomp_internal.cpp:3:
    In file included from src/lib/lzham_core.h:258:
    src/lib/lzham_helpers.h:46:10: warning: destructor called on non-final 'lzham::object_task<lzham::lzcompressor>' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
             p->~T();
             ^
    src/lib/lzham_mem.h:84:22: note: in instantiation of function template specialization 'lzham::helpers::destruct<lzham::object_task<lzham::lzcompressor> >' requested here
                helpers::destruct(p);
                         ^
    src/lib/lzham_pthreads_threading.h:432:13: note: in instantiation of function template specialization 'lzham::lzham_delete<lzham::object_task<lzham::lzcompressor> >' requested here
                lzham_delete(this);
                ^
    src/lib/lzham_pthreads_threading.h:407:7: note: in instantiation of member function 'lzham::object_task<lzham::lzcompressor>::execute_task' requested here
          object_task(T* pObject, object_method_ptr pMethod, uint flags = cObjectTaskFlagDefault) :
          ^
    src/lib/lzham_mem.h:45:42: note: in instantiation of member function 'lzham::object_task<lzham::lzcompressor>::object_task' requested here
          return new (static_cast<void*>(p)) T(init0, init1, init2);
                                             ^
    src/lib/lzham_pthreads_threading.h:468:23: note: in instantiation of function template specialization 'lzham::lzham_new<lzham::object_task<lzham::lzcompressor>, lzham::lzcompressor *, void (lzham::lzcompressor::*)(unsigned long long, void *), lzham::object_task_flags>' requested here
             tsk.m_pObj = lzham_new< object_task<S> >(pObject, pObject_method, cObjectTaskFlagDeleteAfterExecution);
                          ^
    src/lib/lzham_lzcomp_internal.cpp:1763:47: note: in instantiation of function template specialization 'lzham::task_pool::queue_multiple_object_tasks<lzham::lzcompressor, void (lzham::lzcompressor::*)(unsigned long long, void *)>' requested here
                      if (!m_params.m_pTask_pool->queue_multiple_object_tasks(this, &lzcompressor::parse_job_callback, 1, num_parse_jobs - 1))
                                                  ^
    src/lib/lzham_helpers.h:46:14: note: qualify call to silence this warning
             p->~T();
                 ^
                 lzham::object_task<lzham::lzcompressor>::
    6 warnings generated.
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzcomp_state.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzcomp_state.o
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzdecomp.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzdecomp.o
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_lzdecompbase.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_lzdecompbase.o
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/user/Downloads/cr-sc-dump-master/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lib/lzham_match_accel.cpp -o build/temp.macosx-10.9-universal2-3.10/src/lib/lzham_match_accel.o
    In file included from src/lib/lzham_match_accel.cpp:3:
    In file included from src/lib/lzham_core.h:258:
    src/lib/lzham_helpers.h:46:10: warning: destructor called on non-final 'lzham::object_task<lzham::search_accelerator>' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
             p->~T();
             ^
    src/lib/lzham_mem.h:84:22: note: in instantiation of function template specialization 'lzham::helpers::destruct<lzham::object_task<lzham::search_accelerator> >' requested here
                helpers::destruct(p);
                         ^
    src/lib/lzham_pthreads_threading.h:432:13: note: in instantiation of function template specialization 'lzham::lzham_delete<lzham::object_task<lzham::search_accelerator> >' requested here
                lzham_delete(this);
                ^
    src/lib/lzham_pthreads_threading.h:407:7: note: in instantiation of member function 'lzham::object_task<lzham::search_accelerator>::execute_task' requested here
          object_task(T* pObject, object_method_ptr pMethod, uint flags = cObjectTaskFlagDefault) :
          ^
    src/lib/lzham_mem.h:45:42: note: in instantiation of member function 'lzham::object_task<lzham::search_accelerator>::object_task' requested here
          return new (static_cast<void*>(p)) T(init0, init1, init2);
                                             ^
    src/lib/lzham_pthreads_threading.h:468:23: note: in instantiation of function template specialization 'lzham::lzham_new<lzham::object_task<lzham::search_accelerator>, lzham::search_accelerator *, void (lzham::search_accelerator::*)(unsigned long long, void *), lzham::object_task_flags>' requested here
             tsk.m_pObj = lzham_new< object_task<S> >(pObject, pObject_method, cObjectTaskFlagDeleteAfterExecution);
                          ^
    src/lib/lzham_match_accel.cpp:465:29: note: in instantiation of function template specialization 'lzham::task_pool::queue_multiple_object_tasks<lzham::search_accelerator, void (lzham::search_accelerator::*)(unsigned long long, void *)>' requested here
             if (!m_pTask_pool->queue_multiple_object_tasks(this, &search_accelerator::find_all_matches_callback, 0, m_max_helper_threads))
                                ^
    src/lib/lzham_helpers.h:46:14: note: qualify call to silence this warning
             p->~T();
                 ^
                 lzham::object_task<lzham::search_accelerator>::
    In file included from src/lib/lzham_match_accel.cpp:3:
    In file included from src/lib/lzham_core.h:256:
    src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
       __asm__ __volatile__("pause");
                            ^
    <inline asm>:1:2: note: instantiated into assembly here
            pause
            ^
    In file included from src/lib/lzham_match_accel.cpp:3:
    In file included from src/lib/lzham_core.h:256:
    src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
       __asm__ __volatile__("pause");
                            ^
    <inline asm>:1:2: note: instantiated into assembly here
            pause
            ^
    In file included from src/lib/lzham_match_accel.cpp:3:
    In file included from src/lib/lzham_core.h:256:
    src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
       __asm__ __volatile__("pause");
                            ^
    <inline asm>:1:2: note: instantiated into assembly here
            pause
            ^
    In file included from src/lib/lzham_match_accel.cpp:3:
    In file included from src/lib/lzham_core.h:256:
    src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
       __asm__ __volatile__("pause");
                            ^
    <inline asm>:1:2: note: instantiated into assembly here
            pause
            ^
    In file included from src/lib/lzham_match_accel.cpp:3:
    In file included from src/lib/lzham_core.h:256:
    src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
       __asm__ __volatile__("pause");
                            ^
    <inline asm>:1:2: note: instantiated into assembly here
            pause
            ^
    In file included from src/lib/lzham_match_accel.cpp:3:
    In file included from src/lib/lzham_core.h:256:
    src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
       __asm__ __volatile__("pause");
                            ^
    <inline asm>:1:2: note: instantiated into assembly here
            pause
            ^
    In file included from src/lib/lzham_match_accel.cpp:3:
    In file included from src/lib/lzham_core.h:256:
    src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
       __asm__ __volatile__("pause");
                            ^
    <inline asm>:1:2: note: instantiated into assembly here
            pause
            ^
    In file included from src/lib/lzham_match_accel.cpp:3:
    In file included from src/lib/lzham_core.h:256:
    src/lib/lzham_platform.h:27:25: error: unrecognized instruction mnemonic
       __asm__ __volatile__("pause");
                            ^
    <inline asm>:1:2: note: instantiated into assembly here
            pause
            ^
    1 warning and 8 errors generated.
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/user/Downloads/cr-sc-dump-master/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-install-zy0t6twf/pylzham_37e16270c51e48a29161cc0b633270b7/setup.py'"'"'; __file__='"'"'/private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-install-zy0t6twf/pylzham_37e16270c51e48a29161cc0b633270b7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/3d/jqmb9_wd05d5cdcxqmkwr4bh0000gp/T/pip-record-gw3onrt4/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/Downloads/cr-sc-dump-master/venv/include/site/python3.10/pylzham Check the logs for full command output.
@Galaxy1036
Copy link
Owner

Seems like pause mnemonic is not recognized on ARM64 machine, see this pull request.

@Galaxy1036
Copy link
Owner

Should be fixed in the following commit.

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

No branches or pull requests

2 participants