Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Patchdeps.bat not working #204

Open
Open
@sindhuja07

Description

@sindhuja07

I was trying to run PatchDeps.bat file,but it gives patch cannot be applied error.

C:\Users\gillelas\Desktop\Pyjion>PatchDeps.bat
Disabling COM interop support in CoreCLR...
error: patch failed: src/inc/utilcode.h:8
error: src/inc/utilcode.h: patch does not apply
error: patch failed: src/utilcode/CMakeLists.txt:134
error: src/utilcode/CMakeLists.txt: patch does not apply
error: patch failed: src/utilcode/longfilepathwrappers.cpp:1190
error: src/utilcode/longfilepathwrappers.cpp: patch does not apply
error: patch failed: src/utilcode/util.cpp:212
error: src/utilcode/util.cpp: patch does not apply
error: patch failed: src/CMakeLists.txt:125
error: src/CMakeLists.txt: patch does not apply
error: patch failed: build.cmd:338
error: build.cmd: patch does not apply
error: patch failed: clr.coreclr.props:10
error: clr.coreclr.props: patch does not apply
error: patch failed: clr.defines.targets:18
error: clr.defines.targets: patch does not apply
error: patch failed: clr.desktop.props:19
error: clr.desktop.props: patch does not apply
error: patch failed: CMakeLists.txt:762
error: CMakeLists.txt: patch does not apply
Applying changes to enable JIT support in Python...
error: patch failed: Include/ceval.h:10
error: Include/ceval.h: patch does not apply
error: patch failed: Include/code.h:7
error: Include/code.h: patch does not apply
error: patch failed: Include/dictobject.h:142
error: Include/dictobject.h: patch does not apply
error: patch failed: Include/pystate.h:12
error: Include/pystate.h: patch does not apply
error: patch failed: Objects/codeobject.c:152
error: Objects/codeobject.c: patch does not apply
error: patch failed: Python/ceval.c:770
error: Python/ceval.c: patch does not apply
..\Patches\Python\Python\pylifecycle.c:23: trailing whitespace.
#if defined(WIN32) || defined(WIN64)
..\Patches\Python\Python\pylifecycle.c:31: trailing whitespace.

..\Patches\Python\Python\pylifecycle.c:39: trailing whitespace.
#if defined(WIN32) || defined(WIN64)
error: patch failed: Python/pylifecycle.c:16
error: Python/pylifecycle.c: patch does not apply
error: patch failed: Python/pystate.c:80
error: Python/pystate.c: patch does not apply

I also tried applying patches one by one by going into the directory by using "git apply" on individual files, it doesnt work either. It shows something like this:

C:\Users\gillelas\Desktop\Pyjion\CoreCLR>git apply ..\Patches\CoreCLR\src\utilcode\longfilepathwrappers.cpp --verbose
Checking patch src/utilcode/longfilepathwrappers.cpp...
error: while searching for:

#ifndef FEATURE_PAL

#if ! defined(DACCESS_COMPILE) && !defined(SELF_NO_HOST)
extern HINSTANCE g_pMSCorEE;
#endif// ! defined(DACCESS_COMPILE) && !defined(SELF_NO_HOST)

BOOL PAL_GetPALDirectoryWrapper(SString& pbuffer)
{

error: patch failed: src/utilcode/longfilepathwrappers.cpp:1190
error: src/utilcode/longfilepathwrappers.cpp: patch does not apply

I wanted to know why this is happening. Any help regarding this would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions