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

Linux make error #229

Closed
sudhevan opened this issue Dec 27, 2021 · 3 comments
Closed

Linux make error #229

sudhevan opened this issue Dec 27, 2021 · 3 comments

Comments

@sudhevan
Copy link

Hi,
generated make file with
cmake -S <input_dir> -B <output_dir>

trying to build on Linux
same error with python3.9&3.10, ami missing something?

make
[  2%] Generating bytes/python_10.cpp, bytes/python_11.cpp, bytes/python_13.cpp, bytes/python_14.cpp, bytes/python_15.cpp, bytes/python_16.cpp, bytes/python_20.cpp, bytes/python_21.cpp, bytes/python_22.cpp, bytes/python_23.cpp, bytes/python_24.cpp, bytes/python_25.cpp, bytes/python_26.cpp, bytes/python_27.cpp, bytes/python_30.cpp, bytes/python_31.cpp, bytes/python_32.cpp, bytes/python_33.cpp, bytes/python_34.cpp, bytes/python_35.cpp, bytes/python_36.cpp, bytes/python_37.cpp, bytes/python_38.cpp, bytes/python_39.cpp, bytes/python_310.cpp
[  4%] Building CXX object CMakeFiles/pycxx.dir/bytecode.cpp.o
In file included from pycdc-master/pyc_numeric.h:4:0,
                 from pycdc-master/bytecode.cpp:1:
pycdc-master/pyc_object.h: In constructor ‘PycObject::PycObject(int)’:
pycdc-master/pyc_object.h:132:40: error: declaration of ‘type’ shadows a member of 'this' [-Werror=shadow]
     PycObject(int type = TYPE_UNKNOWN) : m_refs(0), m_type(type) { }
                                        ^
In file included from pycdc-master/bytecode.cpp:1:0:
pycdc-master/pyc_numeric.h: In constructor ‘PycInt::PycInt(int, int)’:
pycdc-master/pyc_numeric.h:12:9: error: declaration of ‘type’ shadows a member of 'this' [-Werror=shadow]
         : PycObject(type), m_value(value) { }
         ^
pycdc-master/pyc_numeric.h:12:9: error: declaration of ‘value’ shadows a member of 'this' [-Werror=shadow]
pycdc-master/pyc_numeric.h: In constructor ‘PycLong::PycLong(int)’:
pycdc-master/pyc_numeric.h:31:9: error: declaration of ‘type’ shadows a member of 'this' [-Werror=shadow]
         : PycObject(type), m_size(0) { }

@zrax
Copy link
Owner

zrax commented Dec 27, 2021

I can't reproduce this with GCC 11 or Clang 13... What compiler are you using? Do you have any other local changes?

@sudhevan
Copy link
Author

My bas, was using gcc 4.8.5
after updating to gcc7, build worked fine. but pycdc seems to fail on conversion

getting this warning after printing ~50 lines of code

# WARNING: Decompyle incomplete

@zrax
Copy link
Owner

zrax commented Mar 12, 2024

Fixed with #469

@zrax zrax closed this as completed Mar 12, 2024
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