-
Notifications
You must be signed in to change notification settings - Fork 516
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
fatal error C1083: Cannot open include file: 'alloca.h #87
Comments
It fails when installing pyethash |
I tried cloning the repo and removing alloca.h from the src/python, it gives this error:
/LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\emu\appdata\l |
I'm still getting these same errors with pyethash through pip. Did you ever find a resolution to this? |
Has anyone found any solution to this? |
my solution for this:
|
dzabur. I tried this and i got further but now: C:\MinGW\bin\gcc.exe -shared -s build\temp.win-amd64-2.7\Release\src\python\core.o build\temp.win-amd64-2.7\Release\src\libethash\io.o build\temp.win-amd64-2.7\Release\src\libethash\internal.o build\temp.win-amd64-2.7\Release\src\libethash\sha3.o build\temp.win-amd64-2.7\Release\src\libethash\util_win32.o build\temp.win-amd64-2.7\Release\src\libethash\io_win32.o build\temp.win-amd64-2.7\Release\src\libethash\mmap_win32.o build\temp.win-amd64-2.7\Release\src\python\pyethash.def -LC:\Python27\libs -LC:\Python27\PCbuild\amd64 -LC:\Python27\PC\VS9.0\amd64 -lpython27 -lmsvcr90 -o build\lib.win-amd64-2.7\pyethash.pyd Any ideas? I know it has something to do with 32 vs 64. I thought everything I am running related to Python is 64 bit .... |
I was able to figure it out. It was still pointing to the 32 bit version of MWing. |
When I do as @dzabur saying, I get another issue like "previous declaration of 'printf' was here": In file included from src/libethash/util_win32.c:23:0: How to solve this new problem? |
I try to comment out the whole debugf function in src/libethhash/util_win32.c, but a new problem arise: F:/MinGW/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcr140 |
@skyguy126,in the path: ethash/src/python/core.c |
@08zhangyi I'm now getting undefined reference errors, how did you manage to fix these. I am pretty sure I'm using a 64bit version of MinGW, is there any way to check.
EDIT: Now I am only getting the error in the last line of what is pasted above. |
@skyguy126 , sorry, I have not meet these problems and I think the source code doesn't has any variuables like imp__Py_BuildValue. I think you can modify these variables' names by deleting the prefix 'imp' |
@08zhangyi Figured it out, you have to add |
': No such file or directory
error: command 'E:\apps\Visual Studio 2015\VC\BIN\x86_amd64\cl.exe' fa
iled with exit status 2
I get this error when trying to pip install pyethash
The text was updated successfully, but these errors were encountered: